Mailing List code...

Codes here !

Moderators: macek, egami, gesf

Post Reply
User avatar
Joan Garnet
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars

Post by Joan Garnet » Tue Jan 21, 2003 5:55 am

It's a simple query,
just create a form and then send info to the database:
The Mysql table "mailing":
Id - autoincremnt, key, unique, etc...
name - varchar 255
email - varchar 255

The php:

Code: Select all

$table = "mailing";
$sql= "INSERT INTO ".$table." VALUES ( NULL,'$user_name','$user_email' )";

That's it!
If you have further problems just scream :D

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 1 guest