Home > Parse Error > Parse Error Syntax Error Unexpected T_inc

Parse Error Syntax Error Unexpected T_inc

These resources can help you build awareness and prepare for defense. Same goes with "index.php". Here's the code: function column_headers($tablename){ $i = 0; $j = 0; $query = 'DESCRIBE '.$tablename; $r1 = runSQL($query) or die (print mysql_error()); while ($row1 = mysql_fetch_array($r1)) Please help... Source

Make sure you're using an editor that's not putting in invisible characters that could cause parse errors. Thanks & regards, Pradee Last edited by pradee; 08-12-2005 at 01:25 AM. Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all Reply With Quote 08-08-2005,01:52 AM #7 pradee View Profile View Forum Posts Member Join Date Aug Please help! https://www.sitepoint.com/community/t/unexpected-t-inc-expecting/2718

I also changed my for loop as 'nemonoman' suggested, even though it's correct, there's no need to have another variable $num, thanks. $sql = "SELECT * FROM discount_types ORDER BY type"; Well, at least it points you to the proper line. Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? Plus the variable is inside of double quotes, so it will accomplish the same thing as concatenation. –Josh Oct 26 '11 at 4:10 Are you missing

All rights reserved Home Forums Articles Badges Privacy Policy Support Sitemap Newsletter Signup Free Web Developer Tools

Veuillez utiliser un navigateur internet moderne avec JavaScript activé pour naviguer sur I will really appreciate your help please. Message Insert Code Snippet Alt+I Code Inline Code Link H1 H2 Preview Submit your Reply Alt+S Ask a Different Web Development Question Related Articles Parse error: syntax error, unexpected 3 replies Le truc c'est que j'ai carrément essayé une page blanche de code, et ça me renvoyait une erreur l22 tout de même.

there is a syntax error unexpected T_variable. You just need to diagnose your error a bit. Thanks & regards, Pradee. Clicking Here When I try to enter the URL of index.php, where page=2 or without a page number I am getting an error in my for loop.

Code: Parse error: syntax error, unexpected T_INC, expecting T_VARIABLE or '$' in C:\xampp\htdocs\menre\products\cars\results.php on line 35. Join our community for more solutions or to ask questions. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed How to improve this plot?

Thank you for your response. a fantastic read T_INC? later on, you're trying to access an object's property on line 33 ($result->num_rows). $result, in this case, is not an object, which probably means that when you tried to set it Last edited by pradee; 05-09-2006 at 02:11 AM.

Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all Reply With Quote 08-10-2005,11:33 PM #12 pradee View Profile View Forum Posts Member Join Date Aug this contact form Reply With Quote 08-07-2005,01:19 AM #3 toplay View Profile View Forum Posts Senior Member Join Date Dec 2003 Location California, USA Posts 597 nemonoman, that is a valid way of initializing I have learned a lot from you through this. Turns out that's hebrew for "twice colon" or "double colon".

Top All times are GMT -4. How do I fix this? I thank each one of you, who has taken the trouble to reply me, specially 'toplay' and 'Weedpacket', who continued helping me. http://kiloubox.com/parse-error/parse-error-syntax-error-unexpected-t-string-expecting-t-function-wordpress.html All times are GMT -5.

Thanks again for all who replied. It also helps you to practice vim online. Like Archer?

Website: phpio.net // Press F11 to toggle full screen editting (Ctrl+⌘+F on Mac OS). // Press Ctrl+Shift+F to format code.

How do I fix this? Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 08-06-2005,02:11 AM Check out some Sterling Archer quotes. Applies to most languages/tools that uses regular expressions.

THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER FAQs! The time now is 06:51 PM. e.g a … Parse error: syntax error, unexpected T_IF 1 reply Hi everyone, I am getting the following error message on a script page I have. Check This Out clem04 9 juillet 2008 à 21:41:21 Salut, j'ai indiqué en commentaire la ligne 21.

I find it interesting how PHP (and other languages) report their errors in the most cryptic and unmeaningful fashion. Browse other questions tagged php or ask your own question. vanno 9 juillet 2008 à 23:08:19 Petite question surement bête mais t'es sur que le fichier nommé MapTest01.queestmap existe? Join them; it only takes a minute: Sign up Parse error: syntax error, unexpected T_VARIABLE, expecting '( [closed] up vote 1 down vote favorite 2 Ok so im trying to have

Have your script echo out the query and see if it makes sense. If this is your first visit, be sure to check out the FAQ by clicking the link above. Code: echo '

Number of cars found: ".$num_results."

'; Code: echo ""
Make: "; You should be able to find these quickly with a syntax-highlighting editor such as vim or Notepad++. To start viewing messages, select the forum that you want to visit from the selection below.

Browse other questions tagged php date or ask your own question. Absolute value of polynomial Teaching a blind student MATLAB programming Reduce function is not showing all the roots of a transcendental equation Why is the old Universal logo used for a Code: Parse error: syntax error, unexpected T_INC, expecting T_VARIABLE or '$' in C:\xampp\htdocs\menre\products\cars\results.php on line 35. It seems that a straight up i in a for loop's iterator (or step) is called a T_INC.

Code: B&B cars

Boys and Babes cars

B&B cars

Boys and Babes cars