logo
Search:

Login:


Forgot Details? Sign-up

forum >> Programming questions >> PHP / MySQL

petals.php

Posted May 16 2012 at 4:43 PM by
Andy Storch (blickfang)
Quote:
Hi

I am trying to teach myself PHP/MySQL. I bought PHP/MySQL for the Absolute Beginner. I have taken the petals.php file from the CD and also used the code in the book and it does not function correctly. Any thoughts?

Thanks!
AuthorMessage
Andy
Posted: May 18 2012 kl. 3:39 PM

I've got a working version of the code right here:

You can see the source code here.

I'm sure the code works correctly, but without seeing your particular installation and version of the code, I can't be sure what is wrong.

Here's a few suggestions:
  • Make sure you are running through a server (in the address bar, if the URL begins with file:// you're not running through the server
  • Be sure your server (probably XAMPP) is installed correctly and running
  • Be sure you're using the right address to your file
  • Be sure the file ends with the .php extension or the server will not pass it through the PHP interpreter
  • Be sure the images are in the same directory as the PHP file