if (!$category) {
echo "Error connecting to ().<br>\n";
} else {
$i=0;//check if this exists in other divisions
while $i <sizeof($X){
$query = "SELECT a, b FROM zoo WHERE a= $a";
$row = mysql_fetch_array($query, $db);
$a = $row["a"];
$b = $row["b"];
if ($a == $a) { echo "$a exists in $b";}
i++;
//$error = 1;
}
}
Anyone know where i can use extract in this?
extract(mysql_fetch_array($result));
Now you have the variables $model, $color, $price. You can ask extract() to
prefix it for you, with like extract(stuff,EXTR_PREFIX_ALL,"r"),
and right there you have $r_model, $r_color...