Jump to content

trenttdogg

New Members
  • Posts

    4
  • Joined

  • Last visited

trenttdogg's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I agree. I know my code sucks and is outdated and am a complete hack. But I am not trying to become a programmer or developer. Just wanted to know why it worked differntly in different browsers, which was because I had text where it should have be a numeral. PDO is obviously the better option, just dont know it. Thanks.
  2. Yes. It was the "user not found" text in the content field that was creating the problem. Thank you.
  3. If I wanted an answer from a smart A$$, I could have asked my 13 year old son. Also, if I had the time/desire to learn a all the programming languages, I'd probably be a developer already and not be in a forum asking "dumb" questions. Right? So thanks anyway.
  4. 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">');
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.