Page 1 of 1

SQL and php

Posted: Fri Feb 26, 2010 10:32 pm
by bobcomp11
Is there a way to have the action of my form submit the data to my database and then have it also email the the email address that way entered on the form all of the results.

Also is there a way to put in the select statement i have a database and when a user logs in i want to be able to display how many recommendations that user has sent but cant seem to get just that users info out of the database in the select from and where statement

Re: SQL and php

Posted: Fri Feb 26, 2010 10:44 pm
by s.dot
bobcomp11 wrote:Is there a way to have the action of my form submit the data to my database and then have it also email the the email address that way entered on the form all of the results.
Yes, just mail() the entered email address.
bobcomp11 wrote:Also is there a way to put in the select statement i have a database and when a user logs in i want to be able to display how many recommendations that user has sent but cant seem to get just that users info out of the database in the select from and where statement
Show us your SQL.