Kindly, I need some help. At the top of my code, I have:
Code: Select all
<?php
//session start
session_start();
$userSid = session_id();
?>
Code: Select all
<?php
$query="SELECT * FROM my_table";
$result=mysql_query($query);
$num=mysql_numrows($result);
?>
Code: Select all
<?php
$query="SELECT * FROM my_table where UserSid= $userSid";
$result=mysql_query($query);
$num=mysql_numrows($result);
?>
Is my above code correct? coz none of the input data displays.
pls, what is wrong with my above code.
thanks
Toks