Page 2 of 2

Posted: Tue Dec 23, 2003 2:47 pm
by vigge89
i know u can't, i just wanted to show u what the output was.....

Posted: Tue Dec 23, 2003 2:48 pm
by Draco_03
k well try adding the code , should give you whatever value you have in first row first column
8)

Posted: Tue Dec 23, 2003 2:48 pm
by vigge89
i know that you can't, I just wanted to show what $result contained.
BTW, the output is now 1 (without any errors), so i guess it works now :D

this seems to be the thing that made it not work:

Code: Select all

<?php
$sql = "SELECT * FROM one";
$result = mysql_query($sql) or die(mysql_error()); //If replace the $sql variable with the content of $sql, it doesn't work, but like it is now, it's working :/
?>

Posted: Tue Dec 23, 2003 2:49 pm
by Draco_03
yes it must be that you first field is ID and the value it's 1..
i guess