Jump to content

mikemanx2

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by mikemanx2

  1. sry never mind i just found it thx anyway
  2. Ive asked this question befor but i can find the code anyware in my comp so you guys think you can halp me my qestion it how do i make a random image every time you veiw the site thx...
  3. mikemanx2

    Random

    My host dus have php enabled i have the bravenet pemem edishion
  4. mikemanx2

    Random

    ware duss it genorate the html code or do i put that code into my html document or do i save it as .js <script language="JavaScript"><!--images = new Array();images[0] = "<img src='http://www.google.co.uk/intl/en_uk/images/logo.gif'>";images[1] = "<img src='http://w3schools.invisionzone.com/style_images/w3sbanner.gif'>";index = Math.floor(Math.random() * images.length);document.write(images[index]);// --></script>
  5. mikemanx2

    Random

    Thx But one more thing do you no what the html code would be for it
  6. mikemanx2

    Random

    But i dont want random background i want a random image on my page
  7. mikemanx2

    Random

    Hi im trying to do a random image thing with my frount page. i tryed php by you cant atomaticly run a script in html for php. So if any one can help me please help.
  8. mikemanx2

    Random

    It dident work... Do you know how to do it with html the random pic thing because i no theres a way because look at some of those site that have the random things on them and there made out of html.
  9. mikemanx2

    Random

    ware would i find the htacess thing
  10. mikemanx2

    Random

    OK But I want to put the random image thing on my front page but my front page is html and it wont show up it will just showup and code in the page.
  11. mikemanx2

    Random

    Hi i dont know if im sopost to use php for random images. But if php is the languge can you tell me the right one or if php is right can you help me im trying to put a pat on my website with random images.
  12. mikemanx2

    login help

    Yes my host suports php
  13. mikemanx2

    login help

    It still dusent work register.php
  14. mikemanx2

    login help

    Can Someone Help Me Fix My code
  15. mikemanx2

    login help

    Im also using bravenet premem with the my sql database and hat i think its not conecting right so well heres my cody for register.php <html><head><title>Register</title></head><center><h2>Register</h2><hr><body><?php$conn=sql2.bravehost.com('northwind','','');if (!$conn) {exit("Connection Failed: " . $conn);}$sql="SELECT * FROM customers";$rs=($conn,$sql);if (!$rs) {exit("Error in SQL");}<?if ($_POST['submit']){$un = $_POST['username'];$pass = $_POST['password'];$passc = $_POST['passwordc'];$pass2 = $_POST['password'];$un = stripslashes($un);$pass = stripslashes($pass);$passc = stripslashes($passc);if ($un == "") { $error=true; }if ($pass == "") { $error=true; }if ($passc == "") { $error=true; }if ($pass != $passc) { $error=true; }if($error){ echo "The following errors have occured:<br /><ul>"; if ($un == "") { echo "There is no username.<br />"; } if ($pass == "") { echo "There is no password.<br />"; } if ($passc == "") { echo "There is no password confirmation.<br />"; } if ($pass != $passc) { echo "Passwords don't match.<br />"; } echo "</ul>";}else{ $pass=md5($pass); $sql="INSERT INTO users (username, password) VALUES ('$un', '$pass')"; $query=sql2.bravehost.com($sql); if($query) { echo "You are now registered!, You can now <a href='login.php'>Login</a>."; } else { echo "Sorry There was an Error Try Later and it mite be fixed or contact me mikemanx2@hotmail.com"; } exit; }}?><form action="" method="post"><table><tr><td>Username:</td><td><input name="username" type="text" maxlength="20" value="" /></td></tr><tr><td>Password:</td><td><input name="password" type="password" maxlength="16" value="" /></td></tr><tr><td>Confirm Password:</td><td><input name="passwordc" type="password" maxlength="16" value="" /></td></tr><tr><td><input type="submit" value="register" name="submit" /></td></tr></table></form></body></html>
  16. mikemanx2

    login help

    Its Still Not Working This is my register page Register.phpIt Wont Even Load Now
  17. mikemanx2

    login help

    sry just one more thing ware do i put in my data base connection and that stuff
  18. mikemanx2

    login help

    thx guys for all your help
  19. mikemanx2

    login help

    Thx but would i save this as a .php or .html
  20. mikemanx2

    login help

    Ok i got the login but now i dont no how to do a register can anyone plz help me
  21. mikemanx2

    hr help

    how do i make a line <hr> a color plz help
  22. mikemanx2

    login help

    Can Anyone help Me
  23. mikemanx2

    login help

    I Need A lot of help i have a sql database but i dont no how to make a regester user and login plz can i have some help im prety shure i need to use php the only langugese i know is html,qbasic,and the basics of php plz help!!!
×
×
  • Create New...