![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | |
|
Newbie
Join Date: Oct 2004
Posts: 4
Rep Power: 0
![]() |
Hi,
This is a daft idea for a script but I was bored, So decided to give it a try. I get the error Quote:
if you could look at the code for me and try and see whats wrong I would appreciate it. This is my first script and I never really bothered with php untill today! <?php //\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ // Welcome Script 0.1 \\ // http://bonkersworld.com \\ // Made by Craig Eaton \\ //\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //Edit these below to match your site settings. // Take out the comment tag on the date setting if you want to add the // date you created the site. //Same for age. $creator = "Your Name"; $site = "Your website name"; //$date = "Todays date. d/m/y format"; $about = "What the site is about"; $why = "Why did you make this site?"; //$age = "How old are you?"; $why = "Why did you decide to create the site?"; $old = "are you old/young"; // DO NOT EDIT BELOW THIS LINE UNLESS TO TAKE OUT THE COMMENT TAGS. echo "Hello, my name is $creator and welcome to $site!<br>"; //echo "I put this site up on the $date, so if you're coming along time after that //it's doing well! I'm $age, so i'm pretty $old, for this!<br>"; echo "This site is about $about, and I hope you enjoy it and add us to your bookmarks. I made this site becuase $why, so I hope you enjoy it as much as I did making it. I decided to make the site because $why<br>.; ?> |
|
|
|
|
|
|
#2 |
|
Newbie
Join Date: Oct 2004
Posts: 4
Rep Power: 0
![]() |
have figured it out. Missed out a quotation at the end
![]() |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
yes. the last line.
also, make sure your variables have values.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() |
yeah empty vars are just a plain bad programming practice.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Oct 2004
Posts: 4
Rep Power: 0
![]() |
I know it's not perfect. Thats the first time i'd even attempted to make anything out of php. I've read no books, or sites. It's just what i've picked up from editing php scripts for my website
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|