What is the php code for entering a "session_start" timestamp into a database table?

  • Thread starter Thread starter Colin C
  • Start date Start date
C

Colin C

Guest
I want to insert the data (timestamp) into a "session-start" column in a table called "student" in a database called "frog". I don't know how to write the code. Can anybody tell me? I have been told to write
9 <?
10 session_start()
11 require "sajax.php"
12 ?>
but this just brings up the following scary warning - "session_start() [function.session-start]:Cannot send session cookie - headers already sent by output started at ...........line 10" Grateful of some help? YOU BET!!
 
Back
Top