Jump to content

Panta

Members
  • Content Count

    115
  • Joined

  • Last visited

Everything posted by Panta

  1. please can anyone help me when trying to access some page on my new uploaded site it will display this erro message "Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /~/www/archansu.cz.cc/admin_page.php:2) in /~/www/archansu.cz.cc/admin_page.php on line 5Access denied for user '466844_panta1'@'%' to database 'user'"
  2. IT DOESN'T HAV E ANY THING TO DO WITH UR CSS WHAT U HAVE TO DO IS THAT U INSERT THE ERROR REPORT THEN WRITE UR ERROR MESSAGE AFTER ANY EXECUTION SO THAT IF A PARTICULAR LINE DIDN'T EXECUTE THEN IT WILL SHOW THE ERROR U ASSIGNED TO THAT LINE, BY DOING SO U WILL BE ABLE TO KNOW WHERE THE ERROR IS COMING FROM....IF U STILL EXPERIENCE THE SAME PROBLEM THEN STILL LET US KNOW
  3. you can have html in it.Just make sure that the file you are requiring that the html is well writing in the php script
  4. Panta

    Upload Pic

    please i'm working on a project that requires a student to register as well as print out his form with passport.The problem i'm having is that those pic with correct format are not accepted, it kept on tellin me that i can only upload gif....., which is meant for a picture that is not of the format required. this is my script <body><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td align="center"><h1><font color="#0000FF" face="Arial">ADD STUDENT PROFILE</font></h1></td> </tr></table><br><br&
  5. Can you tell me how to cheack for the login
  6. Panta

    Login Script

    please i have this login script but the problem is that i have names and password that i stored the password with md5, but it can not see them. the page is displayin "The Admin_name was not found." <?php error_reporting(E_ALL); ini_set('display_errors', 1); include 'config.php'; $submit = isset($_POST['login']) ? $_POST['login'] : ""; $admin = isset($_POST['admin']) ? $_POST['admin'] : ""; $admin = mysql_real_escape_string(strip_tags(htmlspecialchars($admin) ) ); $password = isset($_POST['password']) ? md5($_POST['password']) : ""; $error_string = ''; # error_stri
  7. Panta

    Pin Number Login

    Thanks but assuming i have generated a numbers through "ran()" and want to use it as a scratch card,that is users are expected to login with it,begin that i have to print it out before given it to the users, do i need to hash since i cant print the hash numbers correctely
  8. Panta

    Pin Number Login

    YES I WANT TO KNOW WHERE TO PUT MD5-encoded and the reason
  9. Panta

    Pin Number Login

    $serial = mysql_real_escape_string(strip_tags(htmlspecialchars($serial) ) );$pin = isset($_POST['pin']) ? md5($_POST['pin']) : "";I think the pin are not in md5 thats why, so this is what i did and it worked $serial = isset($_POST['serial']) ? $_POST['serial'] : ""; $pin = isset($_POST['pin']) ? $_POST['pin'] : "";But i don't understand why it worked.please can u explain it for me
  10. Panta

    Pin Number Login

    $result = mysql_query("SELECT logins FROM users WHERE serial='$serial' And pin='$pin'"); if (!$result) { echo mysql_error(); exit; } $row = mysql_fetch_array($result); if (!$row) { echo "No such pin or serial no" exit; hope this takes care of what u meant
  11. Panta

    Pin Number Login

    i want the it to verify the serial and pin and if exist it should update the logins
  12. Panta

    Pin Number Login

    i'm designing a site that requires pin number to login.i have my script but is not given me what i want PINLOGIN STARTS<?php//start the session so you would stay logged in//always must be on topsession_start();//include config.php fileinclude('config.php');?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>The site</title></head><body><center><a href="?p=idx">Home</a> - <a href="?p=page">Protected page</a><?php$p=$_GET['p'];//see my ?id= browsing tutorial?><form action='test
  13. Panta

    Generate Code

    So can you tell me how to convert it to number
  14. Panta

    Generate Code

    @RahXephonis diplaying lets 2 Pin number(s) have been generated but is not inserting into database
  15. Panta

    Generate Code

    Web masters please can you look into my script.i want a script that will generate code at random and insert it to my database.but my script is not working <? include 'config.php'; $submit=$_POST['Submit']; if($submit){$no = 1;while ($no <= $_POST['no'] ) { $pin = rand(1000000000,9999999999); mysql_query("INSERT INTO logincount (`pin`) VALUES ('$pin')") or die(mysql_error()); $no++; } echo "<font color='green'>". $_POST['no']. " Pin number(s) have been generated</font>";} ?><form name="form1" id="form1" method="post" action="<?ph
  16. Panta

    Login Count

    @Deirdre's Dadi think this is the solution. is now working, Thanks a milllion times
  17. ur visitor .php should be the script that will process the form.that means will handle the form and will do with it what so ever u wish to do with the for.okso u need to learn sever scripting first
  18. Panta

    Login Count

    please can you show me how
  19. Panta

    Login Count

    no. what i need is a script that counts the successful login and with a particular password, and when the password is used for 3 successful login, the user needs to get a new password for him to access the site again.and the new password will only be use for 3 times. thanks watin
  20. Panta

    Login Count

    please can some one help me . I'm new to php environment . I need an ideal on how to write a script that counts the login success of a user.And when the user login successfully 3 times he or she will be ban from login in unless he or she obtained a new password.thanks. im watin
  21. Panta

    Login Count

    thanks alot but please check my corrections hope this is what you meant
×
×
  • Create New...