Jump to content

Next Button Stopped Working HELP ASAP PLEASE :D


jigsawsoul

Recommended Posts

I trying to make it so i can in put the data from a database into a theme i got from theme forest but im having few problems.

 

the theme and page http://warp.nazwa.pl/dc/innovation/portfolio.html

 

The NEXT button on the portfolio see how it slides across and works nicely here

 

but on my page http://www.jigsawsoulmedia.com/root/Files/jigsawsoulmedia.com/_public/template.php

 

its stopped working since I've place my php code in there and i can't see why not, everything look right to be from the html and php.

 

Could one you lovely people see what you can spot wrong.

 

page code with php below

			<!-- PAGE CONTENT HERE, PORTFOLIO LIST AND RIGHT SIDE BAR --> 
            <div id="portoflioHeaderContainer">

                <!-- PAGE TITLE AND NAVIGATION TREE -->
                <h1 class="commonPageTitle">Portfolio</h1>
                <div id="navigationTreeContainer">
                    <a href="index.html" class="prev">Home</a>  \   
                    <a class="current">Portfolio</a>
                </div>  <!-- navigationTreeContainer -->
                    
                <!-- SHORT TEXT THAT DESCRIBE PAGE CONTENT  --> 
                <p class="commonIntroductionText">
                    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, 
                    totam rem aperiam, eaque ipsa quae. Nemo enim ipsam voluptatem quia <span class="spanBold">voluptas 
                    sit aspernatur</span> aut odit aut fugit, sed quia 
                    consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, 
                    qui dolorem ipsum quia dolor sit amet consectetur, adipisci velit.
                </p>
                
                <!-- PORTFOLIO STATISTICS, CURRENT/ALL PAGE AND CURRENT/ALL PROJECT NUMBER  -->   
                <div class="portfolioStatisticsContainer">
                    <div class="pageStatsWrapper">
                        <span id="pageNumber"></span><span id="pageCount"></span> 
                    </div>
                    <div class="imageStatsWrapper">
                        <span id="hoveredImageIndex">Project: 1/</span><span id="numberOfImages">0</span>
                    </div>
                </div>  <!-- portfolioStatisticsContainer -->
                
            </div> <!-- portoflioHeaderContainer -->
                
                
            <div id="portfolioContainer">
            

                <div class="portfolioPage">
                    
                    <?php

				$result = "SELECT * FROM portfolio";				
				$result = mysql_query ($result) or die (mysql_error());

				$i=0;
				        
                    while($row = mysql_fetch_assoc($result)) 
				{

				if($i==2)
   						$divclass = 'portfolioProjectWrapper borderWhite';
				else
   						$divclass = 'portfolioProjectWrapper borderGray';


				echo '
                    <div class="'.$divclass.'">
                        <a href="portfolioPage.html" class="image asyncImgLoad" title="img/'.$row['image290x290'].'"></a>
                        <p class="imageDesc">'.$row['image290x290_phot'].'</p>
                        <h3 class="title">'.$row['title'].'</h3>
                        <p class="subtitle">'.$row['subtitle'].'</p>
                        <p class="desc">
                       		'.substr($row['description'], 0, 1200).' <a href="portfolioPage.html" class="commonLink">Read more</a>                        
                        </p>
                    </div>
                                       
                    ';
                    
                    if($i==2)
                    	$i=0;
                    else
                    	$i++;
                    
                    }
                    
                    ?>
                    
    			</div><!-- portfolioPage -->
    			                     
            </div> <!-- portfolioContainer -->
            
            <!-- PORTFOLIO CONTROL PANEL -->
            <div id="portfolioControlPanel">
                <div id="portfolioPrevPageBtn">Prev page</div>
                <div id="portfolioNextPageBtn">Next page</div>
            </div> <!-- portfolioControlPanel -->
                   
            <div class="clearBoth"></div>

 

Thanks for taking a look!

Link to comment
Share on other sites

some ideas:

 

1. look for javascript errors that might be caused by your PHP changes. I recommend firefox (at least NOT IE) for javascript debugging.

2. if no javascript errors are found, view source and validate the HTML, looking for open parentheses and/or HTML tags like DIV's

Link to comment
Share on other sites

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.