Welcome to the Treehouse Community
Looking to learn something new?
Krystel Hagan4,731 Points
Currently I am trying to link a web based document to a server with PHP. I took all the Treehouse courses for this and I am still a bit confused. Here is what I have so far, if anyone would even have an example of how this should look/be set up please feel free to share!
mysql_connect(server, user, password) mysql_select_db("database name") mysql_query(SELECT FROM ("database name")) mysql_fetch_assoc("file/doc inside the database I would like to grab")
David Kaneshiro Jr.29,247 Points
Hi Krystel Hagan,
Check out the first example in the following php.net manual page for the mysql_fetch_assoc function:
I believe it is a good starting point. The example is concise, uses all the functions you plan to use, and it shows you how they would work with each other.