Hello all I am trying to print from a table with the following code:
...
$sql ="SELECT count FROM simplecount WHERE count_id=1";
echo "<mysql_result( mysql_query( $sql ) , 0 )>" ;
....
BUT This stil does not work? How comes? It just shows a blank line.
The Code above is a part of the code below as can be seen:
if (!isset($_SESSION['counted']))//checks if $session is set or not using the isset
{
mysql_query("UPDATE simplecount SET count=(count + 1) WHERE count_id=1");
//count is updated in the simplecount table
$_SESSION['counted'] = ""; //the session is 'set/registered so the user does not get counted again
$sql ="SELECT count FROM simplecount WHERE count_id=1";
echo "<mysql_result( mysql_query( $sql ) , 0 )>" ;
}