[prev in list] [next in list] [prev in thread] [next in thread] 

List:       phplib
Subject:    [PHPLIB] Using check option of the table class - PROBLEMS
From:       "Rex Byrns" <rexb () testengeer ! com>
Date:       2000-01-27 19:22:45
[Download RAW message or body]

I have discovered that this code works sometimes.  There seems to be some
kind of a timing issue.  Sometimes the script will fail completely,
sometimes only the first file is copied.

This is driving me crazy - any ideas? Do I need to post more code?

-----Original Message-----
From: phplib-owner@lists.netuse.de
[mailto:phplib-owner@lists.netuse.de]On Behalf Of Rex Byrns
Sent: Wednesday, January 26, 2000 3:00 PM
To: Phplib@Lists. Netuse. De (E-mail)
Subject: [PHPLIB] Using check option of the table class


OK I guess I have got brain lockup.  I had a routine working that produced
the following code  by using "$t->check = "NUM";" -

<td class='test' border='1'><input type="checkbox" name="NUM[0]"
value="21298"></td

(The value is my index field and is correct)

I then iterated with the following:

if (isset($NUM))

   #echo "Num is Set";
   $db5 = new DB_Test;
   $x = count($NUM);
   echo "<BR>->".$NUM[0];
   $i = 0;
   while ($i <= ($x-1)) {
         $query="select * from DRAWINGS where NUM = '".$NUM[$i]."'";
         $db5->query($query);
         $db5->next_record();
         echo $query."    <BR>";

etc . . . files are copied here......

echoing $x gives me the proper count, but if I echo $NUM[0] I get nothing.
So the query fails.

Anyone have any ideas?

Thanks in advance.

Rex Byrns
Office: 361-552-1280 ext 281
pager: 361-501-6128
email: rexb@testengeer.com

-
PHP3 Base Library Mailing List. Send messages to <phplib@lists.netuse.de>.
To unsubscribe, send "unsubscribe" to <phplib-request@lists.netuse.de> in
the body, not the subject, of your message.


-
PHP3 Base Library Mailing List. Send messages to <phplib@lists.netuse.de>.
To unsubscribe, send "unsubscribe" to <phplib-request@lists.netuse.de> in
the body, not the subject, of your message.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic