Jump to content

matts_sandbox

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

matts_sandbox's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I very, very much appreciate the reply, but it still doesn't work. I've checked, and the MySQL works fine. I think it's something I don't understand about the attempted redirection. In other words: $usersfound = 1 BUT in all instances, the redirection is to stopit.html Help, I've been trying to fix this for something like 3 hours, and I'm gonna bust!
  2. The following PHP code used to work perfectly: /*verify registration*/ $sql_user_check = "select * from firstmysqltable where email='$email'"; $result_name_check = mysql_query($sql_user_check); $usersfound = mysql_num_rows($result_name_check); // if user not found, note that and end if ($usersfound < 1) header("Location: [a href=\"http://www.site.com/stopit.html");\" target=\"_blank\"]http://www.site.com/stopit.html");[/a] // if user does exist, continue with processing else header("Location: [a href=\"http://www.site.com/goahead.html");\" target=\"_blank\"]http://www.site.com/goahead.html");[/a] Then I attempted to “enhance” the process: /*verify registration*/ $sql_user_check = "select * from mysecondtable where email='$email' and secondcolumn='on'"; $result_name_check = mysql_query($sql_user_check); $usersfound = mysql_num_rows($result_name_check); if ($usersfound < 1) header("Location: [a href=\"http://www.site.com/stopit.html");\" target=\"_blank\"]http://www.site.com/stopit.html");[/a] // if user does exist, continue with processing else header("Location: [a href=\"http://www.site.com/goahead.html");\" target=\"_blank\"]http://www.site.com/goahead.html");[/a] Now, everything goes to stopit.html. What am I missing?
×
×
  • 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.