PDA

View Full Version : Helpp my php just comes up blank



miracle-potential
04-16-2008, 06:26 AM
I'm fairly new to php sort of 6 months. So forgive me if this code is squiffy. :p

My code for a shop I'm programming for a friend just comes up with a blank page. Can anyone help I cant really see any major issues but its probably just my inexperience.

Basically the page that refers to product.php has a series of links in it that have preset queries for the catagory. So like myfile.php?cat=earings

And I could only think that parse_url() would be a good way to get the data from it to use in a query.

I've attatched a zip file of three files that seem to be having trouble with. Thanks guys! :D

Michael D Price
04-18-2008, 02:22 AM
Im looking at it.

Ill tell you right now that,

sessionstart() should come before any html.

If you are going to develope in php it would really help you if you turned error reporting on.

Here is your problem.

Fatal error: Cannot use [] for reading in D:\www\webroot\prodsel\prodfunc.php on line 31

another

Parse error: syntax error, unexpected '[' in D:\www\webroot\prodsel\url_constants.php on line 5

Time to go back to the drawling board