Problems with extract function causing page timeout.
Posted: Fri Jun 19, 2009 11:00 am
Hello,
I just ported a site over to a new server w/ a newer version of php.
I am having a strange problem using the extract() function to extract contents of a mysql_fetch_array.
I know it's the extract function because when I comment it out the page loads with no problem.
here's my code:
Any ideas on why this is happening?
thanks for your time!
I just ported a site over to a new server w/ a newer version of php.
I am having a strange problem using the extract() function to extract contents of a mysql_fetch_array.
I know it's the extract function because when I comment it out the page loads with no problem.
here's my code:
Code: Select all
$sql_select = "select property.*, layout.* from property,layout where property.property_id=$property_id and layout.property_id=$property_id";
$result = mysql_query ($sql_select, $conID);
$row = array();
while($row = mysql_fetch_array($result, MYSQL_ASSOC)){ extract($row); }
thanks for your time!