i am trying to implement an extract function to grab data from my database and display it in a form so i cn update the database. the form is ok but the extract function.. this is what i have:
$id = $_GET['id'];
$qP = "SELECT * FROM test_mysql WHERE id = '$id' ";
$rsP = mysql_query($qP);
$row = mysql_fetch_array($rsP);
extract($row);
$fullname = trim($fullname);
$dob = trim($dob);
$time = trim($time);
but its telling me:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given
and
Warning: extract() expects parameter 1 to be array, null given
thing is the code is working fine in ConTEXT but giving that error in dremweaver. what could be the problem?