SQL and php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bobcomp11
Forum Newbie
Posts: 1
Joined: Fri Feb 26, 2010 10:28 pm

SQL and php

Post 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
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: SQL and php

Post 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.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply