[PHP-DB] Wrong solution!!!!

2001-07-21 Thread Tony
Hello, I really do appreciate your help. But, I found out that the solution scrip that you gave me was wrong script for my purpose. I guess I didn't describe my problem right. I didn't mean to get the total number of rows to compare. Let's say I have a table name inventory and contains two

RE: [PHP-DB] Wrong solution!!!!

2001-07-21 Thread David Balatero
PROTECTED] Subject: [PHP-DB] Wrong solution Hello, I really do appreciate your help. But, I found out that the solution scrip that you gave me was wrong script for my purpose. I guess I didn't describe my problem right. I didn't mean to get the total number of rows to compare. Let's say I have

Re: [PHP-DB] Wrong solution!!!!

2001-07-21 Thread Julie Meloni
T $itemx = 15109; T $num = mysql_query(SELECT quantity FROM inventory WHERE item = T '$itemx',$link); T if ($num 1) { T echo bfont color=\#FF\Out of Stock $result/font/b; T } else { T echo bfont color=\#FF\In Stock $result/font/b; T } T I want my inventory quantity with