Re: [PHP-DB] Duplicate table results

2011-07-06 Thread Karl DeSaulniers
Hi Barry, $dbarray = array(); while($row = mysql_fetch_array($result)) { array_push($dbarray, $row['fileName']); } That was the difference. The while($row = Best, Karl On Jul 6, 2011, at 12:41 PM, Barry Stear wrote: Hmmm i didn't even see a different in the code

Re: [PHP-DB] Duplicate table results

2011-07-06 Thread Karl DeSaulniers
I love the teddy bear effect... Corrected Code::: (or at least it works now :) (database.php) /** * getFiles - Returns all uploaded images for a print order. F * If query fails, NULL is returned. */ function getFiles($username, $fileID){ //to just get the current upload files

[PHP-DB] Duplicate table results

2011-07-05 Thread Karl DeSaulniers
Hello All, I am wondering if you can help untie the knot in my head. I have a table that stores the reference to an uploaded file on an order form. Each upload has an upload ID as well as an Order ID So say I upload 4 files on this form for an order. All the files are getting uploaded correctly