vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   parse error with ';' (https://vborg.vbsupport.ru/showthread.php?t=104006)

AN-net 12-29-2005 11:17 PM

parse error with ';'
 
dont know what it is, im so blind>_<

Parse error: parse error, unexpected ';' in /xxxxx/xxxxx/xxxxx/forum/includes/cron/stockcron.php on line 40

PHP Code:

$getstocks$DB_site->query("SELECT stockid, stocksym, lastupdate FROM " TABLE_PREFIX "stocks WHERE active=1");
while(
$stock$DB_site->fetch_array($getstocks))
{
    if(
$yahoofopen("http://finance.yahoo.com/d/quotes.csv?s=" $stock['stocksym'] . "&f=sl1d1t1c1ohgv&e=.csv""r"))
    {
        
$quotecsv fgetcsv($yahoo1024);
        
$quote['sym']= $quotecsv[0];
        
$quote['lasttrade']= $quotecsv[1];
        
$quote['update_date']= $quotecsv[2];
        
$quote['update_time']= $quotecsv[3];
        
$quote['date']= explode('/'$quote['update_date']);
        
$quote['time']= explode(':'$quote['update_time']);
        
$quote['minutes']= substr($quote['time'][1], 02);
        
$quote['meridiem']= substr($quote['time'][1], 22);
        if(
$quote['meridiem'] = "pm")
        {
            
$quote['time'][0]+12;
        }
        
$quote['update']= gmmktime($quote['time'][0], $quote['minutes'], 0$quote['date'][0], $quote['date'][1], $quote['date'][2]);
        
$quote['change']= $quotecsv[4];
        
$quote['open']= $quotecsv[5];
        
$quote['day_highrange']= $quotecsv[6];
        
$quote['day_lowrange']= $quotecsv[7];
        
$quote['volume']= $quotecsv[8];
        if(
$quote['update'] > $stock['lastupdate'])
        {
            
$DB_site->query("UPDATE " TABLE_PREFIX "stocks SET lastupdate=" $quote['update'] . ", selling=" intval($quote['lasttrade']) . ", 
            open=" 
intval($quote['open']) . ", dayrange_low=" intval($quote['day_rangelow']) . ", 
            dayrange_high=" 
intval($quote['day_rangehigh'] . ", volume=" intval($quote['volume']) . ", 
            change=" 
intval($quote['change']) . 
            WHERE stockid=" 
$stock['stockid']. "
40:            "
);
        }
        
fclose($yahoo);
    }



filburt1 12-30-2005 01:34 AM

Yes, and line 40 is...? Anyway.
PHP Code:

intval($quote['day_rangehigh'


AN-net 12-30-2005 02:14 AM

see i am blind>_<


All times are GMT. The time now is 03:25 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.00971 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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