Jump to content

Recommended Posts

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 :P

i 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 PLEASEEEEE
SOMEONE 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]
Link to comment
https://forums.phpfreaks.com/topic/9371-if-statement-driving-me-nuts/
Share on other sites

[!--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.
  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.