Mailing List code...

Codes here !

Moderators: macek, egami, gesf

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

Postby 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

Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 2 guests