Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. what the goal ? you want to email a html page ? if so checkout phpmailer
  2. change some of the dates and times and re-check
  3. humm why not <?php $result = mysql_query("SELECT * FROM videos WHERE GTitle = '$game' ORDER BY VTitle ASC") ?>
  4. here an example
  5. change code to <?php $username = $_POST['user']; $password = $_POST['password']; $self = $_SERVER['PHP_SELF']; if ($username == "" or $password == "") { echo "Blank username and password!"; }else { if (($username == "user2007") and ($password == "hey2007")) {//Stored login details that i need to match echo "Login Succesfull!"; } } ?> Note the extra bracks (($username == "user2007") and ($password == "hey2007"))
  6. Yep, i am wearing my bullseye t-shirt today.. :-\
  7. Oh that reminds me, what about break the code into parts, and have the code continue from the last part, ie have $start = $_Get['Start']; and after every 500 loops it uses header("location: myself?Start=X"); X being the last loop counter if that makes sence!
  8. well i though cookies but still same old same old
  9. would like to point out $username = $_POST['username']; $password = $_POST['password']; need some sort of filter to stop sql injection also Hash works well but with rainbow tables its better to use Hash with Salt ie $salt = "Blar" md5(md5("password").$salt) $salt can be stored with in the database with the password (if you use a random salt)
  10. if its the exact reverse then change DESC to ASC
  11. yep that happends if you use require instead of require_once
  12. <?php header("Location: /./index.php"); ?> if this fails use the path from the root
  13. Not as far as i'm aware.. you could try some javascript, of course that will only show from the clients end
  14. the found set
  15. ahh Beat me too it (but explaind better!)
  16. can't you sort registered date by desc with a limit of 10!!
  17. erm.. no maybe you have edit the php.ini file.
  18. Erm.. yes and kinda more detail will help
  19. use phpMyAdmin to export to Excel Or create a CSV file then open with Excel! CSV = comma delimted file
  20. pulling the questions to your own gain at the expense of the member who started the thread!
  21. true you win
  22. was the first thing i tried it failed!! which is weird on a wim i tryed \\\ and it worked!! EDIT Update got the / around the wrong way on the string corrected <?php $string = 'Hello [quote] how are you [/quote] sorry'; $pattern[] = '/\[quote\].*\[\/quote\]/'; $replacement[] = 'oops'; echo preg_replace($pattern, $replacement, $string); die; ?> D'Oh! Well you learn from your mistakes and well i make loads
  23. please don't hi jack other members posts. the patten is a RegEx Patten in simple terms \\\ means \
  24. It will be server side handling with ajax, its the same just a smoother update to the page
×
×
  • 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.