|
|||
Hello all,
Now before I proceed, please allow me to state my case: I'm very new to PHP, but not so new til I do not know what it is. I do read up on every single documentation/PHP website/manual I can get my hands on, and it's good. But now I cannot solve one problem only so far, and it is the "mysql_connect" problem. Rest assured I have tried many, many times before I decided to post up my question here. I am the only "so-called" web designer in my company, so there is no one else to help me. I read the docs, PDF files etc but I cannot even understand the connect part in the first place, which leaves this forum as my last resort to get advice from the real pros. I have already successfully installed Apache, MySQL Server 5.0, and the basic PHP scripts run fine, so everything should be alright. It's just that seriously, I cannot understand why when I type :- <?php mysql_connect("localhost", "root", "root1") or die(mysql_error()); echo ("Connected to database"); ?> it just doesn't show nor does it give any error. MySQL is running, and the database created runs fine. So I am now wondering what else went wrong? Is it :- 1. Create database in MySQL using the SQL scripts, then 2. Write the php code to connect to the database? or did I left out some steps? Please do help a genuine lost PHP newbie. Thanks and regards. |
|
|||
Thank you
Hi Seanie,
Thank you for your prompt reply. I am still figuring out how to do it, and I will try out your methods. I'm using my local machine as the test server as my company has set all theirs to run only ASP.NET So far, I've referred to a number of documentations and they just set up the Apache + MySQL server, and jump straight to creating the database and tables itself. Thanks. ![]() |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Aductions Is Arriving Malaysia, Connect Advertisers and Publishers | Aductions | Revenue and Monetization | 0 | 04-04-2008 12:26 PM |
| how to connect to mysql5.0 from php4? help me plzz | SolidLucky | Website Programming | 4 | 18-01-2007 09:30 AM |
| can't connect to mysql server on localhost | nurulmajdi | Website Programming | 6 | 16-02-2004 03:57 PM |
| Linux mandrake can connect to streamyx?? | tkh135 | Mamak Stall | 13 | 27-07-2003 12:34 PM |
| OOP dan Database | kidino | Website Programming | 0 | 07-10-2002 06:25 PM |
All times are GMT +8. The time now is 07:24 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.










Linear Mode

