I am doing the hook system in my own scripts but I have a small problem.
It only returns the first hook that matches $hook_name.
How do I have it return all the rows where the hook_names match?
PHP Code:
function fetch_hook($hook_name)
{
$gethook = mysql_query("SELECT * FROM hooks WHERE hook_name = '$hook_name' ");
while($hook = mysql_fetch_array($gethook))
{
return $hook['phpcode'];
}