Chikwado Posted October 22, 2014 Share Posted October 22, 2014 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 More sharing options...
Ingolme Posted October 22, 2014 Share Posted October 22, 2014 What code were you putting in there that didn't work? Arrays are working there for me. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 22, 2014 Share Posted October 22, 2014 That URL gives me a 404. 1 Link to comment Share on other sites More sharing options...
Chikwado Posted October 22, 2014 Author Share Posted October 22, 2014 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 More sharing options...
Ingolme Posted October 22, 2014 Share Posted October 22, 2014 I just tested that code and there are no errors. Here it is: http://mysmashing1.codepad.org/DjSMv8u4 Link to comment Share on other sites More sharing options...
Chikwado Posted October 23, 2014 Author Share Posted October 23, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now