![]() |
|
#1
|
|||
|
|||
|
I need another code
ok this time i need a code that will generate random numbers when the page loads
preferrably 8 numbers that always change, so myspace thinks that is a different topic! This should be easy for someone like you guys! |
| Sponsored Links |
|
#2
|
|||
|
|||
|
You could use the PHP Rand() function to generate the numbers put this before your <html> tag
<?php echo rand(1,8); ?> if you want 1-Digit numbers i dunno how to do an 8-Digit number
__________________
~Ponygrl :purplecat |
|
#3
|
||||
|
||||
|
You could eather use a while statment with an array to make the numbers, but I'm not quite that good, so you can do this instead.
PHP Code:
David
__________________
“Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” -John Wesley |
|
#4
|
||||
|
||||
|
Ops
I left it so the numbers could only be 1-8. They should be 0-9. PHP Code:
__________________
“Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” -John Wesley Last edited by Idiotic Creation; 10-19-2006 at 03:26 PM. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I know the code for this is on lissa's site, I just can't find it... | lynn5127 | HTML Help | 5 | 01-07-2006 05:30 PM |
| Replacing Text code problem | bLondcHerryx9 | Xanga | 4 | 09-12-2004 01:16 AM |
| Code help! Refresh page on entry | nascarup | HTML Help | 2 | 08-27-2004 12:40 AM |
| configuring javascript code | Rinoa Heartilly | JavaScript/DHTML | 0 | 07-19-2004 08:30 PM |
| pop-up code inside iframe inside table.. | salomeyasobko | Frames | 3 | 08-01-2003 08:54 PM |