Re: newbie PHP/MySQL question
| From: | toylet | Date: | Tue, 03 Jan 2006 11:48:27 +0000 |
| Subject: | Re: newbie PHP/MySQL question | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40960@lists.php.net to get a copy of this message | ||
yes. Note the "delete from canton" query.
I found something. case.. Somehow, mysql treat "A" the same as "a"....
Maybe from a previous query? I mean, did you make sure the table was clear
> before starting the script?
> > $target->query("delete from canton");
> > for ($ii=0; $ii<256; $ii++) {
> > for ($jj=0; $jj<256; $jj++) {
> > echo $ii .".". $jj . "\n";
> > $query="insert into canton ( big5 ) values ( '"
> > . mysql_real_escape_string(chr($ii).chr($jj))
> > . "' )";
> > $target->query($query);
> > }
> > }
>