The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Oh ok. I understand. So the .php file will have my sql code in it correct? Can I just paste the sql code right into the .php file or are there other things that I have to do to it?

You'll need to establish a connection to the database, do the SQL query, process the results, or display them and finally allow your visitor somewhere to go. As well as all the normal error catching stuff.

A Little Knowledge Is A Very Dangerous Thing.......That Makes Me A Lethal Weapon !!!!!!!!

Well, I didn't want to make a new thread for a topic that's already made up. So I used the search function
There were also 2 other threads for this topic, but they didn't get me an answer. This one had the most replies and I thought to bump this one instead of making a new one.

Well, I didn't want to make a new thread for a topic that's already made up. So I used the search function
There were also 2 other threads for this topic, but they didn't get me an answer. This one had the most replies and I thought to bump this one instead of making a new one.

I didn't even notice you were asking something, I thought you were giving an answer

All PHP code is executed BEFORE the page is sent to the client. Here function1() will be replaced with the result of that function call. It doesn't mean that function1() will be executed when the user clicks on the link.