Jump to content

rameshfaj

Members
  • Posts

    287
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

rameshfaj's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. you are simply asking someone to do your assignment?that's not fair. we all are here to help on some clues or ideas rather than programming other's stuffs. Can you please explain what you have done and what you want?
  2. Editors supporting php can ease to eliminate this issue. They highlight the end/start of the tag near which the mouse is placed/clicked. For instance notepad++. Why don't give a try?
  3. why not to try all the core things with a simple mysql query on mysql console: mysql>select *from users_table where username='abcd'; if this returns non-zero entries then there is the entry for the user. mysql>select *from users_table where username="abcd" and password=md5('passwd'); if this returns non-zero rows then the provided username and pwd is eligible for login. Please let me know if need further help.
  4. what about stored procedures? Aren't they easy to manage for atomicity?
  5. First of all you need to be clear about rand() method for which you can have a look at: http://www.php.net/manual/en/function.rand.php. You can use rand(min,max) where min= minimum value of the range and max= maximum value of the range where the random value should lie. Ex: rand(1,10) should return the value between 1-10, but it is not always sure that for every consecutive attempt you get the unique values.
  6. Yes I think file_get_contents() or fopen() should help you in solving your problem, if not then please let us know.
  7. in start_date and end_date you have date and time, so you can access the time and do any manipulations you desire. I suggest you to use "start_time" and "end_time" as the field names instead.
  8. Ya though it is less complete and clean in comparison to yours, I hope it might be helpful in other related problems too.
  9. It is difficult to point you to some other's application. Unless you explain your problem clearly we cant dig the problem clearly.
  10. I think there is time() method in php. This gives the total time in seconds.You can manipulate accordingly. $curr_time=date("H:i:s"); http://www.php.net/time
  11. First of all define the login form within html tables, allocationg one row for the error message that you want to display. On the data processing/comparing page, set some variable and redirect to the login page using header() method. On the login page compare the value of the variable you set in the data processing page.If its value is set then display the error message(can simply use the echo) else not. Ex: login.php <html> ... ... ..//define table here whose one row has $error_invalidUser=" "; //call function showErrorMsg() echo($error_invalidUser); .. .. function showErrorMsg(){ if($_GET('errorset')!="") $error_invalidUser="Invalid UserName or Password"; } </html> /////////data processing page .. .. .. if(rowcount<1){ $errorset="true" } else $errorset=""; I think this logic may help you.
  12. You can also use client side validations using javascript for such small stuffs rather than returning back the way through the server.
  13. I think the best solution is to use threads and run a user process for each methods you want. What about this link: http://www.alternateinterior.com/2007/05/communicating-with-threads-in-php.html
  14. You are initialzing some variable inside one method and want to have the variable's value in another method ,in that case you need to call the method(where the variable is to be used) from the point where the variable is initialized. OR make sure that the variable's value is stored some where such that the other method finds it.This can be achieved using global variables and calling the methods in proper order.
  15. Before some one goes to have a live test in the given URL it is better to explain what problem are u having i.e. what are the few areas in which it is not working.
×
×
  • 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.