I want to save two variables in a $_SESSION for use in another page:
$_SESSION['mark'] = $mark;
$_SESSION['num'] = $num;
then on the other page I did this to get the value:
$mark =$_SESSION['mark'];
$num = $_SESSION['num'];
then I pull a query:
$result = SELECT_clm($mar k,$num);
but on this line I get an invalid result resource
$numrows = mysql_num_rows( $result);
how can I fix this?
tia,
$_SESSION['mark'] = $mark;
$_SESSION['num'] = $num;
then on the other page I did this to get the value:
$mark =$_SESSION['mark'];
$num = $_SESSION['num'];
then I pull a query:
$result = SELECT_clm($mar k,$num);
but on this line I get an invalid result resource
$numrows = mysql_num_rows( $result);
how can I fix this?
tia,
Comment