GetDotted Domains

Viewing Thread:
"MySQL/PHP Help.."

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Sat 15/09/01 at 17:52
Regular
Posts: 787
I'm having trouble with my Script on F2S, regarding the MySQL. I'm trying to make a Mailing List Add/Delete Script, but the only thing which won't work is the look-up. I need it to look to see if an E-mail Address is already in the Table before it add's or delete's it. The book I'm learning from says I should use this:

$Mail = mysql_query("SELECT Email_Address FROM $Table WHERE Email_Address='$Email_Address'", $Connect);

but that doesn't seem to work, does anyone else know why this may not be working??

Could I ask Freeola what code you use to look-up things, such as a Users Screen name, etc...

Thanx to anyone for their input on this...
Sun 16/09/01 at 16:04
Regular
"It goes so quickly"
Posts: 4,083
i'll give it a go, thank you turbo.
Sat 15/09/01 at 20:15
Regular
"Eff, you see, kay?"
Posts: 14,156
Try using mysql_connect() just as a function, and drop $connect from the end of your script. I know for a fact that works.

Also, don't forget that variables are case-sensitive.

If I were to do what you're doing, I'd do:


funtion conf_mail ($email) {
$qid = mysql_query ("
SELECT * FROM tablename WHERE Email_Address = '$email'
");

return $qid;

};

$mail = conf_mail ($Email_Address);

?>

See if that works.
Sat 15/09/01 at 17:54
Regular
"It goes so quickly"
Posts: 4,083
Maybe I should at that the $Connect at the end of the code came from:

$Connect =
mysql_connect("db.haignet.f2s.com", "username", "password");
Sat 15/09/01 at 17:52
Regular
"It goes so quickly"
Posts: 4,083
I'm having trouble with my Script on F2S, regarding the MySQL. I'm trying to make a Mailing List Add/Delete Script, but the only thing which won't work is the look-up. I need it to look to see if an E-mail Address is already in the Table before it add's or delete's it. The book I'm learning from says I should use this:

$Mail = mysql_query("SELECT Email_Address FROM $Table WHERE Email_Address='$Email_Address'", $Connect);

but that doesn't seem to work, does anyone else know why this may not be working??

Could I ask Freeola what code you use to look-up things, such as a Users Screen name, etc...

Thanx to anyone for their input on this...

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Excellent
Excellent communication, polite and courteous staff - I was dealt with professionally. 10/10
Impressive control panel
I have to say that I'm impressed with the features available having logged on... Loads of info - excellent.
Phil

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.