Welcome Guest, Not a member yet? Register   Sign In
replacing mt_rand code with CI code.
#5

[eluser]jim-_-[/eluser]
[quote author="n0xie" date="1294852377"]Why are you randomly generating id's ? Wouldn't a primary key or the use of uniqueid() solve your problem?[/quote]

If I'm understanding function of uniqueid() its for generating IDs for storage in the database ? What I'm doing is getting random entries that are already in the database to be put on a page via thumbnails with info, stuff to get the guest to click on through.


Messages In This Thread
replacing mt_rand code with CI code. - by El Forum - 01-11-2011, 02:41 PM
replacing mt_rand code with CI code. - by El Forum - 01-11-2011, 03:48 PM
replacing mt_rand code with CI code. - by El Forum - 01-11-2011, 04:20 PM
replacing mt_rand code with CI code. - by El Forum - 01-12-2011, 05:12 AM
replacing mt_rand code with CI code. - by El Forum - 01-12-2011, 02:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB