How do i pass the Resource ID from a mysql query inside that´s inside a function to another function.
For example:
function query($parameters)
{
$resource_id = mysql_query(.....);
return $resource_id;
}
$resource = query($parameters);
function display_result($resource){
do {
echo xxxxx;
} while ($row = mysql_fetch_assoc($resource))
}
did u get it?
$resource isn´t passing even when i use Globals
so what´s the solution!
i´m sure that´s something new for me!