Jump to content

ZulfadlyAshBurn

Members
  • Posts

    783
  • Joined

  • Last visited

Everything posted by ZulfadlyAshBurn

  1. should use $isaresult = mysql_fetch_array($istherearesult); if (!empty($isresult)) { $class="done"; } else { $class="notyet"; }
  2. use this <?php //Database Information $dbhost = "sssst"; $dbname = "sssst"; $dbuser = "ssss"; $dbpass = "ssss"; //Connect to database mysql_connect ( $dbhost, $dbuser, $dbpass)or die("Could not connect: ".mysql_error()); mysql_select_db($dbname) or die(mysql_error()); session_start(); $username = $_POST['username']; $password = md5($_POST['password']); $query = "select * from users where username='$username' and password='$password'"; $result = mysql_query($query); if (mysql_num_rows($result) != 1) { $error = "Bad Login"; include "login.html"; } else { $_SESSION['username'] = "$username"; include "memberspage.php"; } ?>
  3. The website is currently offline due to some security exploits. Will be back soon! I will be re-coding the site. Sorry :/
  4. Updates: » Ability to show source code
  5. weird, do you remember where you installed apache?
  6. So as I've said on another post that I was thinking of creating a site sort of pastebin. http://www.phpfreaks.com/forums/index.php?topic=345748.0 I have created some of the functionality of the site. Design wise its not yet done. Functionality: » Place to write PHP » Password protected codes » Codes uploaded to server and can be run like normal PHP site. Coming Soon: » Ability to show source code » Ability to re-edit the code [/size]» Web design for OnePHP.tk Help me critiques on the functionality of the site. Thanks. LINK ※ OnePHP.tk Login Details: Username: phpfreaks Password: phpfreaks
  7. The folder should be at your programs file under this folder C:\Program Files\Apache Software Foundation\Apache2.2\htdocs change the drive letter if needed.
  8. set display_errors in your php.ini display_errors = Off
  9. you can choose to include this in every php pages <?php // Turn off all error reporting error_reporting(0); ?> or you can edit it in your php.ini
  10. what you mean notices? error reporting you mean?
  11. Something like it.
  12. woah, please post your codes in the [ code ] tags
  13. i am making a free hosting site for public. its still under development. will tell you when its done.
  14. ouh. ok then. sorry titan21
  15. most probably, but if im not wrong, the system would inform the user if there was a post being posted.
  16. NO PROB. TROLLOLOLOL
  17. isn't my code simpler? you should read what is posted before posting...
  18. 1) what you mean cell them in every iframe or just once in the Index.php? 2) use google chrome and see if the codes are still there. I think you installed a plugin on your browser. 3) what are the code you are using? post the codes.
  19. oh, haha forgot about that. no prob (:
  20. this is how you use the code. sviewed means how many times the session is being used. <?php session_start(); if(isset($_SESSION['sviewed']) && $_SESSION['sviewed'] < 11) { $_SESSION['sviewed']++; } else { $_SESSION['sviewed'] = 0; // place the code where the session regenerates. } ?>
  21. Create another session which consist of the number time it is being called. <?php session_start(); $_SESSION['sviewed']++; ?>
  22. Please mark topic as solved. Thanks (:
  23. Sorry, what was your question again?
×
×
  • 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.