Hey guys, I'm trying to run a function() inside of a while($row = mysql_fetch_array($result)) PHP: which is causing the function to happen more than once. I need to run it every time I fetch something from the database with multiple rows. Yet I can only use the function once. Is there anyway around this? If you guys need the whole code, let me know. Thanks,
use require_once / include_once or $i = 0; while ($row = mysql_fetch_array($result)) { if ($i==0) $i++; if ($i==1) { include('function.php'); $i++; } } PHP: