Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-08-2006, 04:41 PM
Webviper2006 is offline Webviper2006
Registered User

Join Date: Nov 2005
Posts: 495

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++!
Reply With Quote
  #2  
Old 02-08-2006, 05:51 PM
DevilDog#1 is offline DevilDog#1

Join Date: Jul 2002
Posts: 7,040

Did you search forums for the answer? THere has to be a reply from someone on that topic.
__________________








Quote:
If I don't do that doesn't mean I can't - DD#1
Reply With Quote
  #3  
Old 02-08-2006, 09:45 PM
Webviper2006 is offline Webviper2006
Registered User

Join Date: Nov 2005
Posts: 495

Quote:
Originally posted by DevilDog#1
Did you search forums for the answer? THere has to be a reply from someone on that topic.
I don't thinks so. I just searched and their is none.
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++!
Reply With Quote
  #4  
Old 02-08-2006, 10:08 PM
JonM is offline JonM
Registered User

Join Date: Jun 2004
Posts: 2,156

Search for the queries mysql_connect(); and mysql_disconnect(); as well as mysql_query();
Reply With Quote
  #5  
Old 02-15-2006, 01:20 PM
Webviper2006 is offline Webviper2006
Registered User

Join Date: Nov 2005
Posts: 495

None.
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++!
Reply With Quote
  #6  
Old 02-15-2006, 03:42 PM
Capers is offline Capers
Registered User

Join Date: Oct 2003
Posts: 158

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.
__________________
Reply With Quote
  #7  
Old 02-20-2006, 11:16 PM
Webviper2006 is offline Webviper2006
Registered User

Join Date: Nov 2005
Posts: 495

Ok Thanks.
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 04:17 PM.




Powered by vBulletin®