The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

PHP problem

Hi All,

I just installed MySQL IIS, and PHP on a Server2000 machine. When I try to look at the first PHP example in Kevin Yank's book, what I get is a blank page. When I view source, it shows the code mostly correctly. The second field in his code appears incorrectly but otherwise looks fine.

Start at the top and check to make sure that you have all of your tags and quotes closed.

Actually, I've done this several times. This bit of coding is all there is to the page because I'm just learning about PHP, SQL and database design. I'm not too bad at HTML and have done way longer code than this by hand with no problem....however, that being said, there is still something not quite right so I'll check again as you suggest. Thanks:......

The actually code part runs fine and if you are able to view the source and it is there we know it's being processed correctly.

I agree, it appears that the code is being correctly interpreted. So it's probably not PHP doing the job wrong.

In my experience this problem is usually due to a simple error in the HTML coding, example:

I also agree with this statement, thought I had checked it thoroughly, but maybe there's a goofy character somewhere that, because I put it in, can't see....again, Thanks JD......:-)

Check for this sort of thing. If you still can't find it post a link to the page or the entire source ( if it isn't to big ) so we can see what is happening.

It's only the size of the original source that I typed in with the first question. So, if I don't find the problem, I'll be happy to have someone see what happens (which is just a blank screen, no text, no pictures, nada).

At lease I know that MySQL is working properly.Everything Kevin Yanks said in his book about that worked, just not the PHP script (and it's only a one liner).

Currently, I'm at work but will be home in 6 hours or so, and will do this.

Again, I really appreciate your help, it does help to have a second set of eyes on problems, even small ones like this....Thanks......