![]() |
PHP help
I'm trying to change the way I make my site by using PHP. [ trying to anyway lol]
Please can someone tell me what's wrong with this. Thanks PHP Code:
|
well your missing the quote and semi colon on the first echo and you should use print, instead of echo
|
Thanks. I'll try again
What's the main difference between print and echo? |
There is none, to my knowledge.
|
print just displays the info and echo returns true if it does false if not.....or something like that, try php.net, but i learned to use print because i used to do echo too
|
also specialchars like \n are treatened different in echo and print AFAIK
|
Just when you thought I'd gone...lol
1. What is \n? 2. I have now managed to display a spell underneath the link when you click on it! [go me - this is a big advancement for me] I have seen loads of files which have several <body> and <html> tags with a php page. What I wanna do is do the same - when you click on a link, it will show the spell as if it's on a new page, ie just on it's own. How would I do that? Thanks for all your help guys |
so you want it all contained in one php file but looks like a different page?
PHP Code:
also, \n is like a <br> so you'd do PHP Code:
edit: fixed stuff |
Yes I totally get it!
It's just a case of where to put the code you've stated :/ ie. where do the <HTML> and <BODY> tags etc. go? |
where i have the display html part, and you can open the tags on both because it will only execute one of the options so it won't duplicate any of the tags
so you could do PHP Code:
edit: finished editing |
All times are GMT. The time now is 09:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|