storing ecard recipient info in database.... storing ecard recipient info in database....
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

storing ecard recipient info in database....

Started by sgtpepper, January 30, 2004, 11:21:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sgtpepper

Hello,

I am trying to store the recipient name and email from the ecard in my database.

I have created a table called 'recipients' and added fields from name and email.

in ecard.php my lines 101 and 102 are


$result = cpg_mail($recipient_email, $subject, $message, 'text/html', $sender_name, $sender_email);
    $result = mysql_query("INSERT INTO recipients (name, email) VALUES ('$recipient_name', '$recipient_email'");


This isnt working....can you suggest what I need to do to store this data in the table?

sgtpepper

Can anyone offer a way that this can be done?

Nibbler

Your brackets aren't balanced.

$result = mysql_query("INSERT INTO recipients (name, email) VALUES ('$recipient_name', '$recipient_email')");

sgtpepper

That did it....it works great....thank you....