Jump to content
php.lv forumi

Daži jautājumi

Recommended Posts

  • Replies 40
  • Created
  • Last Reply

Top Posters In This Topic

$userid = $_GET['id'];
$users = mysql_query("SELECT * FROM users WHERE id = '$userid'");
setcookie("$users", $value);
setcookie("$users", $value, time()+3600); 
setcookie("$users", $value, time()+3600, "?", "Mana_lapa.lv", 1);



Kā izvadīt tur lasīju mēģināju tāpat nepieleca.

Link to post
Share on other sites
$expire = time()+60*60*24*365*5; // izgdzīvotājs cepums - 5 gadi, cerams nesapelēs xD
setcookie('cepums','cepuma vērtība',$expire,'/',$_SERVER['http_host']);

Link to post
Share on other sites
  • 2 weeks later...

1)Biju domājis savādāk,sāku veidot pievienot jaunumu scriptu bet nezinu ka dabūt automātiski izvada niku.

2)auto_increment nevajag speciālu scriptu kas izvada sava id.

Edited by gta1151
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...