Jump to content

9homie

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

9homie's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello. I am starting a website for renders. I am a good coder using HTML and CSS and Photoshop, so I can design and code the website, the only problem I have is that I need to make a search function and a most viewed function for the site, and I am not that good using PHP, so I need a little help. Could someone please help me with the script. What I would like it to be would be to do exactly the same thing as the planet renders functions. The renders will also be in separate sections like planet renders. I have basic knowledge in PHP, so I can edit the code to suit me, but can just not create them from scratch, if someone could help me with this, them that would be great. Thank you very much 9homie P.s. Planet Renders URL is: http://www.planetrenders.net/renders
  2. Are there any other suggestions? I might consider getting wordpress, but I might not if a better suggestion comes up...
  3. Hello. I am new to PHP and do not want to learn too much of it because I like C++ more but I am going to make a website and I want to use PHP to make a comment board/box and a /5 rating system. I want the comment board/box, at the bottom, to post a comment, first they have to type in their name and then their message, then it posts it and it comes up in the box, with 10 results per page and something to change the same pages but not refresh the page when doing it. The /5 rating system is just so they rate it and it takes the average out of it all and then says what it is. Basically like the YouTube comment board and rating system without the video responses. Can anyone help with a site with a tutorial on it or will someone post a code for me and tell me how to use it? Thank you in advance 9homie
  4. Should it not be also easy with PHP... Also why would I not try before hand, of course I did, try and get evidence before you accuse people by the way. If the javascript is more easy then does anyone know it or should I ask it somewhere else?
  5. Hello. I have got this form for the registration (I know it is a table, I am going to change it soon): <form action="process.php" method="POST"> <table align="left" border="0" cellspacing="0" cellpadding="3"> <tr><td>Username:</td><td><input type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>"></td><td><? echo $form->error("user"); ?></td></tr> <tr><td>Password:</td><td><input type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>"></td><td><? echo $form->error("pass"); ?></td></tr> <tr><td>Email:</td><td><input type="text" name="email" maxlength="50" value="<? echo $form->value("email"); ?>"></td><td><? echo $form->error("email"); ?></td></tr> <tr><td colspan="2" align="right"> <input type="hidden" name="subjoin" value="1"> <input type="submit" value="Join!"></td></tr> <tr><td colspan="2" align="left"><a href="index.html">Back Home</a></td></tr> </table> </form> and I also have this to make the form work: /** * register - Gets called when the user has just submitted the * registration form. Determines if there were any errors with * the entry fields, if so, it records the errors and returns * 1. If no errors were found, it registers the new user and * returns 0. Returns 2 if registration failed. */ function register($subuser, $subpass, $subemail){ global $database, $form, $mailer; //The database, form and mailer object /* Username error checking */ $field = "user"; //Use field name for username if(!$subuser || strlen($subuser = trim($subuser)) == 0){ $form->setError($field, "* Username not entered"); } else{ /* Spruce up username, check length */ $subuser = stripslashes($subuser); if(strlen($subuser) < 5){ $form->setError($field, "* Username below 5 characters"); } else if(strlen($subuser) > 30){ $form->setError($field, "* Username above 30 characters"); } /* Check if username is not alphanumeric */ else if(!eregi("^([0-9a-z])+$", $subuser)){ $form->setError($field, "* Username not alphanumeric"); } /* Check if username is reserved */ else if(strcasecmp($subuser, GUEST_NAME) == 0){ $form->setError($field, "* Username reserved word"); } /* Check if username is already in use */ else if($database->usernameTaken($subuser)){ $form->setError($field, "* Username already in use"); } /* Check if username is banned */ else if($database->usernameBanned($subuser)){ $form->setError($field, "* Username banned"); } } /* Password error checking */ $field = "pass"; //Use field name for password if(!$subpass){ $form->setError($field, "* Password not entered"); } else{ /* Spruce up password and check length*/ $subpass = stripslashes($subpass); if(strlen($subpass) < 4){ $form->setError($field, "* Password too short"); } /* Check if password is not alphanumeric */ else if(!eregi("^([0-9a-z])+$", ($subpass = trim($subpass)))){ $form->setError($field, "* Password not alphanumeric"); } /** * Note: I trimmed the password only after I checked the length * because if you fill the password field up with spaces * it looks like a lot more characters than 4, so it looks * kind of stupid to report "password too short". */ } /* Email error checking */ $field = "email"; //Use field name for email if(!$subemail || strlen($subemail = trim($subemail)) == 0){ $form->setError($field, "* Email not entered"); } else{ /* Check if valid email address */ $regex = "^[_+a-z0-9-]+(\.[_+a-z0-9-]+)*" ."@[a-z0-9-]+(\.[a-z0-9-]{1,})*" ."\.([a-z]{2,}){1}$"; if(!eregi($regex,$subemail)){ $form->setError($field, "* Email invalid"); } $subemail = stripslashes($subemail); } /* Errors exist, have user correct them */ if($form->num_errors > 0){ return 1; //Errors with form } /* No errors, add the new account to the database */ else{ if($database->addNewUser($subuser, md5($subpass), $subemail)){ if(EMAIL_WELCOME){ $mailer->sendWelcome($subuser,$subemail,$subpass); } return 0; //New user added succesfully }else{ return 2; //Registration attempt failed } } } From that can anyone help me to put in a confirm password and a confirm email fields? Thank You 9homie
  6. Do you think that that would be a good enough server?
  7. No. I don't know what to do with it if I have to do something with it. What do I do?
  8. What about the server on a iMac computer? That is quite good, I think.
  9. Hello. I am using http://localhost/ But when I go on it, it works and then when I type in my file name after it, then it comes up with Internet Explorer can not find this website. I don't know what to do, do any of you know? Thank You in advance 9homie
  10. why should I get a new computer or whatever you are trying to tell me to get?
  11. Traffic = yes, tons. I am only 12. So not the job idea... I mean like on the 000webhost there is a option to take the free web hosting and then when you want you can upgrade it and start paying for the paid one... Also I can't find the database dumb, will it be in the phpmyadmin?
  12. What do you mean, sorry not the best at these things, so can you put the instructions to do that here please and also is there any web hosting service that has a free web hosting service thing and also it has a paid GOOD one WITH it? That doesn't cose that much?
  13. Well would it not be REALLY hard to change it round because of all the tables and things, how do I transfer my members? Also can you recommed one?
  14. I am using the hosting on this website (the free hosting) www.000webhost.com
×
×
  • 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.