[thelist] PHP/MySQL odd problem
Leigh.DSylva at cas.gov.on.ca
Leigh.DSylva at cas.gov.on.ca
Mon Jul 12 08:40:25 CDT 2004
Mr Tenuta's code:
> // Assigning variables from cell values to later output
> $category = $row["category"];
> $link = $row["link"];
Burhan Khalid's reply:
>>Here you are reassigning $link, which makes it invalid for your second
>>query. That's why only one works.
I've been following this thread avidly but do not understand the solution
as supplied by Burhan Khalid. As far as I can see Mr Tenuta's code was
identical in the two SQL statements (apart from the table name) but Burhan
points out that the "$link" variable was being reassigned. Can someone
point out what I'm not seeing, please?
Thanks
Myopically,
Leigh D'Sylva
More information about the thelist
mailing list