Not sure what happened, but while working, this error began to occur.
Upon submitting a form for a MySQL query, php returns a page full of something like the following:
???????????†???????????????????????????????4????????????????????????????????????????????????????????????????????????????‰?????????????????????????????????????????????????????????????????????????????????????????•???????????????????????????????•??????????????????????????????•???????•????????????????????????•???????•???????•??????•?????????????††?????????????•?????????????????????????????????•?????????????????†????†??????????????????????????????•????•????????•?????????††???????????????•???????????????????4?????????????•?????•???????•???????•??????????????????????????????•????????????????????????=?°???????????????????????????•???????=?°?????????????????????????????????????????????????????•??????=???????????????????????????????•?????•???????•???????•???????????????????????????•??????•??????????????????•???????=????????°????????????????›????????????????=???4??????????????????????•????•????????????????4??????•????????????4??????•??????•????????????????????•????????????•?????4?????•????????????????????????????????????•??????????????????????????????†????????????????????????????????????????????????????????•???????•??????????•???????????????????????????????°?????????»??????????????????????????????????????????????????????????•????????????????»???????????=??????????
The code I "believe" to be in question is the following:
if ($submit == "addNewPO")
{
$check_query = mysql_query("SELECT * FROM $tblOrders WHERE PurchaseOrder='$purchaseorder'");
// If PO # Does Not Exist, insert into DB
if (mysql_num_rows($check_query) == 0) {
$message = "<img src=../inc/p_exclamation.gif width=18 height=18 border=0 align=absmiddle> <font color=white><b>Purchase Order <font color=\"orange\">Does Not</font> Exist, click <a href=\"po_add.php?purchaseorder=$purchaseorder&inserted=$inserted\">here</a> to add</b></font>";
}
else {
header("Location: po_edit.php?purchaseorder=$purchaseorder&inserted=$inserted");
// $message = "<img src=../inc/p_exclamation.gif width=18 height=18 border=0 align=absmiddle> <font color=white><b>Purchase Order <font color=\"orange\">Already Exists</font>, click <a href=\"po_edit.php?purchaseorder=$purchaseorder&inserted=$inserted\">here</a> to edit</b></font>";
}
}
Which was working just fine. I've checked the server for errors, and there are none, and MySQL is still working just fine when performing queries.
Does anyone have any idea what might be causing this?
Thanks
B