MySqlTalk.com  

Go Back   MySqlTalk.com > Programming Languages and MySQL > PHP
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread
Old 01-07-2005, 03:20 AM   #1
steps3314
Junior Member
 
Join Date: Jan 2005
Posts: 3 steps3314 is on a distinguished road
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
steps3314 is offline   Fork this post Reply With Quote
Old 01-17-2005, 09:40 AM   #2
Azkaban
Senior Member
 
Join Date: Jul 2004
Posts: 167 Azkaban is on a distinguished road
Re: blank html files being returned

What are the contents of your php file?
Azkaban is offline   Fork this post Reply With Quote
Old 01-17-2005, 11:13 AM   #3
steps3314
Junior Member
 
Join Date: Jan 2005
Posts: 3 steps3314 is on a distinguished road
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
steps3314 is offline   Fork this post Reply With Quote
Old 01-18-2005, 12:43 AM   #4
Azkaban
Senior Member
 
Join Date: Jul 2004
Posts: 167 Azkaban is on a distinguished road
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).
Azkaban is offline   Fork this post Reply With Quote
Old 01-18-2005, 06:11 AM   #5
steps3314
Junior Member
 
Join Date: Jan 2005
Posts: 3 steps3314 is on a distinguished road
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
steps3314 is offline   Fork this post Reply With Quote
Reply


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

Advanced Search

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

vB 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
2 Installing MySQL Administrator Documentation 103 06-09-2004 02:53 AM



All times are GMT -4. The time now is 06:13 AM.



Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Google
  Web http://www.mysqltalk.com
DISCLAIMERS:
1. We have no commercial interest in this site.
Banner Ads and Subscriptions will only be used to help pay for hosting and maintenance costs.
2. MySQLTalk.com is NOT affiliated with MySQL AB in any way.
3. MySQLTalk.com is NOT endorsed by MySQL AB in any way.
4. Please do not post any content that is harmful to MySQL or MySQL AB, meaning no misleading or obsolete information will be tolerated.
Well-founded constructive criticism meant to help the community is permitted.
5. This website is founded with the goal of improving the MySQL community.
We not only tolerate newbies, we encourage them.
Please do not ask newbies to "read the manual".