Search found 3 matches

by matscott
Thu Jun 23, 2005 4:38 am
Forum: PHP - Code
Topic: associative arrays
Replies: 3
Views: 863

solved

I have solved it. <? include '../frenchsole/include/fs_local_db.php'; $stock_array = array(); $stock_control = mysql_query ("SELECT * FROM stock_tab WHERE location='mail_order'"); while ($stock_row = mysql_fetch_array($stock_control)) { $stock_id33 = $stock_row['stock_id']; $qu33 = $stock_...
by matscott
Thu Jun 23, 2005 4:02 am
Forum: PHP - Code
Topic: associative arrays
Replies: 3
Views: 863

code error

sorry, typo please consider that it isn't commented out. I am going to repost the code as I failed to notice the posting code notice first time around. <? $stock_array = array(); $stock_control = mysql_query ("SELECT * FROM stock_tab WHERE location='mail_order'"); while ($stock_row = mysql...
by matscott
Thu Jun 23, 2005 3:25 am
Forum: PHP - Code
Topic: associative arrays
Replies: 3
Views: 863

associative arrays

Hi all. I have been bashing my head against a brick wall with this one. What I am attempting to do is read a table from mysql database. From the table I wish to extract the id value and use it as my associative array key and pull the quantity in as the value in the array. Here is the code I am using...