TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-28-2012, 12:35 AM   #1 (permalink)
The Wanderer
 
Brian07002's Avatar
 
Join Date: Feb 2012
Posts: 5
Thanks: 0
Brian07002 is on a distinguished road
Smile Category Navigation

Hi everyone!

I have been working on a category / subcategory navigation system for my ad selling / publishing website.

I am no PHP expert, but I learn well by example...OK now onto the business...

The navigation system uses PHP and MySQL DB..
The DB I am using for the categories and subcategories tables is the ad manager DB. Note: The categories / subcategory tables were created by me in the ad manager database.

The idea is to have 4 pages to the category / subcategory navigation. Let me explain

Page 1: Categories.PHP- self explanitory displays categories
Page 2: Subcategories.PHP- self explanitory displays subcategories associated with clicked category
Page 3: Zones.PHP- Will display a zone (ad manager category that has ads associated with that zone #)
Page 4: Ad.php - Basically a details page for the ad that was clicked on the zones.PHP page.

I will post the SQL files relating to the database. And also the PHP pages that I have so far...If you feel like customizing the code, please do it in a more simplified way, I don't like the PHP code too complicated. Try to follow./ Use what I have in my pages.

Edit: should I also upload the ad manager so you can test on local host? I can do that as well if need be.

This is what I have so far...Note, there might be some obvious mistakes on the zones.PHP page. The cats and subcats pages do work, but maybe some cosmetic coding changes are needed?Like the variable names being passed could be called different Names? Haven't started the ad.PHP page yet.

Categories.php
PHP Code:
<html>
<head><title>Reunite My Site - Category Navigation Page</title> 
<link rel="stylesheet" type="text/css" href="/css/index.css" media="screen" /> 
<link rel="stylesheet" type="text/css" href="/css/pagination.css" media="screen" />
</head>


<style type="text/css">

body {
color: #FFF;
}

#main_content {
background-color: #292929;
border: 1px solid #000;
color: #FFF;
padding: 5px;
}

H3 {
color: #FFF;
}

#tpad {
padding-left: 20px;
}

</style>


<body> 

<div id="main_content">
<div class="pagination white">
<div align="center"><h3>Category Selection</h3>

<!-- PHP CODE STARTS BELOW !-->

<?php 

// Turn on error reporting
error_reporting(E_ALL);
ini_set('display_errors','off');
?>


<?php

// Pagination Code


            /* Include your code to connect to DB. */
            
            
include('connect.php');

            
/* Your DB table name */

            
$tbl_name="categories";

            
// How many adjacent pages should be shown on each side?
            
$adjacents 1;

            
/* 
            First get total number of rows in data table. 
            If you have a WHERE clause in your query, make sure you mirror it here.
            */

            
$query "SELECT COUNT(*) as num FROM $tbl_name";
            
$total_pages mysql_fetch_array(mysql_query($query));
            
$total_pages $total_pages['num'];

            
/* Setup vars for query. */
            
$targetpage "categories.php";     //your file name  (the name of this file)

            
$limit 8;              //how many items to show per page

            
$page $_GET['page'];

            if(
$page
            
$start = ($page 1) * $limit//first item to display on this page

            
else
            
$start 0;           //if no page var is given, set start to 0
            
            /* Get data. */

            
$sql "SELECT DISTINCT * FROM $tbl_name LIMIT $start$limit";
            
$result mysql_query($sql);

            
/* Setup page vars for display. */
            
if ($page == 0$page 1;           //  if no page var is given, default to 1.
            
$prev $page 1;                   //  previous page is page - 1
            
$next $page 1;                   //  next page is page + 1
            
$lastpage ceil($total_pages/$limit);    //lastpage is = total pages / items per page, rounded up.
            
$lpm1 $lastpage 1;            //last page minus 1

            /*
            Now we apply our rules and draw the pagination object. 
            We're actually saving the code to a variable in case we want to draw it more than once.
            */

            
$pagination "";
            if(
$lastpage 1)
           {
            
$pagination .= "";

            
//previous button

            
if ($page 1
            
$pagination.= "<a href=\"$targetpage?page=$prev\" class=\"current\"> previous </a>";
            else
            
$pagination.= "<span class=\"disabled\"> previous </span>";

            
//pages

            
if ($lastpage + ($adjacents 2))    //not enough pages to bother breaking it up
           
{    
            for (
$counter 1$counter <= $lastpage$counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter</span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter\" class=\"number current\">$counter</a>";                
           }
           }
            elseif(
$lastpage + ($adjacents 2))  //enough pages to hide some
           
{

           
//close to beginning; only hide later pages

            
if($page + ($adjacents 2))        
           {
            for (
$counter 1$counter + ($adjacents 2); $counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter </span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter\" class=\"number current\">$counter</a>";
           }
            
$pagination.= "<span class=\"dots\">...</span>";
            
$pagination.= "<a href=\"$targetpage?page=$lpm1\" class=\"number\">$lpm1</a>";
            
$pagination.= "<a href=\"$targetpage?page=$lastpage\" class=\"number current\">$lastpage</a>";        
           }

            
//in middle; hide some front and some back

            
elseif($lastpage - ($adjacents 2) > $page && $page > ($adjacents 2))
           {
            
$pagination.= "<a href=\"$targetpage?page=1\" class=\"number\">1</a>";
            
$pagination.= "<a href=\"$targetpage?page=2\" class=\"number\">2</a>";
            
$pagination.= "<span class=\"dots\">...</span>";
            for (
$counter $page $adjacents$counter <= $page $adjacents$counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter</span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter\" class=\"number current\">$counter</ a>";                
           }
            
$pagination.= "<span class=\"dots\">...</span>";
            
$pagination.= "<a href=\"$targetpage?page=$lpm1\" class=\"number\">$lpm1</a>";
            
$pagination.= "<a href=\"$targetpage?page=$lastpage\" class=\"number current\">$lastpage</a>";        
           }

            
//close to end; only hide early pages

            
else
           {
            
$pagination.= "<a href=\"$targetpage?page=1\" class=\"number\">1</a>";
            
$pagination.= "<a href=\"$targetpage?page=2\" class=\"number\">2</a>";
            
$pagination.= "<span class=\"dots\">...</span>";
            for (
$counter $lastpage - (+ ($adjacents 2)); $counter <= $lastpage$counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter</span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter\" class=\"number current\">$counter</a>";
           }
           }
           }
        
            
//next button

            
if ($page $counter 1)
            
$pagination.= "<a href=\"$targetpage?page=$next\" class=\"number current\"> next </a>";
            else
            
$pagination.= "<span class=\"disabled\"> next </span>";
            
$pagination.= "</div>\n";        
           }
           
           
// End of Pagination Script //

?>


<?php 

// Start of Multiple Columns Script //

    
$cols=4;    // Here we define the number of columns
    
echo "<table>";    // The container table with $cols columns

    
do {
        echo 
"<tr>";
        for(
$i=1;$i<=$cols;$i++) {    // All the rows will have $cols columns even if
                        // the records are less than $cols
        
$row=mysql_fetch_array($result);
        if(
$row){
        
$cat_img $row['cat_image_url'];
               
 
?>

<td>
<table>

                                             <!-- columns can have both text and images -->

<td>
<a href="subcategories.php?id=<?php echo $row['cid'];?>"> <img src="<?php echo $cat_img ?>" /></a>
</td>

<p>

<tr>
<td align="center"><?php echo $row['name']; ?></td>
</tr>

<td>
                                                  <!-- Create gap between columns -->
<td width="60">&nbsp;</td>    

</tr>
</table>

</td>

<?
            
}
            else{
                
// echo "<td>&nbsp;</td>";    //If there are no more records at the end, add a blank column
            
}
        }
    } while(
$row);
          echo 
"</table>";

// End of Multiple Columns Script //

echo $pagination

?>

<?php

// Display the total number of categories.

$query mysql_query("SELECT null FROM categories");
$count mysql_num_rows($query);

echo 
"<p />";
echo 
"There are currently" ."&nbsp;" .$count ."&nbsp;" ."categories in the RMS-AD Display Network!";

?>

<div align="right">Copyright &copy; 2012 - 2076</div>
</body>
</html>
Subcategories.php
PHP Code:
<html>
<head><title>Reunite My Site - Category Navigation Page</title> 
<link rel="stylesheet" type="text/css" href="/css/index.css" media="screen" /> 
<link rel="stylesheet" type="text/css" href="/css/pagination.css" media="screen" />
</head>

<style type="text/css">

body {
color: #fff;
}

#main_content {
background-color: #292929;
border: 1px solid #000;
color: #fff;
padding: 5px;
}

</style>



<body> 
<div id="main_content">
<div class="pagination white">


<?php 

// Passed Variable from categories.php

$subcat $_GET['id'];

// Turn on error reporting
error_reporting(E_ALL & ~E_NOTICE);
ini_set('display_errors','off');
?>

<?php 

// Pagination Code


            /* Include your code to connect to DB. */
            
            
include('connect.php');
           
            
/* Your DB table name */

           
$tbl_name="subcategories";

            
// How many adjacent pages should be shown on each side?
            
$adjacents 1;

            
/* 
            First get total number of rows in data table. 
            If you have a WHERE clause in your query, make sure you mirror it here.
            */


$query "SELECT DISTINCT COUNT(*) as num FROM $tbl_name where sid = $subcat";

            
$total_pages mysql_fetch_array(mysql_query($query));
            
$total_pages $total_pages['num'];
  
            
            
/* Setup vars for query. */
            
$targetpage "subcategories.php";     //your file name  (the name of this file)

            
$limit 1;              //how many items to show per page

            
$page $_GET['page'];

            if(
$page
            
$start = ($page 1) * $limit//first item to display on this page

            
else
            
$start 0;           //if no page var is given, set start to 0
            
            /* Get data. */

$sql "SELECT DISTINCT * FROM $tbl_name where sid = ".(int)$subcat." LIMIT $start$limit";

             
// exit($sql);
            
$result mysql_query($sql) or die(mysql_error());

            
/* Setup page vars for display. */
            
if ($page == 0$page 1;           //  if no page var is given, default to 1.
            
$prev $page 1;                   //  previous page is page - 1
            
$next $page 1;                   //  next page is page + 1
            
$lastpage ceil($total_pages/$limit);    //lastpage is = total pages / items per page, rounded up.
            
$lpm1 $lastpage 1;            //last page minus 1

            /*
            Now we apply our rules and draw the pagination object. 
            We're actually saving the code to a variable in case we want to draw it more than once.
            */

            
$pagination "";
            if(
$lastpage 1)
           { 
            
$pagination .= "";

            
//previous button


            
if ($page 1
            
$pagination.= "<a href=\"$targetpage?page=$prev&id=$subcat\" class=\"current\"> previous </a>";
            else
            
$pagination.= "<span class=\"disabled\"> previous </span>";

            
//pages

            
if ($lastpage + ($adjacents 2))    //not enough pages to bother breaking it up
           
{    
            for (
$counter 1$counter <= $lastpage$counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter</span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter&id=$subcat\" class=\"number current\">$counter</a>";                
           }
           }
            elseif(
$lastpage + ($adjacents 2))  //enough pages to hide some
           
{

           
//close to beginning; only hide later pages

            
if($page + ($adjacents 2))        
           {
            for (
$counter 1$counter + ($adjacents 2); $counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter </span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter\" class=\"number current\">$counter</a>";
           }
            
$pagination.= "<span class=\"dots\">...</span>";
            
$pagination.= "<a href=\"$targetpage?page=$lpm1\" class=\"number\">$lpm1</a>";
            
$pagination.= "<a href=\"$targetpage?page=$lastpage\" class=\"number current\">$lastpage</a>";        
           }

            
//in middle; hide some front and some back

            
elseif($lastpage - ($adjacents 2) > $page && $page > ($adjacents 2))
           {
            
$pagination.= "<a href=\"$targetpage?page=1\" class=\"number\">1</a>";
            
$pagination.= "<a href=\"$targetpage?page=2\" class=\"number\">2</a>";
            
$pagination.= "<span class=\"dots\">...</span>";
            for (
$counter $page $adjacents$counter <= $page $adjacents$counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter</span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter\" class=\"number current\">$counter</ a>";                
           }
            
$pagination.= "<span class=\"dots\">...</span>";
            
$pagination.= "<a href=\"$targetpage?page=$lpm1\" class=\"number\">$lpm1</a>";
            
$pagination.= "<a href=\"$targetpage?page=$lastpage\" class=\"number current\">$lastpage</a>";        
           }

            
//close to end; only hide early pages

            
else
           {
            
$pagination.= "<a href=\"$targetpage?page=1\" class=\"number\">1</a>";
            
$pagination.= "<a href=\"$targetpage?page=2\" class=\"number\">2</a>";
            
$pagination.= "<span class=\"dots\">...</span>";
            for (
$counter $lastpage - (+ ($adjacents 2)); $counter <= $lastpage$counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter</span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter\" class=\"number current\">$counter</a>";
           }
           }
           }
        
            
//next button

            
if ($page $counter 1)
            
$pagination.= "<a href=\"$targetpage?page=$next&id=$subcat\" class=\"number current\"> next </a>";
            else
            
$pagination.= "<span class=\"disabled\"> next </span>";
            
$pagination.= "</div>\n";        
           }
           
           
// End of Pagination Script //


?>

<?php

// Start of Multiple Columns Script //

    
$cols=4;    // Here we define the number of columns
    
echo "<table>";    // The container table with $cols columns

    
do {
        echo 
"<tr>";
        for(
$i=1;$i<=$cols;$i++) {    // All the rows will have $cols columns even if
                        // the records are less than $cols
        
$row=mysql_fetch_array($result);
        if(
$row) {
        
$img $row['subcat_image_url'];
 
?>

        <td>
            <table>
                <tr valign="top">
<td><a href="zones.php?zone=<?php echo $subcat?>"> <img src="<?php echo $img ?>" /></td> 
<p>
<tr><td align="center"><?php echo $row['name']; ?></td></tr>

                 
                 <!-- Create gap between columns -->
                   <td width="50">&nbsp;</td>
            </tr>
           </table>
           </td>
<?
            
}
            else{
                
// echo "<td>&nbsp;</td>";    //If there are no more records at the end, add a blank column
            
}
        }
    } while(
$row);
          echo 
"</table>";

// End of Multiple Columns Script //

echo $pagination

?>



<?php

// Display the total number of categories.

$q2 mysql_query("SELECT DISTINCT * FROM subcategories where sid = ".(int)$subcat."");
$count mysql_num_rows($q2);


// Start Subcategories Counter

if ( $count == ) {

echo 
"<div align=\"center\">";
echo 
"<br />";
echo 
"There is currently Only" ."&nbsp;" .$count ."&nbsp;" ."Subcategory in this Category!";
echo 
"</div>";

} else {

echo 
"<div align=\"center\">";
echo 
"<br />";
echo 
"There are currently" ."&nbsp;" .$count ."&nbsp;" ."Subcategories in this Category!";
echo 
"</div>";
}

// End Subcategories Counter

?>

<div align="right">Copyright &copy; 2012 - 2076</div>
</body>
</html>
zones.php
PHP Code:
<html>
<head><title>Reunite My Site - Category Navigation Page</title> 
<link rel="stylesheet" type="text/css" href="/css/index.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/pagination.css" media="screen" />  
</head>

<style type="text/css">

body {
color: #fff;
}

#main_content {
background-color: #292929;
border: 1px solid #000;
color: #fff;
padding: 5px;
}

</style>


<body> 
<div id="main_content">
<div class="pagination white">

<div align="center"><h4>Zone Output Page (in development)</h4></div>

<?php 

// Passed Variable from categories.php

$type $_GET['ad_type'];

// Turn on error reporting
error_reporting(E_ALL & ~E_NOTICE);
ini_set('display_errors','on');
?>

<?php 

// Pagination Code


            /* Include your code to connect to DB. */
            
            
include('connect.php');
           
            
/* Your DB table name */

           
$tbl_name="amp_ads";

            
// How many adjacent pages should be shown on each side?
            
$adjacents 1;

            
/* 
            First get total number of rows in data table. 
            If you have a WHERE clause in your query, make sure you mirror it here.
            */


$query "SELECT DISTINCT COUNT(*) as num FROM $tbl_name";

            
$total_pages mysql_fetch_array(mysql_query($query));
            
$total_pages $total_pages['num'];
  
            
            
/* Setup vars for query. */
            
$targetpage "zones.php";     //your file name  (the name of this file)

            
$limit 1;              //how many items to show per page

            
$page $_GET['page'];

            if(
$page
            
$start = ($page 1) * $limit//first item to display on this page

            
else
            
$start 0;           //if no page var is given, set start to 0
            
            /* Get data. */

$sql "SELECT * FROM $tbl_name, subcategories WHERE subcategories.sid = ".(int)$type." LIMIT $start$limit";

             
// exit($sql);
            
$result mysql_query($sql) or die(mysql_error());

            
/* Setup page vars for display. */
            
if ($page == 0$page 1;           //  if no page var is given, default to 1.
            
$prev $page 1;                   //  previous page is page - 1
            
$next $page 1;                   //  next page is page + 1
            
$lastpage ceil($total_pages/$limit);    //lastpage is = total pages / items per page, rounded up.
            
$lpm1 $lastpage 1;            //last page minus 1

            /*
            Now we apply our rules and draw the pagination object. 
            We're actually saving the code to a variable in case we want to draw it more than once.
            */

            
$pagination "";
            if(
$lastpage 1)
           { 
            
$pagination .= "";

            
//previous button


            
if ($page 1
            
$pagination.= "<a href=\"$targetpage?page=$prev&id=$zone\" class=\"current\"> previous </a>";
            else
            
$pagination.= "<span class=\"disabled\"> previous </span>";

            
//pages

            
if ($lastpage + ($adjacents 2))    //not enough pages to bother breaking it up
           
{    
            for (
$counter 1$counter <= $lastpage$counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter</span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter&id=$zone\" class=\"number current\">$counter</a>";                
           }
           }
            elseif(
$lastpage + ($adjacents 2))  //enough pages to hide some
           
{

           
//close to beginning; only hide later pages

            
if($page + ($adjacents 2))        
           {
            for (
$counter 1$counter + ($adjacents 2); $counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter </span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter\" class=\"number current\">$counter</a>";
           }
            
$pagination.= "<span class=\"dots\">...</span>";
            
$pagination.= "<a href=\"$targetpage?page=$lpm1\" class=\"number\">$lpm1</a>";
            
$pagination.= "<a href=\"$targetpage?page=$lastpage\" class=\"number current\">$lastpage</a>";        
           }

            
//in middle; hide some front and some back

            
elseif($lastpage - ($adjacents 2) > $page && $page > ($adjacents 2))
           {
            
$pagination.= "<a href=\"$targetpage?page=1\" class=\"number\">1</a>";
            
$pagination.= "<a href=\"$targetpage?page=2\" class=\"number\">2</a>";
            
$pagination.= "<span class=\"dots\">...</span>";
            for (
$counter $page $adjacents$counter <= $page $adjacents$counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter</span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter\" class=\"number current\">$counter</ a>";                
           }
            
$pagination.= "<span class=\"dots\">...</span>";
            
$pagination.= "<a href=\"$targetpage?page=$lpm1\" class=\"number\">$lpm1</a>";
            
$pagination.= "<a href=\"$targetpage?page=$lastpage\" class=\"number current\">$lastpage</a>";        
           }

            
//close to end; only hide early pages

            
else
           {
            
$pagination.= "<a href=\"$targetpage?page=1\" class=\"number\">1</a>";
            
$pagination.= "<a href=\"$targetpage?page=2\" class=\"number\">2</a>";
            
$pagination.= "<span class=\"dots\">...</span>";
            for (
$counter $lastpage - (+ ($adjacents 2)); $counter <= $lastpage$counter++)
           {
            if (
$counter == $page)
            
$pagination.= "<span class=\"number\">$counter</span>";
            else
            
$pagination.= "<a href=\"$targetpage?page=$counter\" class=\"number current\">$counter</a>";
           }
           }
           }
        
            
//next button

            
if ($page $counter 1)
            
$pagination.= "<a href=\"$targetpage?page=$next&id=$zone\" class=\"number current\"> next </a>";
            else
            
$pagination.= "<span class=\"disabled\"> next </span>";
            
$pagination.= "</div>\n";        
           }
           
           
// End of Pagination Script //


?>

<?php

// Start of Multiple Columns Script //

    
$cols=1;    // Here we define the number of columns
    
echo "<table>";    // The container table with $cols columns

    
do {
        echo 
"<tr>";
        for(
$i=1;$i<=$cols;$i++) {    // All the rows will have $cols columns even if
                        // the records are less than $cols
        
$row=mysql_fetch_array($result);
        if(
$row) {
        
$img $row['banner'];
 
?>

        <td>
            <table>
                <tr valign="top">
<?php echo $img ?>
<td><img src="<?php echo $img ?>" /></td> 
<p>
<tr><td align="center"><?php echo $row['name']; ?></td></tr>

                 
                 <!-- Create gap between columns -->
                   <td width="50">&nbsp;</td>
            </tr>
           </table>
           </td>
<?
            
}
            else{
                
// echo "<td>&nbsp;</td>";    //If there are no more records at the end, add a blank column
            
}
        }
    } while(
$row);
          echo 
"</table>";

// End of Multiple Columns Script //

echo $pagination

?>



<?php

// Display the total number of categories.

$q2 mysql_query("SELECT DISTINCT * FROM amp_ads");
$count mysql_num_rows($q2);


// Start Subcategories Counter

if ( $count == ) {

echo 
"<p />";
echo 
"There is currently Only" ."&nbsp;" .$count ."&nbsp;" ."Ads in this Category!";

} else {

echo 
"<p />";
echo 
"There are currently" ."&nbsp;" .$count ."&nbsp;" ."Ads in this Category!";
}

// End Subcategories Counter

?>

<div align="right">Copyright &copy; 2012 - 2076</div>
<p />
</div>
</body>
</html>

Thank you all who help!
Brian

Last edited by Brian07002 : 02-28-2012 at 01:57 AM. Reason: Added Php Code
Brian07002 is offline  
Reply With Quote
Old 03-08-2012, 09:12 PM   #2 (permalink)
The Wanderer
 
Brian07002's Avatar
 
Join Date: Feb 2012
Posts: 5
Thanks: 0
Brian07002 is on a distinguished road
Default

Hmmm...I guess this is too big of a project? Anyone care to give it a try? Otherwise you can delete the post.

Thank you anyway.
Brian
Brian07002 is offline  
Reply With Quote
Old 03-09-2012, 01:48 PM   #3 (permalink)
The Acquainted
 
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
maeltar is on a distinguished road
Default

I will post the SQL files relating to the database.

Maybe I missed that one ? :D

Post them and I'll have a look, but a few questions :

What are you trying to achieve ?
What are you having probelms with ?
Does your code work (in any way) ?
__________________
Thanks... Simon

Sex, Drugs & Linux Rules
Send a message via MSN to maeltar
maeltar is offline  
Reply With Quote
Old 03-09-2012, 10:19 PM   #4 (permalink)
The Wanderer
 
Brian07002's Avatar
 
Join Date: Feb 2012
Posts: 5
Thanks: 0
Brian07002 is on a distinguished road
Default

Quote:
Originally Posted by maeltar View Post
I will post the SQL files relating to the database.

Maybe I missed that one ? :DG

Post them and I'll have a look, but a few questions :Referring to the SQL file?

What are you trying to achieve ? Front end navigation for ad manager script
What are you having probelms with ? Developing front end navigation using PHP / MySQL db
Does your code work (in any way) ? Yes, you should try it on your server.
The SQL file I left out until a reply came my way. The above code is a work in progress for a front end navigation for a backend ad manager I am using. It is quite a project.
Brian07002 is offline  
Reply With Quote
Old 06-26-2012, 03:22 AM   #5 (permalink)
The Visitor
 
Join Date: Jun 2012
Posts: 4
Thanks: 0
Aubrey is on a distinguished road
Default

The cats and subcats pages do work, but maybe some cosmetic coding changes are needed


______________
The Best: Final Fantasy Cosplay, Pokemon Cosplay
Aubrey is offline  
Reply With Quote
Old 10-18-2012, 09:49 AM   #6 (permalink)
The Addict
 
Join Date: Oct 2012
Posts: 244
Thanks: 0
dashixiong is on a distinguished road
Default Gucci Belts

Some conservatives have Coach Factory Outlet pushed that critique further, saying that Mr. Obama’s policies are too costly, often assist the wrong people Louis Vuitton Belts and could have the paradoxical effect of driving up college costs. The dispute turns not just on different Coach Factory Outlet assessments of how policies play out, but on differing philosophical views about the role of government. During Gucci Belts his time in office, Mr. Obama has sharply increased aid to low- and middle-income students, notably through the Pell Grant Coach Factory Outlet program, which grew from $14.6 billion given to 6 million students in 2008, to nearly $40 billion for Coach Factory Outlet almost 10 million students this year. His administration also made it easier to request aid, shortening the Coach Factory Online complex federal application and allowing people to transfer their financial information electronically from the Internal Coach Outlet Online Revenue Service database. But while many education experts laud his efforts, analysts of varying political Coach Outlet Online stripes have also questioned how much impact some of the president’s policies will have, noting that the prices Coach Online Outlet charged by colleges, and student borrowing, continue to climb.But behind the headlines about soaring costs, the Coach Factory Outlet Online reality is more complex and wildly uneven, because a growing number of students receive Coach Outlet Online financial aid, and only relatively high-income families pay those fast-rising sticker prices. Adjusted for Coach Factory Online inflation, the College Board calculates, the average net price changed little over the last decade at private Coach Factory Outlet schools, and rose only modestly at public ones.Defending federal spending, Arne Duncan, the secretary of Hermes Belts education, said that for more than 30 years, college prices had risen even when federal aid had not, leading him to believe Coach Factory Online there was zero correlation.
dashixiong is offline  
Reply With Quote
Old 10-22-2012, 08:10 AM   #7 (permalink)
The Addict
 
Join Date: Oct 2012
Posts: 244
Thanks: 0
dashixiong is on a distinguished road
Default Coach Outlet

You’ve relativelyCoach Outlet recently arrived in New Delhi after living in two of Asia’s other great cities,Coach Outlet Store Online Tokyo and Hong Kong, for several years. Do these cities feel like they’re part of the same continent? Yes, and no. In terms Coach Factory Onlineof infrastructure, they couldn’t be more different. Getting regularCoach Outlet power and water at my house in New Delhi is never a sure thing, even though Coach Purse Outlet OnlineI’m paying the same rent that I paid in Tokyo and almost the same electricity prices. Both Hong Kong and Tokyo are also crowded places,Coach Factory Outlet Online but both cities are incredibly well planned and efficiently run. Efficient is not a word I would use to describe my Coach Bags Outlet Onlineday-to-day life in New Delhi. On the other hand, one thing that I think Hong Kong and New Delhi have in common isCoach Handbags Outlet a shared sense of optimism — a feeling that the best is yet to come. That’s definitely not the feeling you get in Tokyo,Coach Outlet Online or in the U.S. when I go home. It’s a big part of what I find addictive about living and working in this part of the world. You feel like you’re watching the future unfold.
dashixiong is offline  
Reply With Quote
Old 01-29-2013, 09:24 AM   #8 (permalink)
The Addict
 
Join Date: Oct 2012
Posts: 244
Thanks: 0
dashixiong is on a distinguished road
Default Coach Factory Outlet

Organizers said Coach Outlet Online was opportune because the battle’s 150-year anniversary is in December, and Fredericksburg Coach Factory Outlet has been preparing to mark the sesquicentennial. in the new agreement is that Coach Outlet Online revolutionary councils from 14 Syrian provinces now each have a representative, though not all live Coach Online Outlet in Syria. The hope is that will bind the coalition to those inside the country. Perhaps Coach Bags Outlet the most important body the new group is expected to form is a Revolutionary Military Council Coach Factory Online to oversee the splintered fighting organizations and to funnel both lethal and nonlethal Coach Factory Outlet military aid to the rebels. It should unite units of the Free Syrian Army, various militias Coach Outlet Store Online and brigades in each city and large groups of defectors. Before the ink was even dry on the Coach Outlet Store final draft, negotiators hoped that it would bring them the antiaircraft missiles they crave to Coach Factory Stores take on the Syrian Air Force. The United States and Britain have offered only Coach Handbags Outlet nonmilitary aid to the uprising. A similar attempt by the Syrian National Council to Coach Factory Store supervise the military never jelled. Organizers said funding was too haphazard. Eventually foreign Coach Factory Online governments like Qatar and Saudi Arabia, which are financing and arming the rebels, found Coach Factory Online their own favorite factions to deal with. Foreign leaders notably including Secretary of State Coach Outlet Hillary Rodham Clinton urged this unification largely so they could coordinate their Coach Factory Outlet efforts and aid through a group of technocrats. Once it receives international recognition, the Coach Outlet Store Online coalition is supposed to establish a temporary Coach Outlet Online military never jelled.
dashixiong is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! chloeanne General 2 11-14-2011 05:37 PM
SEO Friendly URL, Fetched from Databse Category Id etc.. woowoo Absolute Beginners 1 07-26-2009 03:07 AM
MySQL Category Problem codyodell MySQL & Databases 4 06-07-2008 08:47 PM
Category and order Jonnee Absolute Beginners 6 12-23-2007 09:58 PM
Category System Tutorial Gurnk Tips & Tricks 14 12-10-2007 05:24 AM


All times are GMT. The time now is 03:06 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design