Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: storing ecard recipient info in database....  (Read 2633 times)

0 Members and 1 Guest are viewing this topic.

sgtpepper

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
storing ecard recipient info in database....
« on: January 30, 2004, 11:21:41 pm »

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

Code: [Select]

$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?
Logged

sgtpepper

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
storing ecard recipient info in database....
« Reply #1 on: February 02, 2004, 07:45:31 pm »

Can anyone offer a way that this can be done?
Logged

Nibbler

  • Guest
storing ecard recipient info in database....
« Reply #2 on: February 02, 2004, 08:18:55 pm »

Your brackets aren't balanced.

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

sgtpepper

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
storing ecard recipient info in database....
« Reply #3 on: February 02, 2004, 09:43:06 pm »

That did it....it works great....thank you....
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 15 queries.