This is a sample of the code in one of my php pages:
$query_result=mysql_query($query);
$_SESSION['result']=$query_result;
And this is a sample of the code in the other page in the same project:
session_start();
$row=mysql_fetch_array($_SESSION['result']);
This gives me an error that says ” mysql_fetch_array() expects parameter 1 to be resource, integer given “… can anyone help me figure this out … thanks 🙂
Query resources don’t persist across sessions.
from PHP Manual