Jump to content


Photo

session id


  • Please log in to reply
1 reply to this topic

#1 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 19 April 2006 - 01:32 AM

Advance thank you.

Is it possable to session_srart and then id = session id and then use that session id to update all other fields but with only using a set session id.


example
session_start()

id=($_session["id"]);

$db=mysql_connect("localhost");
mysql_select_db("whatever",$db);
$query="update whatever set name='$name' , email='$email' , number='$number' where id='$id'";
$result=mysql_query($query);

know when a user post there information the session id identifies the user id of field so can i get the other fields like name email ect ect to update with only the session id set.

thank you.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#2 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 19 April 2006 - 03:40 AM

What about
$id = session_id();
~ D Kuang




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users