|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
MySQL Login
Hi I made user accounts and I have troubles with a php script.
How to make the php script connect to a MySQL database? And how to make it connect and then disconnect?
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++! |
#2
|
||
|
Did you search forums for the answer? THere has to be a reply from someone on that topic.
|
#3
|
|||
|
Quote:
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++! |
#4
|
||
|
Search for the queries mysql_connect(); and mysql_disconnect(); as well as mysql_query();
|
#5
|
||
|
None.
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++! |
#6
|
||
|
It is well documented on php.net
http://uk2.php.net/function.mysql-connect As you can see mysql_connect(); and mysql_close(); are what you're looking for. However, as long as you don't open a persistent mysql connection there is no point using mysql_close as the connection automatically drops itself after use.
__________________
|
#7
|
||
|
Ok Thanks.
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
php.mysql login.. | ziprock | Web design and Programming | 2 | 08-10-2005 03:45 PM |
login help | tommeh | phphq.Net Forums | 1 | 03-21-2005 09:46 PM |
LOGIN! | atholon | Feedback / Novahq.net Support | 2 | 04-11-2004 06:17 PM |
Can't login | JoJo | Tech Support | 0 | 04-21-2003 04:24 AM |
login name | XenoMorpH | Feedback / Novahq.net Support | 2 | 09-12-2002 05:12 AM |