PDA

View Full Version : SQL Queries in PHP mail()????



Lucky13
May 12th, 2001, 15:51
Is there a way to run a query of a SQL database in the PHP mail() tag? I want to make a link that will link back to "thispage.php?id=x"
I want to do a query to find "x". Is this possible? Thanks.

~Lucky13

BillWill
May 12th, 2001, 19:28
Instead of trying to do the SQL queries from the mail() function, why not handle the SQL functions before hand and store your result in a variable. In the e-mail's text use the variable where you need it. =)

Lucky13
May 13th, 2001, 10:29
lol...I hate being stupid. Thanks a lot.