Jump to content

mikemanx2

Members
  • Posts

    48
  • Joined

  • Last visited

Posts posted by mikemanx2

  1. 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...

  2. 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>

  3. 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.

    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.

    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.

    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.

  4. 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>

  5. 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...