Jump to content

Rayhan Muktader

Members
  • Posts

    20
  • Joined

  • Last visited

    Never

Everything posted by Rayhan Muktader

  1. Hey, Fix your spelling: echo $row['firstame'] 'firstname'
  2. No 54 tables cannot be called "a lot". If you are worried about load time then you should query and join using primary keys.
  3. mjdamato is suggesting that you don't push any one down. That would be a lot of extra work. Instead, save the id, name and button_pushed_time_stamp (you should rename this one) in the database. example: 1 Tom 2011-01-10 2 Dick 2011-01-09 3 Harry 2011-01-08 If Harry pushes the button again on the 11th then the table will hold: 1 Tom 2011-01-10 2 Dick 2011-01-09 3 Harry 2011-01-11 Then you can you can always order the data by who pushed the button last: SELECT * FORM `table` ORDER BY `button_pushed_time_stamp` DESC This will return: 3 Harry 2011-01-11 1 Tom 2011-01-10 2 Dick 2011-01-09 Hope this helps. Rayhan Muktader
  4. Hey, if (is_numeric($lines[$i][$j]) should return false because $lines[$i][$j] should contain an array. I Hope that helps. And yes, group is a reserved mysql keyword. You might want to rename that field to make your life easier. Rayhan Muktader
  5. When you "use a hash" do mean to say that I should use a form key? I do not understand the part about reloading the page. How would that work? Could you kindly explain?
  6. Doing the following should make the cookie available to all directories under / and force the cookie to expire after two hours. setcookie("loggedin",$value, time()+3600*2,"/");
  7. The session name is reset to the default value stored in session.name at request startup time. Thus, you need to call session_name() for every request (and before session_start() or session_register() are called).
×
×
  • 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.