Home > syntax error > parse error syntax error unexpected t_lnumber

Parse Error Syntax Error Unexpected T_lnumber

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this joomla parse error: syntax error, unexpected t_lnumber, expecting t_variable or '$' site About Us Learn more about Stack Overflow the company Business Learn syntax error unexpected 3 t_lnumber more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Getting parse error: syntax error, unexpected T_LNUMBER in php? up vote 0 down vote favorite I am trying to insert serialize values into ac_services table but getting error: syntax error, unexpected T_LNUMBER in C:\wamp\www\db-setup\steps\db-install-script.php on line 559 $insert_ac_services = " INSERT INTO `ac_services` ( `id` , `name` , `desc` , `duration` , `unit` , `paddingtime` , `cost` , `capacity` , `availability` , `business_id` , `category_id` , `staff_id` ) VALUES ( 1, 'Default', 'this is default service.', 30, 'minute', 10, 15, 1, 'yes', 0, 0, 'a:1:{i:0;s:2:"1";}' ) ; "; mysql_query($insert_ac_services); I generated this php query by phpmyadmin. But not working, Any suggestion? Thanks... php database phpmyadmin parse-error share|improve this question edited Aug 5 '13 at 6:09 asked Aug 31 '12 at 13:44 Frank 81662445 add a comment| 4 Answers 4 active oldest votes up vote 6 down vote accepted You should escape the ". 'a:1:{i:0;s:2:\"1\";}' ) ; share|improve this answer answered Aug 31 '12 at 13:45 Sherlock 5,60962363 Some-times stacker rocks. I made it and my installer completed. Thanks so much... –Frank Sep 1 '12 at 6:32 add a comment| up vote 1 down vote Use a heredoc, so that you don't need to escape any quotes. $insert_ac_services = <<

Sign in Pricing Blog Support Search GitHub This repository Watch 16 Star 150 Fork 121 sebastianbergmann/phpunit-mock-objects Code Issues 16 Pull requests 5 Projects 0 Pulse Graphs New issue Parse error: syntax error, unexpected T_LNUMBER, expecting T_STRING in C:\php\PEAR\PHPUnit\Framework\MockObject\Generator.php(184) : eval()'d code on line 11 #62 Closed CloCkWeRX opened this Issue Jun 21, 2011 · 0 comments Projects None yet Labels None yet http://stackoverflow.com/questions/12216618/getting-parse-error-syntax-error-unexpected-t-lnumber-in-php Milestone No milestone Assignees No one assigned 2 participants CloCkWeRX commented Jun 21, 2011 Parse error: syntax error, unexpected T_LNUMBER, expecting T_STRING in C:\php\PEAR\PHPUnit\Framework\MockObject\Generator.php(184) : eval()'d code on line 11 With PHPUnit 3.5 / PHPUnit MockObject 1.0.9; I see fatal errors with the below test case: https://github.com/sebastianbergmann/phpunit-mock-objects/issues/62 'PHPUnit/Framework.php'; class MockObjectBugTest extends PHPUnit_Framework_TestCase { public function test() { $matcher = $this->getMock('ExampleMatcher', array('0')); $matcher->expects($this->once()) ->method('match'); } } // A simple mock class class ExampleMatcher { public function __construct($rp_id) { $this->rp_id = $rp_id; } public function match(CLS_address $address, CLS_address_rp $rp) { $rp->setRPID($this->rp_id); return $rp; } } Of course; this is just me being half asleep and passing in an invalid method name to the mock framework (I thought I was passing in arguments; doh). Unfortunately it results in a fatal error on code I can't see unless I get into the depths of the framework. An exception would be handy. From http://www.php.net/manual/en/functions.user-defined.php Function names follow the same rules as other labels in PHP. A valid function name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*. edorian added a commit to edorian/phpunit-mock-obje

Detected You currently have javascript disabled. https://forums.phpfreaks.com/topic/32630-solved-help-parse-error-syntax-error-unexpected-t-lnumber/ Several functions may not work. Please re-enable javascript to access full functionality. Solved Help Parse error: syntax error, unexpected T_LNUMBER Started by merebel, https://teamtreehouse.com/community/parse-error-syntax-error-unexpected-4-tlnumber-expecting-or-in-cxampphtdocsindexphp-on-line-3 Jan 03 2007 12:24 AM Please log in to reply 8 replies to this topic #1 merebel merebel Member Members 11 posts Posted syntax error 03 January 2007 - 12:24 AM I am getting this error and I am lost as to what is causeing it Parse error: syntax error, unexpected T_LNUMBER in /home/merebel/public_html/include/style2.php on line 63 syntax error unexpected $title "); } function print_header($title='Alderaan Base') { print(" $title

Home
Upcoming Events
Past Events
Photo Gallery
Join the Rebellion!
Costuming Resources
Forum
Members
Honorary Base Members

 

 

 

To Invite Alderaan Base to an eve

carrington 15,154 Points Parse error: syntax error, unexpected '4' (T_LNUMBER), expecting ',' or ';' in C:\xampp\htdocs\index.php on line 3 i put all the folders in the htdoc and i received this syntax error message 6 Answers PRO rtholen Pro Student 10,556 Points rtholen rtholen Pro Student 10,556 Points about 1 year ago index.php has an error in it. But we need to see the contents before we can help you. Please post the contents of index.php using the rules in the Markdown Cheatsheet link near bottom of this page. martina carrington 15,154 Points martina carrington martina carrington 15,154 Points 1y ago rtholen , here is my index.php code