i have made this ecards script...but i need help in how to generate random URL's so that this url can be mailed to the person who will receive the card.and also will be stored as a card to be viewed
i need a help on diplaying query result 10 at a page i mean if i get 200 rows by mysql_query how to display 10 rows at a time please help me....... sanu
SELECT * FROM whatever LIMIT 1,10
use time() for random link.
$your_card_url = time();
URL to send to the recipient:
$URL = "http://www.acme.com/ecards/" . $your_card_url;
When the ecard is created, make sure you record the $your_card_url variable.
Cheers
Kai
Not sufficient, unless you have a very slow server that is guaranteed to never be able to produce more than 1 card per second. Better solutions: use microtime() (perhaps also using getmypid() as part of the string), or uniqid().