Ok, I have spent at least 16 hours trying to figure this problem out.
I am using the "Tab Content Script" found :
http://www.dynamicdrive.com/dynamici...tabcontent.htm
I am so upset that it is not working.
I even went as far and testing each UL tab content name with different orders and variables.
Here is my problem:
I created a database with loads of content. I now want to display the content using the tab content script. I am using a while loop to create the multiple tabs. I am also using pagination. The first page of 5 results works GREAT!, so does the 2, 3rd and 4th, however, when i get to the last page, page 5, things go wrong.
The first 2 listings work as they should, but for some reason, the last 3 listings do not allow me to click the tabs... This is weird as I am using a while loop!!!
Update:
As I was writing this, I decided to check on stripping the code piece by piece. I found that in my last tab, I had this code:
When I removed it, and tried the tab, everything worked!! Can anyone explain why the array is causing the tabs to malfunction? Any suggestions and solutions to the problem with my arrays? Is there a flaw in my array or the design of the tab content? HELP!PHP Code:echo "Status: <b>";
$s_array = array('Completed','In Progress','On Hold');
if(array_key_exists($onehome['Status'], $s_array)) {
echo $s_array[$onehome['Status']];
echo "</b><br />\n";
}
echo "Portfolio Type: <b>";
$s_array = array('Static Website','Dynamic Website','E-Commerce Website','Forum and Portal Only Website');
if(array_key_exists($onehome['PortfolioType'], $s_array)) {
echo $s_array[$onehome['PortfolioType']];
echo "</b><br />\n";
}
If anyone can help, I would fall in love with them....



Reply With Quote
Bookmarks