Jump to content

Php compiler


Chikwado

Recommended Posts

Some one help please. I don't know weather I am at a right place or not, I googled this tools create a url for it and bookmark it as a project. Some php code work very fine in this tools, others do not work at all. For example: I have tested date and time and it work fine. I have tried array php code but it did not work. This is result it gives: Your code is error free but no program. These tool has the following URL: http://smashing1.codepad.org I need help and sugestions. Thank you.

Link to comment
Share on other sites

Sorry, when I saw some one putting code there I did not understand what the person was doing and I confused the url. I made the code like this <?php $cars=array("Volvo","BMW","Toyota"); echo "I like " . $cars[0] . " , " . $cars[1] . " and " . $cars[2] . " . " ; ?> and the URL are: http://mysmashing1.codepad.org when I clicked button it result error. Some one help please. Thank you.

Link to comment
Share on other sites

Thank you all for help I have discover the error. Php code has a rule how to arrange it. I have been pouring php code in the compiler without looking at the tutorial rule. This is how the code surpose to be arranged: echo "I like " . $cars[0] . ", " . $cars[1] . " and" . $cars[2] . ". " ; ?> and I did not arrage it this way. Thank you for help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...