Thursday 15 March 2012

php - how to sort SQL result in an existing sorting function -


Hello, I have a template of this sorting function CMS. I would like to add if the situation is second:

  if (is_array ($ array)) {foreach ($ line as line $) {if ($ row [photos] == 1) { If ($ isMobile) {included ($ basepath. '/ Templates / mobile.content_item_photo.php'); } Other {include ($ basepath. '/ Template / template.content_item_photo.php'); }   

I want to add the following MySQL result to show also

  $ result = mysql_query ("select niches.name, niches.record_num" from niches ASC name by ORDER ");   

which is used for sorting this template:

 Include  ($ basepath. '/ Templates / template.channel_item_title.php') ;   

Any idea how the first code function can be integrated inside?

Here is the code of the main index template:

     

I do not think I am getting your question, but we have to start somewhere else. ($ Line [photo] == 1) {if ($ isMobile is)

    

Next block of code:

  & lt ;? Php $ result = mysql_query ("select niches.name, niches .record_num by name niches ORDER ASC"); If (is_array (result)) {foreach ($ result as $ line) {if ($ row [photos] == 1) {if ($ isMobile) {include ($ basepath. '/ Templates / mobile.content_item_photo Php '); } Other {include ($ basepath. '/ Templates / template.channel_itm_title.fp'); }    

No comments:

Post a Comment