Jump to content

LiamProductions

Members
  • Posts

    496
  • Joined

  • Last visited

    Never

Everything posted by LiamProductions

  1. Make your own, Get a MySQL Database and a PHP file then off you go. You will learn and know what is going on in the code if you make your own
  2. Well if i learn while a teenager... When im older like say 20 I won't have to spend the next 5 years learning PHP to get a job when im 20 I'll be able to get a Job because i'd have like 7 Years experience. And then when i earn money i can spend it going out places and drinking ect. And i do go out.
  3. Well, this is jcomb's web page (so his profile says at least). Web development is his WORK. I doubt web development is YOUR work. Besides, he is not discriminating. You can't stop me from Web Development and it will be my work one day. Why not learn early and have lots of experience in like 7 years?
  4. He said the last bit of his variable was'nt printing so i fixed it
  5. $row['page_title'] which = "Page Title -" . "$row_jobs['job_title']";
  6. jcombs, You don't think i will create forums or games in PHP ever why is that? And your using age discrimination, I can learn PHP for a carrer in the future. And don't you have better things to do aswell?
  7. <?php $rand = rand(1,4); case $rand: case 1: echo "Imageurl.gif"; break; case 2: echo "imageurl2.gif2; break; default: echo "No image was produced"; not sure, if that case works but i'm sure the rand() function is giving you idea how you could do it
  8. I had this error earlier today i put that error into Google and found out that it means a misplaced } somewhere
  9. Thats the thing... I need to learn the basics
  10. Just reading what you said, I have programmed one thing a register and login script, I learned it off a tutorial on YouTube and i learn't a few things like this: if (!isset($_POST['username'])) { if(!isset($_POST['password'])) { if(!isset($_POST['email'])) { } else { echo "Please enter a email"; } else { echo "Please enter a password"; } else { echo "Please enter a username" } Thats something i didn't know how to do and i learnt how to get data from a database and how to un crack a md5... AND... What exactly is your motivation at this point? Don't you have better things to do? My motivation is to make great success with PHP in the future to work for clients and to make PHP games, Forums and more! Don't you have better things to do? Like what?
  11. Yes, Basicaly your saying you should'nt learn it too quick you should put atleast 10 years into learning ti.
  12. I'm not in a rush and its in possible to read this book in 24 hours... I was just wondering is it a good book to start from?
  13. I'm not a teacher. And its the book name... Do you think its good and no i don't think i could learn all of PHP lol
  14. Hey, I want your review on this ebook i have: SAMS Teach your self PHP 4 in 24 hours I know its on the php books list i want to see your guys for this book.
  15. Error found: Warning: Invalid argument supplied for foreach() in /home/u3/scottcone/itsdaybreak.com/html/admin/deleteentry.php on line 41 On: http://www.itsdaybreak.com/admin/deleteentry.php That happens if you don't tick one and just press Delete selected.
  16. echo"<table style=\"width: 100%\;\" border=\"1\" cellpadding=\"2\" cellspacing=\"2\">"; You had a ; before the end of the line which tells the browser its the end of the line
  17. Thank you very much, It would of been lots easier if i spotted it my self... The table was User not user lol but thanks i found the error thanks to that mysql_error
  18. I'm still getting the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/liam/public_html/loginsuccess.php on line 15
  19. Hey, I've got an error in my login script i don't quite understand it: <?php if(!isset($_POST['Login'])) { if(!isset($_POST['user'])) { if(!isset($_POST['pass'])) { $user = $_POST['user']; $pass = $_POST['pass']; $user = strip_tags($user); $pass = strip_tags($pass); mysql_connect('localhost', 'liam_liam', 'code090'); mysql_select_db('liam_database'); $checkUser = mysql_query('SELECT * FROM user WHERE username ="'.$user.'" AND password ="'.md5.$pass.'"'); $checkUserRows = mysql_num_rows($checkUser); if($checkUserRows > 0) { $_SESSION['user'] = $user; echo 'Session is set'; } else { echo "Your cannot login because your data is not on my database"; } } else { echo "Please enter a password to login"; } } else { echo "Please enter a username to login"; } } else { echo "You did not fill in all login form"; } ?> Theres a error saying something about a error on mysql_num_rows and its saying You cannot login because your data is not in my database... but the data is... help please.
  20. SOrry i made a new post look in there.
  21. Hey. I've been fixing some errors on my script now im getting this error i'm not sure what it means so please help: Fatal error: Call to undefined function VALUES() in /home/liam/public_html/registerdone.php on line 56 Like 56 and afterwards is: VALUES ('"'.addslashes($user).'", "'.md5($pass).'", "'.addslashes($email).'", "'.addslashes($sport).'", "'.addslashes($IP).'", "'.addslashes($date).'",') or die(mysql_error()); echo "Successfully Registered!"; mysql_close($connection); } } } } } } } } ?>
  22. Right i think it might work if i fix this error but i've never come accross it before: Parse error: syntax error, unexpected $end in /home/liam/public_html/registerdone.php on line 76 on line 76 is the PHP closing tag ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.