RE: Turning result into array from columns

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux