Jump to content

aznjayx

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

aznjayx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a problem with this loop and what I was trying to do with it. I'm trying to show other categories or executer in one page. For example 'portfolio_executor_profile' => 'av' this category in the same page will be on the top, and second 'portfolio_executor_profile' => 'web' The plugin is called Portfolio, there is no help on how to change the loop. :'( <?php /* Template Name: Portfolio template */ get_header(); ?> <div id="container"> <div id="content" role="main"> <?php global $wp_query; $paged = ( $wp_query->query_vars['page'] ) ? $wp_query->query_vars['page'] : 1; $args = array( 'post_type' => 'portfolio', 'post_status' => 'publish', 'portfolio_executor_profile' => 'av', 'orderby' => 'menu_order', 'caller_get_posts' => 1, 'posts_per_page' => 4, 'paged' => $paged ); query_posts( $args); while ( have_posts() ) : the_post(); ?> <div class="portfolio_content"> <div class="item_title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></div> <div class="entry"> <?php global $post; $meta_values = get_post_custom($post->ID); $thumb = array(); $images = array(); $upload_dir = wp_upload_dir(); $image_alt = ""; $thumb_url = ""; $featured_image_url = ""; if( array_key_exists( '_thumbnail_id', $meta_values ) ) { $thumb = wp_get_attachment_metadata( $meta_values['_thumbnail_id'][0] ); $thumb_url = $upload_dir["baseurl"] ."/". substr($thumb['file'], 0, . $thumb['sizes']['medium']['file']; $featured_image_url = $upload_dir["baseurl"] ."/". $thumb["file"]; } $post_attachments = get_posts( 'post_type=attachment&post_parent='. $post->ID .'&numberposts=1' ); if( count( $thumb ) == 0 ) { if( count( $post_attachments ) > 0 ) { $metadata = wp_get_attachment_metadata( $post_attachments[0]->ID ); $thumb_url = ( isset( $metadata['sizes']["medium"]['file'] ) ? $upload_dir["baseurl"] ."/". substr($thumb['file'], 0, . $metadata['sizes']["medium"]['file'] : $post_attachments[0]->guid ); $featured_image_url = $upload_dir["baseurl"] ."/". $metadata["file"]; $image_alt = get_post_custom( $post_attachments[0]->ID ); $image_alt = $image_alt["_wp_attachment_image_alt"][0]; } else { $thumb_url = ""; $featured_image_url = ""; $image_alt = ""; } } echo '<p><a class="lightbox" rel="lightbox" href="'. $featured_image_url .'"><img src="'. $thumb_url .'" width="240" alt="'. $image_alt .'" /></a></p>'; echo '<p><span class="lable">Date of completion</span>: '. $meta_values["_prtf_date_compl"][0] .'</p>'; $user_id = get_current_user_id(); if ( $user_id == 0 ) { echo '<p><span class="lable">Link</span>: '. $meta_values["_prtf_link"][0] .'</p>'; } else { if( parse_url( $meta_values["_prtf_link"][0] ) !== false ) echo '<p><span class="lable">Link</span>: <a href="'. $meta_values["_prtf_link"][0] .'">'. $meta_values["_prtf_link"][0] .'</a></p>'; else echo '<p><span class="lable">Link</span>: '. $meta_values["_prtf_link"][0] .'</p>'; } echo '<p><span class="lable">Short description</span>: '. $meta_values["_prtf_short_descr"][0] .'</p>'; ?> </div> <div class="read_more"><a href="<?php the_permalink(); ?>" rel="bookmark">Read more >></a></div> </div> <?php $tags = wp_get_object_terms( $post->ID, 'post_tag' ) ; if ( $tags ) { if( count( $tags ) > 0 ) { $content = ""; $content .= '<div class="portfolio_terms">Technologies: '; foreach ( $tags as $tag ) { $content .= '<a href="'. get_tag_link( $tag->term_id ). '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a>, '; } $content = substr( $content, 0, strlen( $content ) -2 ); $content .= '</div>'; echo $content; } } endwhile; ?> <script type="text/javascript"> var base_url = "<?php echo WP_PLUGIN_URL .'/portfolio'; ?>"; jQuery(document).ready(function(){ jQuery('a[rel=lightbox]').colorbox({transition:'fade'}); }); </script> </div><!-- #content --> <?php portfolio_pagination(); ?> </div><!-- #container --> <div id="jquery-overlay"></div> <?php get_footer(); ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Clean Clubs - Vancouver</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="description" content="Collapsing Site Navigation with jQuery" /> <meta name="keywords" content="jquery, navigation, menu, collapsing, accordion, sliding, image, css3"/> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script src="js/cufon-yui.js" type="text/javascript"></script> <script src="js/Liberation_Sans.font.js" type="text/javascript"></script> <script type="text/javascript"> Cufon.replace('span'); Cufon.replace('li'); Cufon.replace('h1'); Cufon.replace('p'); </script> <style> body{ background:#000 url(images/stripe.gif) repeat top left; margin:0; padding:0; } span.reference{ font-family:Arial; text-transform:uppercase; position:fixed; right:95px; bottom:10px; font-size:11px; text-shadow:1px 1px 1px #000; } span.reference a{ color:#aaa; text-decoration:none; margin-right:20px; } span.reference a:hover{ color:#ddd; } .title{ position:absolute; right:10px; top:10px; width:91px; height:600px; background:transparent url(images/title.png) no-repeat top left; } </style> </head> <body> <div class="title"></div> <div id="cc_menu" class="cc_menu"> <div> <img src="images/logo_clean.png" /></div> <div class="cc_item" style="z-index:5;"> <img src="images/1.jpg" alt="image" /> <span class="cc_title">Home</span> <div class="cc_submenu"> <ul> <li class="cc_content_1">Home</li> </ul> </div> </div> <div class="cc_item" style="z-index:4;"> <img src="images/2.jpg" alt="image" /> <span class="cc_title">Our Values</span> <div class="cc_submenu"> <ul> <li class="cc_content_2">Our Values</li> </ul> </div> </div> <div class="cc_item" style="z-index:3;"> <img src="images/3.jpg" alt="image" /> <span class="cc_title">Concierge</span> <div class="cc_submenu"> <ul> <li class="cc_content_3">Concierge</li> </ul> </div> </div> <div class="cc_item" style="z-index:2;"> <img src="images/4.jpg" alt="image" /> <span class="cc_title">Commercial</span> <div class="cc_submenu"> <ul> <li class="cc_content_4">Cleaning</li> </ul> </div> </div> <div class="cc_item" style="z-index:1;"> <img src="images/5.jpg" alt="image" /> <span class="cc_title">Contact Us</span> <div class="cc_submenu"> <ul> <li class="cc_content_5">Contact Us</li> <li class="cc_content_6">Get in touch</li> </ul> </div> </div> <div id="cc_content" class="cc_content"> <span id="cc_back" class="cc_back"><< Go back</span> <div class="cc_content_1"> <h1>About Us</h1> <p>Clean Clubs is a Vancouver based business owned by entrepreneurs Carlos and Aaron. Combined, Carlos and Aaron have over two decades of customer service experience.</p> <p> Customer Service is an integral part of any business, and/or industry, as it is the key element to attracting loyalty from customers/clients.</p> <p> The company was established with the notion that the Washroom Concierge services currently being offered in town lack consistency and adequately trained staff in the art of Customer Service.</p> <p> Clean Clubs is committed to bringing the key element of Customer Service to the Night Life niche. With proven experience, we guarantee that our services will have your patrons coming out of the washrooms feeling welcome and taken care off.</p> </div> <div class="cc_content_2"> <h1>Our Company Values</h1> <p> Although we are just in the initial stages of our journey, we have instilled in all our employees with the following core values that define us and our company: • Honesty. • Integrity. • Loyalty. • Positive Attitude.</p> </div> <div class="cc_content_3"> <h1>Concierge</h1> <p>Picture The Washroom Concierge is the foundation to maintaining your restroom facility's clean environment for your patrons to enjoy. At Clean Clubs we believe that in order to create an unforgettable experience to your clients, the key aspect is customer service, as well as providing top of the line colognes and grooming products. Your washroom concierge will dress professionally and exude class. He will also be first aid certified and be equipped with the necessary skills to uphold your patrons' satisfaction and ensure that your washroom is clean. Statistics have confirmed that employing our concierge service reduces damage to your establishment. Our washroom concierges are currently serving in nightclubs such as Opus Bar as well as other pubs and ultra-lounges. We are also available for catering your special events regardless of how big or small.</p> </div> <div class="cc_content_4"> Picture Our commercial services transform your place of business into a utopia of eco-friendly and scent free synergy. Your establishment will be cleansed with industry established equipment and eco-friendly products such as the Vert-2-Go Bio line of products that are certified by Environment Canada's EcoLogoM program and or our scent free products. Our service guarantees that we will undertake any visible surface including but not limited to floors, countertops, mirrors, windows, chairs, walls and anything that needs our attention as per our client's needs. Our industry trained staff will ensure that your establishment brings out the synergy in you. </div> <div class="cc_content_5"> <h1>New York</h1> <p>Contact Information: Owners: Aaron: (778) 232 - 0980 Carlos: (604) 760 - 6942</p> </div> </div> <div id="footer"> © 2011 www.cleanclubs.ca </div> </div> <!-- The JavaScript --> <script type="text/javascript"> $(function() { $(".cc_item:first").addClass("bordx"); $(".cc_menu:first").addClass("bordx"); $(".cc_item img:first").addClass("bordx"); $(".cc_submenu ul:first").addClass("bordx"); $(".cc_item:last").addClass("bordx2"); $(".cc_menu:last").addClass("bordx2"); $(".cc_item img:last").addClass("bordx2"); //all the menu items var $items = $('#cc_menu .cc_item'); //number of menu items var cnt_items = $items.length; //if menu is expanded then folded is true var folded = false; //timeout to trigger the mouseenter event on the menu items var menu_time; /** bind the mouseenter, mouseleave to each item: - shows / hides image and submenu bind the click event to the list elements (submenu): - hides all items except the clicked one, and shows the content for that item */ $items.unbind('mouseenter') .bind('mouseenter',m_enter) .unbind('mouseleave') .bind('mouseleave',m_leave) .find('.cc_submenu > ul > li', '.cc_title > span') .bind('click',function(){ var $li_e = $(this); //if the menu is already folded, //just replace the content if(folded){ hideContent(); showContent($li_e.attr('class')); } else //fold and show the content fold($li_e); }); /** mouseenter function for the items the timeout is used to prevent this event to trigger if the user moves the mouse with a considerable speed through the menu items */ function m_enter(){ var $this = $(this); clearTimeout(menu_time); menu_time = setTimeout(function(){ //img $this.find('img').stop().animate({'opacity':'1'},400); //cc_submenu ul $this.find('.cc_submenu > ul').stop().animate({'height':'300px'},400); },200); } //mouseleave function for the items function m_leave(){ var $this = $(this); clearTimeout(menu_time); //img $this.find('img').stop().animate({'opacity':'0.4'},400); //cc_submenu ul $this.find('.cc_submenu > ul').stop().animate({'height':'0px'},400); } //back to menu button - unfolds the menu $('#cc_back').bind('click',unfold); /** hides all the menu items except the clicked one after that, the content is shown */ function fold($li_e){ var $item = $li_e.closest('.cc_item'); var d = 100; var step = 0; $items.unbind('mouseenter mouseleave'); $items.not($item).each(function(){ var $item = $(this); $item.stop().animate({ 'marginLeft':'-140px' },d += 200,function(){ ++step; if(step == cnt_items-1){ folded = true; showContent($li_e.attr('class')); } }); }); } /** shows all the menu items also hides any item's image / submenu that might be displayed */ function unfold(){ $('#cc_content').stop().animate({'top':'-800px'},600,function(){ var d = 100; var step = 0; $items.each(function(){ var $item = $(this); $item.find('img') .stop() .animate({'opacity':'0.4'},200) .andSelf() .find('.cc_submenu > ul') .stop() .animate({'height':'0px'},200); $item.stop().animate({ 'marginLeft':'0px' },d += 200,function(){ ++step; if(step == cnt_items-1){ folded = false; $items.unbind('mouseenter') .bind('mouseenter',m_enter) .unbind('mouseleave') .bind('mouseleave',m_leave); hideContent(); } }); }); }); } //function to show the content function showContent(idx){ $('#cc_content').stop().css('left','140px').animate({'top':'0px'},200,function(){ $(this).find('.'+idx).fadeIn(); }); } //function to hide the content function hideContent(){ $('#cc_content').find('div').hide(); } }); </script> </body> </html> ORIGINAL SCRIPT <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Clean Clubs Testing</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="description" content="Collapsing Site Navigation with jQuery" /> <meta name="keywords" content="jquery, navigation, menu, collapsing, accordion, sliding, image, css3"/> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script src="js/cufon-yui.js" type="text/javascript"></script> <script src="js/Liberation_Sans.font.js" type="text/javascript"></script> <script type="text/javascript"> /*Cufon.replace('span'); Cufon.replace('li'); Cufon.replace('h1'); Cufon.replace('p');*/ </script> <style> body{ background:#000 url(images/stripe.gif) repeat top left; margin:0; padding:0; } span.reference{ font-family:Arial; text-transform:uppercase; position:fixed; right:95px; bottom:10px; font-size:11px; text-shadow:1px 1px 1px #000; } span.reference a{ color:#aaa; text-decoration:none; margin-right:20px; } span.reference a:hover{ color:#ddd; } .title{ position:absolute; right:10px; top:10px; width:91px; height:600px; background:transparent url(images/title.png) no-repeat top left; } </style> </head> <body> <div class="title"></div> <div id="cc_menu" class="cc_menu"> <div> <img src="images/logo_clean.png" /></div> <div class="cc_item" style="z-index:5;"> <img src="images/1.jpg" alt="image" /> <span class="cc_content_1">Home</span> </div> <div class="cc_item" style="z-index:4;"> <img src="images/2.jpg" alt="image" /> <span class="cc_content_2">Our Values</span> </div> <div class="cc_item" style="z-index:3;"> <img src="images/3.jpg" alt="image" /> <span class="cc_content_3">Concierge</span> </div> <div class="cc_item" style="z-index:2;"> <img src="images/4.jpg" alt="image" /> <span class="cc_content_4">Commercial</span> </div> <div class="cc_item" style="z-index:1;"> <img src="images/5.jpg" alt="image" /> <span class="cc_content_5">Contact Us</span> </div><!-- cc_menu --> <div id="cc_content" class="cc_content"> <span id="cc_back" class="cc_back"><< Go back</span> <div class="cc_content_1"> <h1>About Us</h1> <p>Clean Clubs is a Vancouver based business owned by entrepreneurs Carlos and Aaron. Combined, Carlos and Aaron have over two decades of customer service experience.</p> <p> Customer Service is an integral part of any business, and/or industry, as it is the key element to attracting loyalty from customers/clients.</p> <p> The company was established with the notion that the Washroom Concierge services currently being offered in town lack consistency and adequately trained staff in the art of Customer Service.</p> <p> Clean Clubs is committed to bringing the key element of Customer Service to the Night Life niche. With proven experience, we guarantee that our services will have your patrons coming out of the washrooms feeling welcome and taken care off.</p> </div> <div class="cc_content_2"> <h1>Our Company Values</h1> <p> Although we are just in the initial stages of our journey, we have instilled in all our employees with the following core values that define us and our company: • Honesty. • Integrity. • Loyalty. • Positive Attitude.</p> </div> <div class="cc_content_3"> <h1>Concierge</h1> <p>Picture The Washroom Concierge is the foundation to maintaining your restroom facility's clean environment for your patrons to enjoy. At Clean Clubs we believe that in order to create an unforgettable experience to your clients, the key aspect is customer service, as well as providing top of the line colognes and grooming products. Your washroom concierge will dress professionally and exude class. He will also be first aid certified and be equipped with the necessary skills to uphold your patrons' satisfaction and ensure that your washroom is clean. Statistics have confirmed that employing our concierge service reduces damage to your establishment. Our washroom concierges are currently serving in nightclubs such as Opus Bar as well as other pubs and ultra-lounges. We are also available for catering your special events regardless of how big or small.</p> </div> <div class="cc_content_4"> Picture Our commercial services transform your place of business into a utopia of eco-friendly and scent free synergy. Your establishment will be cleansed with industry established equipment and eco-friendly products such as the Vert-2-Go Bio line of products that are certified by Environment Canada's EcoLogoM program and or our scent free products. Our service guarantees that we will undertake any visible surface including but not limited to floors, countertops, mirrors, windows, chairs, walls and anything that needs our attention as per our client's needs. Our industry trained staff will ensure that your establishment brings out the synergy in you. </div> <div class="cc_content_5"> <h1>New York</h1> <p>Contact Information: Owners: Aaron: (778) 232 - 0980 Carlos: (604) 760 - 6942</p> </div> </div><!-- cc_content --> <div id="footer"> © 2011 Cleanclubs.ca - All Rights Reserved Designed by: http://www.jdrdesign.net </div> </div><!-- wrapper --> <!-- The JavaScript --> <script type="text/javascript"> $(function() { //all the menu items var $items = $('.cc_item'); //number of menu items var cnt_items = $items.length; //if menu is expanded then folded is true var folded = false; //timeout to trigger the mouseenter event on the menu items var menu_time; /** bind the mouseenter, mouseleave to each item: - shows / hides image and submenu bind the click event to the list elements (submenu): - hides all items except the clicked one, and shows the content for that item */ $items.unbind('mouseenter') .bind('mouseenter',m_enter) .unbind('mouseleave') .bind('mouseleave',m_leave) .find('.cc_item > img > span') .bind('click',function(e){ var $li_e = $(this); //if the menu is already folded, //just replace the content if(folded){ hideContent(); showContent($li_e.attr('class')); console.log("button clicked"); e.preventDefault(); return false; } else //fold and show the content fold($li_e); e.preventDefault(); return false; }); /** mouseenter function for the items the timeout is used to prevent this event to trigger if the user moves the mouse with a considerable speed through the menu items */ function m_enter(){ var $this = $(this); clearTimeout(menu_time); menu_time = setTimeout(function(){ //img $this.find('img').stop().animate({'opacity':'1'},400); //cc_submenu ul //$this.find('.cc_submenu > ul').stop().animate({'height':'200px'},400); $this.find('.cc_item > span').stop().animate({'height':'200px'},400); },200); } //mouseleave function for the items function m_leave(){ var $this = $(this); clearTimeout(menu_time); //img $this.find('img').stop().animate({'opacity':'0.4'},400); //cc_submenu ul //$this.find('.cc_submenu > ul').stop().animate({'height':'0px'},400); $this.find('.cc_item > span').stop().animate({'height':'0px'},400); } //back to menu button - unfolds the menu $('#cc_back').bind('click',unfold); /** hides all the menu items except the clicked one after that, the content is shown */ function fold($li_e){ var $item = $li_e.closest('.cc_item'); var d = 100; var step = 0; $items.unbind('mouseenter mouseleave'); $items.not($item).each(function(){ var $item = $(this); $item.stop().animate({ 'marginLeft':'-140px' },d += 200,function(){ ++step; if(step == cnt_items-1){ folded = true; showContent($li_e.attr('class')); } }); }); } /** shows all the menu items also hides any item's image / submenu that might be displayed */ function unfold(){ $('#cc_content').stop().animate({'top':'-700px', 'left':'140px'},600,function(){ var d = 100; var step = 0; $items.each(function(){ var $item = $(this); $item.find('img') .stop() .animate({'top':'0px'},200) .animate({'opacity':'0.4'},200) .andSelf() .find('.cc_item > span') .stop() .animate({'height':'0px'},200); $item.stop().animate({ 'marginLeft':'0px' },d += 200,function(){ ++step; if(step == cnt_items-1){ folded = false; $items.unbind('mouseenter') .bind('mouseenter',m_enter) .unbind('mouseleave') .bind('mouseleave',m_leave); hideContent(); } }); }); }); } //function to show the content function showContent(idx){ $('#cc_content').stop().animate({'top':'140px', 'left':'140px'},200,function(){ $(this).find('.'+idx).fadeIn(); }); } //function to hide the content function hideContent(){ $('#cc_content').find('div').hide(); } }); </script> </body> </html> MODIFIED CODE My problem is whenever I click on the home page since I change it the content is not being accessed. Please help me. This jQuery is driving me nuts targeting the linkage. Thanks.
  3. please help..almost close to finishing the website :-X
  4. my paging script is in another file though it's called newsfeed.php
  5. this is my paging script // how many rows to show per page $rowsPerPage = 3; // by default we show first page $pageNum = 1; // if $_GET['page'] defined, use it as page number if(isset($_GET['page'])) { $pageNum = $_GET['page']; } // counting the offset $offset = ($pageNum - 1) * $rowsPerPage; echo '<table width="400" border="0" cellspacing="0" cellpadding="0">'; $query = "SELECT * FROM news LIMIT $offset, $rowsPerPage"; $result = mysql_query($query) or die('Error, query failed'); $color="1"; // print the random numbers while($row = mysql_fetch_array($result)){ if($color==1){ echo '<tr> <td class="beam">'.$row['date'].' '.$row['time'].' '.$row['name'].'<br>'.$row['msg'].'</td></tr>'; // Set $color==2, for switching to other color $color="2"; } // When $color not equal 1, use this table row color else { echo '<tr> <td class="beamer">'.$row['date'].' '.$row['time'].' '.$row['name'].'<br>'.$row['msg'].'</td></tr>'; // Set $color back to 1 $color="1"; } } echo '<br>'; echo '</table>'; // how many rows we have in database $query = "SELECT COUNT(id) AS numrows FROM news"; $result = mysql_query($query) or die('Error, query failed'); $row = mysql_fetch_array($result, MYSQL_ASSOC); $numrows = $row['numrows']; // how many pages we have when using paging? $maxPage = ceil($numrows/$rowsPerPage); // print the link to access each page $self = $_SERVER['PHP_SELF']; $nav = ''; for($page = 1; $page <= $maxPage; $page++) { if ($page == $pageNum) { $nav .= " $page "; // no need to create a link to current page } else { $nav .= " <a href=\"$self?page=$page\">$page</a> "; } } // creating previous and next link // plus the link to go straight to // the first and last page if ($pageNum > 1) { $page = $pageNum - 1; $prev = " <a href=\"$self?page=$page\">[Prev]</a> "; $first = " <a href=\"$self?page=1\">[First Page]</a> "; } else { $prev = ' '; // we're on page one, don't print previous link $first = ' '; // nor the first page link } if ($pageNum < $maxPage) { $page = $pageNum + 1; $next = " <a href=\"$self?page=$page\">[Next]</a> "; $last = " <a href=\"$self?page=$maxPage\">[Last Page]</a> "; } else { $next = ' '; // we're on the last page, don't print next link $last = ' '; // nor the last page link } // print the navigation link echo $first . $prev . $nav . $next . $last; ?>
  6. http://alltraxx.uni.cc/index2.php, it's okay if I use the include the file, but when i link it like this click index2.php?page=newsfeed it'll say the error, and also when i click on the 2 page it gives and error and doesn't show the data it's suppose to show.
  7. The error i'm getting is this "Error, query failed"
  8. I'm currently working on the webiste and used the code to switch the website to go to a < table > content section, the first page of the mysql that is taken out shows out but with pagination it doesn't work at all. for example there is a link index.php?page=news and when you click on the link the link doesn't function and gives an error and when i click page 1,2,3 the link doesn't go news?=1 <?php $file = $_GET['page'].'.php'; if (file_exists($file)) { include $file; } elseif ($_GET['page'] == '') { include "test.php"; } else { echo "404 ERROR WE COOL"; } ?> </td> <td class="other"> <font color="white"> <?php $file = $_GET['id'].'.php'; if (file_exists($file)) { include $file; } elseif ($_GET['page'] == '') { include "home.php"; } else { echo "404 ERROR WE COOL"; } ?> this code works if i'm only running files that are in that are upload and doesn't load the data from sql since i have pagination in newsfeed.php, when i click on next it doesn't load the date from the mysql
×
×
  • 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.