Jump to content

The Sea King

Members
  • Content Count

    120
  • Joined

  • Last visited

Everything posted by The Sea King

  1. Wait. That worked after I adjusted my code once again.
  2. No. It just that the image was cut off at the bottom (ib2.png). I tried to play around but now the problem is that the first background image (ib1.jpg) is covering the second background (ib2.png).<html><head><title>Aqua Online Stats</title><style type="text/css">BODY {font-family : Verdana, Tahoma, Arial, sans-serif;font-size : 11px;padding : 0;text-align : center;color : #000000;background-color : #6183A6;background-attachment:fixed;background-image:url(http://thelostwaters.com/ib2.png);background-position:left bottom;background-repeat:no-repeat;}a:link, a:visite
  3. How can I fix the lower background image so that it would appear full?http://thelostwaters.com/index.php?stats=true
  4. I have a similar problem with sessons and cookies.
  5. Lines 15 to 42:I think I had corrected the problem... if (isset($_COOKIE["username"])){$username = $_COOKIE['Username'];$password = $_COOKIE['Password'];$check = mysql_query("SELECT * FROM Member WHERE Username = '$username'")or die(mysql_error());while($info = mysql_fetch_array( $check )){ if ($password != $info['password']){die('Sorry but your password is wrong. <a href=index.php>try again</a> . setcookie(Username, gone, $past) . setcookie(Password, gone, $past)')}else{echo "<a href=upload.php>Upload</a>";echo "<a href=files.php>Your Files</a>";echo "<
  6. Maybe show us the code?
  7. The Sea King

    MD5

    . I forgot to post after one minute of finding that. .
  8. The Sea King

    MD5

    how many characters does MD5 have?
  9. it keeps saying:Parse error: syntax error, unexpected T_STRING in /register.php on line 20
  10. if (mysql_query("SELECT Username FROM Members WHERE Username = $username" LIMIT 1")){die("$username is taken");}
  11. Maybe use SQL database to store the data?
  12. Thanks! :)Anyways I got three more questions:What does the semicolon do and what the exclamation mark do?And what is the mysql_real_escape_string() thing?
  13. I need help. Is this code ok?
  14. The Sea King

    Cookie

    I meant to get the username from the username form...
  15. The Sea King

    Cookie

    How do we make the value of the cookie change when will press submit? <?php setcookie("username", time()+3600);?><html><body><form action=''>Username: <input type="text" name="user"><br>Password:<input type="password" name"password"><br><input type="submit" value="Log in"></form><?phpif (isset($_COOKIE["username"])) echo "Welcome " . $_COOKIE["username"] . "!<br />";else echo "Welcome guest!<br />";?>
  16. How do I do a code which checks the SQL database for my table GP (* note it means General Password) and then takes us to another page like "register.php"?
  17. I got the code that lists the files: <?phpif ($handle = opendir('.')) {echo "<ul>";while (false !== ($file = readdir($handle))) {echo "<li><a href='$file'>$file</a> - </li>";}echo "</ul>";closedir($handle);}?> But I also want it to say it's size. I found this: filesize() but I don't know where to put it. Help?
  18. Thank you! I must learn more about php. .
  19. I know Veoh accepts mov files.
  20. I found this code on an php archive. I was wondering on how to remove the grouping of 10. <?phpif ($handle = opendir('.')) {$count = 0;while (false !== ($file = readdir($handle))) {echo $count == 0 ? "<ol>" : "";echo "<li><a href='$file'>$file</a></li>";$count++;if($count == 10){echo "</ol>";$count = 0;}}echo $count != 10 ? "</ol>" : "";closedir($handle);} ?>
  21. I want to do a I accept button which is clicked text below will show up.here what I have so far: <input id="downloadaccept_check" name="downloadaccept" nx="type:checkbox;targetId:downloads;prop:checked;targetProp:display;values:true,false;targetValues:block,none" type="checkbox" value="test"><label for="downloadaccept_check">Yes, I accept.</label></div><div id="downloads" nx="type:node;defaultStatus:display=none;restore:display"><div id="downloads" nx="type:node;defaultStatus:display=none;restore:display">Test</div> also what does the "nx" mean/do?
  22. Question: does youtube upload this mov file?
×
×
  • Create New...