vb.org Archive

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

AN-net 07-01-2004 02:59 PM

php parse error
 
its giving me a php parse error on line 296:
PHP Code:

287:        if($do=="insertjournal")
288:        {
289:            globalize($_POST, array(
290:                'jouranlist' => TEXT,
291:                'journalistid' => INT,
292:                'jname' => TEXT,
293:                'jdesc' => TEXT,
294:                'jpriv' => INT,
295:                'whocanviewj' => TEXT
295
:                'etitle' => TEXT,
296:                'emessage' => TEXT,
297:                'epriv' => INT,
298:                'whocanviewe' => TEXT,
299:                ));
300:            $wca['journals']= $setting['whocanstart_journals'];
301:            if(in_array($bbuserinfo['usergroupid'], explode(','$wca['journals'])))
302:            {
303:                $check$DB_site->query_first("SELECT count(*) AS journal FROM ".TABLE_PREFIX."journals WHERE journalist_id='".$_POST['journalistid']."' OR journalist_id='".$bbuserinfo['userid']."'");
304:                if($check['journal']=="1")
305:                {
306:                    eval(print_standard_error('journalalrdyexists'));
307:                }
308:                else
309:                {
310:                    $nameformat=",'".addslashes($jname)."'"

thanks in advance for any help:D

Modin 07-01-2004 03:04 PM

Code:

'whocanviewj' => TEXT
you're missing a comma at the end of this line, it should look like

Code:

'whocanviewj' => TEXT,

Boofo 07-01-2004 03:05 PM

That's because you don't have an ending comma in line 295. It should be this:

PHP Code:

295:                'whocanviewj' => TEXT


Boofo 07-01-2004 03:05 PM

Great minds think alike it seems. ;)

Modin 07-01-2004 03:07 PM

we think just like the parser does ;)

AN-net 07-01-2004 03:24 PM

thanks:)

you guys are the php parsers i never had:D


All times are GMT. The time now is 11:12 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.01218 seconds
  • Memory Usage 1,733KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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