Hello,
My issue is my php code working differently in different browsers. Here is the scenario:
When a user fills in a field on the form, it searches my db and it there is an EXACT match, it sends them to "page2.php", if not it should send them to a page called "tryagain.php". This works perfectly in Firefox, but in IE and Chrome it sends them to "page2.php" but the page is blank. I believe the issue is in the 'or die' piece of code below.
Any help would be greatly appreciated.
$data = 'SELECT * FROM `users` WHERE `username` = "'.$search.'"'; $query = mysql_query($data) or die("Couldn't execute query. ". mysql_error()); $data2 = mysql_fetch_array($query) or die ('<META HTTP-EQUIV="Refresh" CONTENT="User Not Found;URL=tryagain.php">');