Jump to content


Photo

Inserting num_rows in email message


  • Please log in to reply
2 replies to this topic

#1 monkeybidz

monkeybidz
  • Members
  • PipPipPip
  • Advanced Member
  • 330 posts

Posted 05 May 2006 - 02:51 AM

I am trying to get an all text email to send some information passing some variables. Disregard the num_rows topic. I was thinking of something else. This is a partial part of the code:
 mail ('recepient@yoursite.com', 'Your subject', 
"This is where i want the variable to show",

'From: webmaster@mysite.com');

The variables are $invoice_num & $description.

The varaibles are being passed from another page already. The mail script sends most of it, but i cannot get it to show within the message area of the email.

Thanks in advance!

#2 cunoodle2

cunoodle2
  • Members
  • PipPipPip
  • Advanced Member
  • 602 posts

Posted 05 May 2006 - 05:39 AM

Try this...

mail ('recepient@yoursite.com', 'Your subject',
"This is where i want the variable to show

The Invoice number is: ".$invoice_num."

The Description is: ".$description."

",

'From: webmaster@mysite.com');

That should do the trick for you.

If the code was working and now it's not, something changed. Did you change any code?

yeah, just a little bit, I am trying to start from beginning and trace my steps to see what i did wrong unless you see it.


#3 monkeybidz

monkeybidz
  • Members
  • PipPipPip
  • Advanced Member
  • 330 posts

Posted 06 May 2006 - 03:27 AM

Works great. Thanks! Now i just need to figure out how to make it insert new rows if more than one $invoice_num or $description.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users