NurBoNegro` Posted August 4, 2007 Share Posted August 4, 2007 ok we'll im just starting out so what should I learn first and can somebody link me to some tutorials. note: its 5 in the morning im very tired :-\ Quote Link to comment https://forums.phpfreaks.com/topic/63307-noob/ Share on other sites More sharing options...
AndyB Posted August 4, 2007 Share Posted August 4, 2007 ... what should I learn first ... Depends on what you want to do. Quote Link to comment https://forums.phpfreaks.com/topic/63307-noob/#findComment-315489 Share on other sites More sharing options...
NurBoNegro` Posted August 4, 2007 Author Share Posted August 4, 2007 We'll I want to first learn how to code a basic website EDIT:/// ok heres some questions I got <?php $txt = "Hello World!"; $number = 16; ?> now would that just say on the website "Hello world" and it would be on line 16. And instead of saying line you say string so string=line? Quote Link to comment https://forums.phpfreaks.com/topic/63307-noob/#findComment-315491 Share on other sites More sharing options...
wildteen88 Posted August 4, 2007 Share Posted August 4, 2007 The script does nothing of what you say it'll do. What it'll do is define two variables called txt and number. txt holds a string value of "hello world" and number holds a integer value of 16. It'll do nothing else In order for PHP to display the value of the variables you'll use echo: <?php $txt = "Hello World!"; $number = 16; echo '$txt is: ' . $txt . '<br />'; echo '$number is: ' . $number; ?> RESULT $txt is: Hello World $number is: 16 Quote Link to comment https://forums.phpfreaks.com/topic/63307-noob/#findComment-315511 Share on other sites More sharing options...
LiamProductions Posted August 4, 2007 Share Posted August 4, 2007 We'll I want to first learn how to code a basic website EDIT:/// ok heres some questions I got <?php $txt = "Hello World!"; $number = 16; ?> now would that just say on the website "Hello world" and it would be on line 16. And instead of saying line you say string so string=line? Those are variables. You need to echo them out with echo. Watch the videos at http://www.phpvideotutorials.com you'll find it easy to learn PHP basics. Quote Link to comment https://forums.phpfreaks.com/topic/63307-noob/#findComment-315525 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.