Jump to content

Help with this logic....


jwwceo

Recommended Posts

I am having a hard time wrapping my head around the logic fort this problem. It's probably super easy but I'm new at this so I'm not sure if I'm going in the right direction...

I need to find the row and column number for every image in a product gallery.

what's the best way to do this..

I know I can start with a while loop for every item in the database...and...

$row = 0;
$column = 0;

and increment based on some if statements..but the exact syntax is evading me..

any help would be great!
Link to comment
https://forums.phpfreaks.com/topic/19218-help-with-this-logic/
Share on other sites

Check out this page...[url=http://www.liquidcotton.com]www.liquidcotton.com [/url]

there is a roll over menu on each item...the javascript I used uses absolute positioning from the top left, so I need to figure out the top and left values for each keyword icon and tell the menus to start there...

I know where the first menu goes, as well as how far between them...so I should be able to figure out the top and left values for every shirt on a page...



Link to comment
https://forums.phpfreaks.com/topic/19218-help-with-this-logic/#findComment-83203
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.