Jump to content
php.lv forumi

Daži jautājumi


gta1151
 Share

Recommended Posts

  • Replies 40
  • Created
  • Last Reply

Top Posters In This Topic

<?php
$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 comment
Share on other sites

<?php
$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 comment
Share on other sites

  • 2 weeks later...

Join the conversation

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

Guest
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.

Loading...
 Share


×
×
  • Create New...