I have the code:
1. $queryCat = "select project_number from prod_cat_xref where
category_1_id=$category";
2. print "$queryCat <BR>\n\n";
3. $setCat = $wgDB->query($queryCat);
4. # %resultCat = $setCat->fetchhash();
5. while (%resultCat = $setCat->fetchhash())
6. {
7. print "Hi Dude $resultCat{project_number} <BR>\n";
8. }
On line 7, if I use parens () instead of curlies {}, I get an error.
However, in an existing script on our catalog, that exact line (minus the
"Hi Dude") with the parens works within a while loop.
What on Earth is the difference?
Brian Bradshaw
Systems Engineer
McGraw-Hill Education
McGraw-Hill Companies
860-409-2603
[EMAIL PROTECTED]