vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   is it possible to perform such a query? (https://vborg.vbsupport.ru/showthread.php?t=129384)

Lionel 10-18-2006 06:34 AM

is it possible to perform such a query?
 
1 Attachment(s)
I am doing this query in calendar event where I pull the customfields which are serialized. One of these customfields indicates a round number:

Quote:

a:6:{i:1;s:10:"Aigle Noir";i:2;s:8:"Dynamite";i:3;s:35:"Port-au-Prince - Stade Sylvio Cator";i:4;s:15:"Digicel Cloture";i:5;s:1:"9";i:6;s:14:"First Division";}
So is it possible to grab only the similar in the below query? Meaning only the same with that value s:1:"9";

That values indicates round number and I am trying to prevent rounds to be mixed. For example, when I display results for round 10 and it's less than the set LIMIT of 8, I don't want to display 3 round number 10 and 5 round number 9. Just the latest 3 round of 10. If not, my info for round will be wrong.

Here is the query.

PHP Code:

$getgamesbits $db->query("SELECT events.customfields,scores.team1 as team1, scores.team2 as team2,scores.team1_score as homescore,scores.team2_score as awayscore,scores.season as season,scores.id as gameid 
FROM " 
TABLE_PREFIX "event as events 
LEFT JOIN cclp_schedule_scores as scores ON(events.eventid = scores.eventid)
WHERE calendarid='4' and scores.team1 !='' ORDER BY dateline_from DESC LIMIT 8" 
); 



All times are GMT. The time now is 01:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01702 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete