php ekstraktı () fonksiyonu

0 Cevap php

i am trying to implement an extract function to grab data from my database vedisplay 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);

ama onun bana:

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given

ve

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?

0 Cevap