Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

Mailing List code...

Codes here !

Moderators: macek, egami, gesf

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
User avatar
Joan Garnet
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars

Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.