data extraction??
Posted: Tue Nov 18, 2003 12:57 pm
hey guys, I'm having a problem that's really driving me mad and i'd really appreciate any help ye could give me! Basically I'm trying to print out a value from a database onto a web page, but everytime i try the following code, regardless of which table i try it on, it prints out
id resourse #3.
it will compare the data fine. like if its a number it will print out wether it's greater that ten etc.
Any ideas??I'm using php as my scripting language
//query the level reached from the database
$query = " SELECT Exam1 FROM Users WHERE username='$username'";
$result = mysql_query( $query )
or die( "sss" );
echo($result);
?>
?>
id resourse #3.
it will compare the data fine. like if its a number it will print out wether it's greater that ten etc.
Any ideas??I'm using php as my scripting language
//query the level reached from the database
$query = " SELECT Exam1 FROM Users WHERE username='$username'";
$result = mysql_query( $query )
or die( "sss" );
echo($result);
?>
?>