RE: Turning result into array from columns

From: Date: Sat, 23 Sep 2006 10:01:23 +0000
Subject: RE: Turning result into array from columns
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-42388@lists.php.net to get a copy of this message
Hello, > $q = sprintf("SELECT id FROM content"); This has nothing to do with your problem, but why don't you just do the following? $q = 'SELECT id FROM content'; But here's your problem. Change > $realones = $row['id']; into $realones[] = $row['id']; And you get your desired result. Matthias

« previous php.db (#42388) next »