Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Guys,

Can you help me on how to solve this error? I've search on Google for a day but still no luck, so far this is my code.

PHP
function updatePackages(){
    if(isset($_GET["id"])) {
        $rowId = mysql_real_escape_string(htmlentities($_GET["id"]));
        $sql = mysql_query("SELECT * FROM packages WHERE id='$rowId' LIMIT 1");
        $countRow = mysql_num_rows($sql);
        if($countRow > 0){
            echo "SOMETHING";
        } 
    }
}


Thanks,
Athan
Posted

1 solution

Hi Guys,

Finally I got the solution, I just forgot to create a new instance from my database (palm on face).

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900