 |
Results from the most recent live auction are here.
22 members in the live chat room. Join Chat!
| |
10-24-2003, 01:52 PM
|
· #1 | | Senior Member Join Date: May 2003
Posts: 2,211
NP$: 6170.25 ( Donate)
| Connect to a mysql Database using php PHP Code: <?
$username = "username";
$password ="password";
$db = "db";
$conn = mysql_connect("localhost", "$username", "$password") or die(mysql_error());
mysql_select_db("$db", $conn) or die (mysql_error());
?>
Once you have php,mysql working you can add this to a php file to use the database
you may also need other tools such as phpmyadmin www.phpmyadmin.net to help generate the mysql queries and make/delete/edit/change databases |
| |
10-30-2003, 06:35 PM
|
· #2 | | Senior Member Join Date: Aug 2002
Posts: 1,300
NP$: 2.85 ( Donate)
| Nice one! That was a definite needed code snippet around here. ... Thanks for sharing.  |
| |
10-31-2003, 09:35 AM
|
· #3 | | Senior Member Join Date: May 2003
Posts: 2,211
NP$: 6170.25 ( Donate)
|
surprised it wasnt already here |
| |
04-18-2004, 02:07 PM
|
· #4 | | NP Maniac™ Name: Tom Location: East Midlands, UK Join Date: Apr 2004 | I am saving this page in my "Cool Sites" guide  , cool reference if your in a hurry.
__________________ 47ideas.com - my freelancing portfolio. 24series7.com - all the latest info and gossip on the latest 24 series. |
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |