Jump to content

Recommended Posts

Posted

Indeed it is possible.

Content management systems use Databases to list links for all the Categories and the sub-categories and articles of each of those.

Download a CMS to see how it is done. Various CMS's will handle them differently, so check out a couple of them.

Posted

<?php

$getcategories = mysql_query("SELECT FROM categories ORDER BY name ASC");

?>

<?php

while($categories = mysql_fetch_array( $getcategories ))

{

?>

<?php echo $categories['name']; ?>

<?php

}

?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...