|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
I installed php4 and mysql on my linux box. I ran a simple "phpinfo()"-script, and it worked just fine. The phpinfo gives me the following info:
MySQL Support - enabled Active Persistent Links - 0 Active Links - 0 Client API version - 3.23.10-alpha mysql_include - mysql_lflags - mysql_libs - Then I try using php to connect simply to my mySQL server which is working fine: mysql_connect(127.0.0.1, root, sql); However, I get the following error in my browser: Parse error: parse error in /home/httpd/file.php on line 5 I assume that is because php doesn't have a clue what 'mysql_connect' means. I don't know how to 'teach' php that syntax or where to look it up. I'm suspecting it has something to do with the 3 empty: mysql_include - mysql_lflags - mysql_libs - lines in my phpinfo() result, which should probably point to some directory. Can anyone help me? I'd really appreciate it. |
|
#2
|
|||
|
|||
|
No, it means you did something wrong. You need quotes around the arguments to the function.
|
|
#3
|
|||
|
|||
|
The fact that you got a PHP error means that PHP is working, have a look at your code
Paul |
|
#4
|
||||
|
||||
|
Your code should look like this = mysql_connect("localhost","username","password");
------------------ Hartmann |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > mysql and php not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|