•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 397,880 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,674 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1227 | Replies: 1
•
•
Join Date: Jun 2005
Posts: 85
Reputation:
Rep Power: 4
Solved Threads: 0
I try to set cookie values from mysql DB, I have the code:
Now the strange thing is, if the number of ID is less than 16, script runs without any issue, I can set cookie and retrieve those cookie values, however if the number of ID from DB is more than 16, script cannot set cookies, I don't know what causes this problem, anyone can give me a clue? thanks in advance.
$result = mysql_query("select ID from table");
while ($thisrow=mysql_fetch_row($result))
{
$gname="name_".$i;
setcookie ("$gname", $thisrow[0]);
$i++;
}Now the strange thing is, if the number of ID is less than 16, script runs without any issue, I can set cookie and retrieve those cookie values, however if the number of ID from DB is more than 16, script cannot set cookies, I don't know what causes this problem, anyone can give me a clue? thanks in advance.
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- Am I looking for PHP? (PHP)
- php rewrite question (PHP)
- any one fermilliar with php-nuke? I have a question. (Existing Scripts)
Other Threads in the PHP Forum
- Previous Thread: PHP and MySql
- Next Thread: Parse Email Headers



Threaded Mode