![]() |
|
|
#1 |
|
Junior Member
Join Date: Jan 2005
Posts: 3
|
blank html files being returned
Hi guys, im just new to this forum and it looks good by the way, some very useful tips in here. I have a problem though.Ive just started experimenting with mysql and php. I have a mysql server setup with a databases and tables etc.I also have my web server setup (xitami) and have insatlled php also. But when i create a test.php file and execute it in my web browser i get a new window buts its blank. Any advise, it looks like ive gotten far enough with the exception of something trivial. Tnxs in advance
![]() |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Jul 2004
Posts: 167
|
Re: blank html files being returned
What are the contents of your php file?
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2005
Posts: 3
|
Re: blank html files being returned
Hi there
First of all, many thanks for your reply. Ive managed to sort that problem. i just had to mess around with the web server (setup the filters). However i have encountered a new fault...one which is driving me crazy for over 10 days now.I have mysql and php both running on my machine. So i decided to test it. I got a simpe hello.php to work so i decided to go to the next step...trying to get php and mysql to work together. I created a employer database with a table called emp and two records within...However when i run the script (127.0.0.1/employer.php) i get an error message on the mysqlconnect() part. Now i set up mysql with a password so my function looks like mysqlconnect('localhost','root','password')......t he spelling here might not be correct so ignore it)/ Anyway ive tried it with a password, without a password, everything...Nothing will work.. Ive even got my buddy to test it on his machine, we both installed the new version of mysql both it didnt work for him either. He had an older version of mysql which i tried to install and this wont even install on my computer. Im at my wits end with this...ive looked on forums and this is a common problem for people although there are lots of solutions, nothing works for me Everything is setup correctly because they all work on their own |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jul 2004
Posts: 167
|
Re: blank html files being returned
What kind of server is it? How do you know mysql is running? What are you able to connect to it? Do you have access hosts turned on for the IP Address, domain name, every combination you can come up with to define the server. Can you give the exact syntax of the full php file you are using to connect this (replacing the user with XXXX and password with YYYY of course).
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jan 2005
Posts: 3
|
Re: blank html files being returned
1)Xitami server
2)Ive created databases and tables within the databases and used select statements to retrive the data....all fine 3)dont know wat u mean by access hosts but for security reasons i just have it setup to run locally and no remote access 4)I send give you the full syntax when i get home from work but the error points to this line mysql_connect(address, username, password); My buddy who is efficient in php and mysql tried to get this newer version of mysql to work but had the same problems |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2 Installing MySQL | Administrator | Documentation | 103 | 06-09-2004 02:53 AM |