Not a problem, good to see.
On 10/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> NEVERMIND.
>
> Solved it.
>
> Thanks!!!
>
> A
>
> > Hi all,
> >
> > Just wondering how one would do multiple rows?
> >
> > Instead of me me copying and pasting the same row of code 15 times
> > (multiple data e
NEVERMIND.
Solved it.
Thanks!!!
A
> Hi all,
>
> Just wondering how one would do multiple rows?
>
> Instead of me me copying and pasting the same row of code 15 times
> (multiple data entry form), I just loop until it counts 15?
>
> Loops are not a strong point for me at all :(
>
> Thanks in adv
Hi all,
Just wondering how one would do multiple rows?
Instead of me me copying and pasting the same row of code 15 times
(multiple data entry form), I just loop until it counts 15?
Loops are not a strong point for me at all :(
Thanks in advance!!!
Aaron
--
PHP General Mailing List (http://w
$result = mysql_query($query) or die(mysql_error());
On 10/11/05, Silvio Porcellana <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > >
> > include ("../utils.inc");
> >
> > $date = date("U");
> > $dateExpire = $date + 90 * 86400;
> >
> > $code = "jack";
> >
> >
[EMAIL PROTECTED] wrote:
This SHOULD error out but I'm getting the error instead.
It's just a test page to test my logic...
A
Check to see if there is an error first
if ( ! $result = mysql_query ( $query ) ) {
echo ( mysql_error() );
}
--
John C. Nichel
ÜberGeek
KegWorks.com
7
r 11, 2005 1:34 PM
>> To: Dan McCullough
>> Cc: php-general@lists.php.net
>> Subject: Re: [PHP] Help with logic :(
>>
>> >
>> include ("../utils.inc");
>>
>> $date = date("U");
>> $dateExpire = $date + 90 * 86400
[EMAIL PROTECTED] wrote:
>
> include ("../utils.inc");
>
> $date = date("U");
> $dateExpire = $date + 90 * 86400;
>
> $code = "jack";
>
> $query = "INSERT INTO CouponTable VALUES
> ('','$date','0','$code','preset','$dateExpire','3.75')";
>
> $result = mysql
Did you remember to open the database connection?
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 11, 2005 1:34 PM
> To: Dan McCullough
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Help with logic :(
>
This SHOULD error out but I'm getting the error instead.
It's just a test page to test my logic...
A
> got some code so we can see?
>
> On 10/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Thanks everyone. Makes sense. Now I got another issue.
>>
>> When I try to see if an error exists
got some code so we can see?
On 10/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Thanks everyone. Makes sense. Now I got another issue.
>
> When I try to see if an error exists I get this:
>
> Warning: mysql_error(): supplied argument is not a valid MySQL-Link
> resource in /home//
Thanks everyone. Makes sense. Now I got another issue.
When I try to see if an error exists I get this:
Warning: mysql_error(): supplied argument is not a valid MySQL-Link
resource in /home//public_html/Store/test.php on line 14
Is there a setting somewhere that I need to set to make sur
Dan McCullough wrote:
Yes I believe that is what Richard was saying about "Trap the INSERT
error", you should get an error back from the database about having a
problem with the insert instead of showing that error you will want to
add some logic that when that error occurs you simply generate an
Yes I believe that is what Richard was saying about "Trap the INSERT
error", you should get an error back from the database about having a
problem with the insert instead of showing that error you will want to
add some logic that when that error occurs you simply generate another
number.
On 10/11/
Hi Richard,
Ok... I do already have a Unique index on the column but this process is
something that I cannot echo out the error code to the user. The code is
generated on the fly when an order an is placed so you can see... I can't
echo out the error to the customer.
Can I do an if statement IF a
Richard Lynch wrote:
On Mon, October 10, 2005 3:24 pm, Dan McCullough wrote:
create a function to check if the rndnumber=couponcode row count = 0
if not then redo rndnumber if it does = 0 then insert rndnumber
N!
You are creating a RACE CONDITION in which ONE use
On Mon, October 10, 2005 3:24 pm, Dan McCullough wrote:
> create a function to check if the rndnumber=couponcode row count = 0
> if not then redo rndnumber if it does = 0 then insert rndnumber
N!
You are creating a RACE CONDITION in which ONE user might generate a
'val
create a function to check if the rndnumber=couponcode row count = 0
if not then redo rndnumber if it does = 0 then insert rndnumber
On 10/10/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> Having trouble coming up with a solution to this idea I am trying to
> implement.
>
> I hav
17 matches
Mail list logo