Jump to content

Archived

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

Perad

Simple query

Recommended Posts

I have "timer" in a table called button

timer has a number string in it. I want to request the number.

I know i have to start with

[code]require_once('mysql_connect.php');[/code]

Could someone give me the other 1-2 lines please. Thanks a lot.

Share this post


Link to post
Share on other sites
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().

Share this post


Link to post
Share on other sites

×

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.