Jump to content

Simple query


Perad

Recommended Posts

Read this:

[url=http://php.net/manual/en/ref.mysql.php]http://php.net/manual/en/ref.mysql.php[/url]

This wouldn't hurt either:

[url=http://php.net/manual/en/function.require-once.php]http://php.net/manual/en/function.require-once.php[/url]

;)

You first need to establish a connection to the mysql server using mysql_connect(). Then you select the correct database using mysql_select_db() and execute your query using mysql_query(). Then process its return variable using functions like mysql_fetch_assoc(). Finally close the connection with mysql_close().
Link to comment
https://forums.phpfreaks.com/topic/22246-simple-query/#findComment-99622
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.