drunknbass Posted May 9, 2006 Share Posted May 9, 2006 k im developing an oscommerce site, and most people on thier dont really get into hacking up the code and are mostly new to php and follow the cookie cutter sites, so im posting here :Pi am ging nuts on this last page i cant get to work right.basically .....theres a } in the wrong place, i moved it on accident a long time back in the coding phase and im lost nw.bsically if there are no attributes the page stops displaying data after the name and desc.like this[a href=\"http://www.enveamerica.com/product_info.php?cPath=135&products_id=77\" target=\"_blank\"]http://www.enveamerica.com/product_info.ph...&products_id=77[/a]with attributes[a href=\"http://www.enveamerica.com/product_info.php?cPath=135&products_id=79\" target=\"_blank\"]http://www.enveamerica.com/product_info.ph...&products_id=79[/a]and if thier are attributes itll display everything..so i think cause the } being n the wrong place some important stuff like add to cart , price, etc are getting stuck in the IF statement that checks if there are variables for attributes.normally it wouldnt be that hard but every logical place i put the } either destroys the page structure or doesnt have the right effect. i HAD it working but by accident i went to a product that was unavalable and it destroyed the structure. thats how i stumbled accross the mixup.so this page needs to display correct also (random invalid product id)[a href=\"http://www.enveamerica.com/product_info.php?cPath=135&products_id=7656464\" target=\"_blank\"]http://www.enveamerica.com/product_info.ph...ucts_id=7656464[/a]PLEASE PLEASE PLEASEEEEESOMEONE WITH GOOD EYES HELP ME, ILL HOOK YOU UP WITH A PRODUCT!for some reason it wont let me quote the code so heres a txt file with it[a href=\"http://www.enveamerica.com/code.txt\" target=\"_blank\"]http://www.enveamerica.com/code.txt[/a] Quote Link to comment https://forums.phpfreaks.com/topic/9371-if-statement-driving-me-nuts/ Share on other sites More sharing options...
eddedwards Posted May 9, 2006 Share Posted May 9, 2006 i can see whats happening on the site but we need to be able to see the code setion that your taling about. i can only view the html source not the php. Quote Link to comment https://forums.phpfreaks.com/topic/9371-if-statement-driving-me-nuts/#findComment-34545 Share on other sites More sharing options...
drunknbass Posted May 9, 2006 Author Share Posted May 9, 2006 [!--quoteo(post=372537:date=May 9 2006, 02:12 AM:name=Steady_Eddie)--][div class=\'quotetop\']QUOTE(Steady_Eddie @ May 9 2006, 02:12 AM) [snapback]372537[/snapback][/div][div class=\'quotemain\'][!--quotec--]i can see whats happening on the site but we need to be able to see the code setion that your taling about. i can only view the html source not the php.[/quote]i uploaded it as a txt. for some reson i cant post it in this thread it keeps going to an error index page on this site. i think im going crosseyed ive been starring at my screen looking for }'s for hours. look in my first post for the txt file. Quote Link to comment https://forums.phpfreaks.com/topic/9371-if-statement-driving-me-nuts/#findComment-34552 Share on other sites More sharing options...
Advancewebsoft Posted July 1, 2006 Share Posted July 1, 2006 Please post a code in here, because your link does not work :(To skip those errors in future with {}{}, use software such as ZEND which allows to open/close a piece of code starting with { and ending with }. Quote Link to comment https://forums.phpfreaks.com/topic/9371-if-statement-driving-me-nuts/#findComment-51800 Share on other sites More sharing options...
Drumminxx Posted July 2, 2006 Share Posted July 2, 2006 http://www.enveamerica.com/code.txtdoesn't exists Quote Link to comment https://forums.phpfreaks.com/topic/9371-if-statement-driving-me-nuts/#findComment-51825 Share on other sites More sharing options...
redarrow Posted July 2, 2006 Share Posted July 2, 2006 wheres the code i got excited lol...................How can someone help another when theres no posted code and a dead link lol ............... Quote Link to comment https://forums.phpfreaks.com/topic/9371-if-statement-driving-me-nuts/#findComment-51827 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.