select * from table where id=1 -
i need return information row id 1
the name of table customer , column descricaoid
tks
$sql = "select * customer id=1"; $query = mysql_query($sql); while($sql = mysql_fetch_array($query)){ $id = $sql["1"]; echo "resultados para o id $id"; }
the output must be:
the customer with id 1 is: jessica
$id = $sql["1"];
do this:
$id = $sql['id'];
(i don't know why put 1 there...)
Comments
Post a Comment