Array inside SELECT
This is my code
$array=$_POST [numbers];
$result = mysqli_query($con,"SELECT * From profile WHERE code = $array");
while($row = mysqli_fetch_array($result))
{
echo $row['id'];
echo "<br>";
}
mysqli_close($con);
But I get an error given below:
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given.
Can anybody help me to get rid of this.
Subject
Written By
Posted
Array inside SELECT
July 24, 2013 11:23PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.