Is there a certain format you always need the string in? Such as 3 digits
followed by a space followed by 3 digits followed by a space followed by 3
digits? Will there ALWAYS be 9 numbers? If this is the case, your ereg()
to parse the string and then create a new varible using $regs[x]... so,
Well, while this isn't the most efficient way to do it, you could always add
the id or link or whatever to the database x times based on the weight you
want to give it.
Otherwise, you'd have to probably add all weights together, get a total and
rand() that total, then count from there using
Message-
From: Artur Correia [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 11:37 AM
To: Jesse S. Williams
Subject: Re: [PHP-DB] Formatting Strings in MySQL
Hey,
Thanks in advance for your trouble replying this.
I havent tried it out yet - nor will I untill August. I'm still planning
This is a snip of my email from the [PHP] general mailing list:
There's several ways to look at this too. Currently I'm doing some work for
a small/home business owner. She needed some work done with some shopping
cart stuff, a little MySQL DB and some smart forms. Not a lot of