I should have been more clear 'this is not an eto question'... meant this is a site not built with etomite. I tried but for the life of me couldn't think of how to integrate the two. delete this post if this is against some rules, but like I said you guys are very helpful....
some background: this is a home builder site. 1 database ( i was in a hurry and typed 2 but meant two tables. sorry ) 1 table for home collections 1 table for available homes. a column in the available homes table is for collections that the home belongs to. when i'm on the collection page, if there is a row in the available home table with the same collection name as that page (filtered by url as in /collections.php?2=neighborhood&3=collection, etc..) show a link to the available homes page, pass the url so we only see available homes for that collection.
in english, the 'if' statement is: if the collection column in the Collection table has the same data as the collection column in the Available Home table, show a link.
(in actuallity the select statement for the Available home table is SELECT * FROM AvailableHomes WHERE collection = '%s' (from url) so we wont select anything unless there actually is a row with that collection name in it..)
in php, the if statment is something like:
if ( $row_collection['collection'] == $row_AvailableHomes['collection'] ) { link } else { do nothing }
but that doesnt work so i tried to create the dynamic variable '$a' and use that in the if statement...see original post. i dont get any sql errors but i dont get the link either.
I can get everything functioning by adding a column in the collection table that is have_available_homes and just check that in the if statement, but i'd rather remove that step in the maintenance process. Is there any gaps/errors in my logic or something technically wrong in the code posted above?
again, thanks, and sorry for the long post.
D