All,
I’ve been programming PHP for about a year now, but for some reason, I can’t connect to one of my databases.
[PHP]
$con = mysqli_connect(“localhost”, “timw79_rfid”, “xpress13”, “timw79_rxrfid”);if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error();}
$result = mysqli_query($con,“SELECT AssignedMachine FROM TagAssignments WHERE TagID=$tag1”);
while($row = mysqli_fetch_array($result)) { echo $row[‘AssignedMachine’] . " " . $row[‘TagID’]; echo “
”;}[/PHP]
I have confirmed that $tag1 is reporting correctly. I checked spelling and capitalization. I’m stumped on this one. I am getting the error:
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /home3/timw79/public_html/rxrfid/piupload/addmachinenames.php on line 76
Where have I gone wrong?
I have attached the PHP MyAdmin page for this table in case it is needed.