illegal string index

From: Date: Sun, 28 Jan 2001 12:35:28 +0000
Subject: illegal string index
Groups: php.general 
Request: Send a blank email to php-general+get-41995@lists.php.net to get a copy of this message
Hi, I made a site that uses the following code: $id = base64_decode($go); // decoding ID $DataBaseNaam = "teller"; // name of DB include('connect.inc.php3'); // connection to DB $query = "select * from kl".$id;//query $result = mysql_db_query($DataBaseNaam, $query); // getting ResultSet $t=0; while ($waarden = mysql_fetch_array($result)) // extracting ata from RS { $ip[$t] = $waarden[ip]; // IP value (varchar) <-- This line generates the problem..? $datum[$t] = $waarden[datum]; // date value (integer) $urlprov[$t] = $waarden[urlprov]; // URL value (varchar) $t++; } On a locale machine (using PHP4) I didn't have any problems, but on internet (using PHP 3.0.16) I got the warning "illegal string index on line ..." I only get this warning if I want to extract IP numbers from my DB. Does anyone knows why I get this warning ? Thanks, Eelco

« previous php.general (#41995) next »