Jump to content

php


Recommended Posts

What is the best way to use php functions when dealing with MYSQL information.I create a form and I am trying to validate it with php, if it passes validateion THEN send it through the the Mysql functions.Should I have the mysql on the same page, or put them in a different page and include them, if so how.

Link to comment
Share on other sites

How do I get the subscribe and unsubscribe to do different things. FOr instance I know how to validate it already, someone also told me how to work in the processing for the database, the results of the form. but I don't know how to make the unsubscribe button remove the data from the form IF it is currently present in the database, but return an error if it's not in the database.

Link to comment
Share on other sites

Check in the database first, and see if anything is there. Do a select statement and try to get the user record, and if it's not there then show the error, or else do a second query to delete it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...