I am new to php, how do i change eregi from preg_match using this script:
if(!eregi("^select",$sql))
    {
        echo "wrongquery<br>$sql<p>";
        echo "<H2>Wrong function silly!</H2>\n";
        return false;
    }
is it like this: if(!eregi("/^select/i",$sql))
thank you
 
    