 |
Results from the most recent live auction are here.
17 members in the live chat room. Join Chat!
| |
10-24-2003, 12: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, 05: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, 08:35 AM
|
· #3 | | Senior Member Join Date: May 2003
Posts: 2,211
NP$: 6170.25 ( Donate)
|
surprised it wasnt already here |
| |
04-18-2004, 01:07 PM
|
· #4 | | NP Maniac™ Name: Tom Location: East Midlands, UK Join Date: Apr 2004
Posts: 726
NP$: 11.75 ( Donate)
| I am saving this page in my "Cool Sites" guide  , cool reference if your in a hurry.
__________________ 47ideas.com - my freelancing portfolio. PHP/MySQL Development offered: PM me for a quote. DVDRAM.ORG only $25 | ExamKits.com reasonable offers welcome |
| |
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 | | | |