Smoky
11-11-2004, 07:24 PM
:( Hey... Iv just started using MySQL, so i need some help with these error messages is sends up..!
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/smoky/public_html/index.php on line 10
<?php
@mysql_pconnect("localhost","smoky","***")
* * * * * or die(" Could not connect to local host..!");
@mysql_select_db("smoky_LocalDB")
* * * * * or die(" Could not select database..!");
$query = "INSERT INTO USER_DATA name='Mark Wallsgrove', password='5d41402abc4b2a76b9719d911017c592', email='mark@fightinglimits.co.uk',
* * * * * Expirary='999999', user='smoky'";
$results = mysql_query($query);
$answers = mysql_result($results, 0, "user");
echo($answers);
mysql_close();
?>
Any help would be great...!
Cheers
EDIT:
arrrrr..... you guys are to slow!
I missed the insert into user_data set bla bla bla
Cheers any ways
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/smoky/public_html/index.php on line 10
<?php
@mysql_pconnect("localhost","smoky","***")
* * * * * or die(" Could not connect to local host..!");
@mysql_select_db("smoky_LocalDB")
* * * * * or die(" Could not select database..!");
$query = "INSERT INTO USER_DATA name='Mark Wallsgrove', password='5d41402abc4b2a76b9719d911017c592', email='mark@fightinglimits.co.uk',
* * * * * Expirary='999999', user='smoky'";
$results = mysql_query($query);
$answers = mysql_result($results, 0, "user");
echo($answers);
mysql_close();
?>
Any help would be great...!
Cheers
EDIT:
arrrrr..... you guys are to slow!
I missed the insert into user_data set bla bla bla
Cheers any ways