I cam I execute mysql functions eg $=mysql_num_raws($result) on $result on wampp? On Xampp I am doing fine
<pre><code>function exesql($database,$database_user,$data_password,$sql)//returns result of execution of a suplied sql
    {
        $con = mysql_connect("localhost",$database_user,$data_password);
        mysql_select_db($database,$con);
        $result = mysql_query($sql);
        mysql_close($con);
        return $result;
    }
</code></pre>

<p>$result=exesql($database,$database_user,$data_password,$sql="SELECT * FROM tean");</p>
