Please explain it a more that which kind of structure you want...!
For Example, this is an Example code which you can Test by running in a Panel or Custom Page to see... : ( This will show 20 User Names and their ID's in Two columns arranged in Ascending order by their Name )
<?php
$result = dbquery("SELECT user_name, user_id FROM ".DB_USERS." ORDER BY user_name ASC LIMIT 20");
Hm... I was thinking about something like my attached image, but in just 2 columns... I mean list of all articles in "article_cat" 1, ordered this way...
Merged on Jun 10 2011 at 09:03:25:
And also... Is it possible to make a custom page with a list of all articles in a article category, order them by name and add an "alphabet" to let users/viewers sort by letter?
// Uncomment the 1st Query and Comment the 2nd Query to show all articles(not from particular category)
//$result = dbquery("SELECT article_id, article_subject FROM ".DB_ARTICLES." ORDER BY article_subject ASC LIMIT 25");
$result = dbquery("SELECT article_id, article_subject FROM ".DB_ARTICLES." where article_cat=3 ORDER BY article_subject ASC LIMIT 25");
// Remember the Limit is set to 25. You can Increase it.
And about the other thing... Is it possible to make a custom page with a list of all articles of an article category, order them by name and add an "alphabet" to let users/viewers sort by letter?
As here: VKMANGA REVIEWS
something like this, but without the visits column...
And about the other thing... Is it possible to make a custom page with a list of all articles of an article category, order them by name and add an "alphabet" to let users/viewers sort by letter?
As here: VKMANGA REVIEWS
something like this, but without the visits column...
Can you see this line in Code :
echo "» <a href='".BASEDIR."articles.php?article_id=".$data['article_id']."'>".$data['article_subject']."</a><br />\n";
The <br /> is added so that it comes after new line and in your website source code, its not showing the <br /> code...
So I think that you have missed that ! Because it worked nicely for me in simple Gillete theme !
Oh! I've corrected that in my custom page. The problem was that I copy&pasted your code from your previous post, where the <br /> is not specified
And just a quick question... Would it also be possible to give the query result a similar design to the one used on the page (VKMANGA) I've shown before?
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.