Home > Parse Error > Parse Error Syntax Error Unexpected T_constant_encapsed_string In Mysql

Parse Error Syntax Error Unexpected T_constant_encapsed_string In Mysql

Windows is missing in GRUB! if (λ x . That, too. Can a nuclear detonation on Moon destroy life on Earth? have a peek here

apt-get how to know what to install more hot questions default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life Join them; it only takes a minute: Sign up syntax error, unexpected 'mysql_connect' (T_STRING) [closed] up vote 1 down vote favorite 1 I need help with an error on my page All you have to do is to call it if mysql_query() returns FALSE: $query = "SELECT user_name FROM Customers"; $result = mysql_query($query); if( $result==false ){ die(mysql_error()); } Furthermore, mysql_fetch_array() returns FALSE 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 http://stackoverflow.com/questions/22052768/php-mysql-parse-error-syntax-error-unexpected-t-string-on-line-55

share|improve this answer answered Feb 5 '14 at 22:38 Flixer 747415 Ur awesome (thanks). Absolute value of polynomial Reduce function is not showing all the roots of a transcendental equation Notation for lengths I am designing a new exoplanet. Trevor Zucker 06/14/2012 06:07PM Re: Parse error: syntax error, unexpected T_STRING ? Username: '.$username.' | Password: '.$pass.' | Email: '.$email.' | Full name: '.$name.'

Please try again later.

'; } } else { ?> Register

What is the possible impact of dirtyc0w a.k.a. "dirty cow" bug? db_connect(); db_select(); $sql = "SELECT cat_id, cat_name FROM ehamfest_categories ORDER BY cat_name"; $rs = mysql_query($sql); while($row = mysql_fetch_array($rs)) { echo "

While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers. more hot questions default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? http://stackoverflow.com/questions/21590083/parse-error-syntax-error-unexpected-mysql-select-db-t-string-expecting Passing different value (link value) from VF page to VF component and display it on screen Digital Alarm Clock Why is the old Universal logo used for a 2009 movie?

add a comment| 2 Answers 2 active oldest votes up vote 2 down vote you are missing '=' sign $res = mysql_query($sql) or die(mysql_error()); share|improve this answer answered Apr 5 '14 Upper bounds for regulators of real quadratic fields What does the image on the back of the LotR discs represent? Why did they bring C3PO to Jabba's palace and other dangerous missions? Why shared_timed_mutex is defined in c++14, but shared_mutex in c++17?

asked 3 years ago viewed 5110 times active 5 months ago Linked 1523 Why shouldn't I use mysql_* functions in PHP? 0 Could someone tell me what is causing the T_STRING http://stackoverflow.com/questions/7061426/parse-error-syntax-error-unexpected-t-string-thrown-in-previously-working-co How do you say "you all" in Esperanto? Glossy material rendering black, in a scene with environment and emission lighting How do I "Install" Linux? "Have permission" vs "have a permission" Is it illegal to DDoS a phishing page? How do creatures affected by Compelled Duel or Bear Totemic Attunement know who to attack?

Trevor Zucker 06/14/2012 04:58PM Re: Parse error: syntax error, unexpected T_STRING ? navigate here To start viewing messages, select the forum that you want to visit from the selection below. Barry Galbraith 06/14/2012 07:31PM Sorry, you can't reply to this topic. Browse other questions tagged php mysql sql or ask your own question.

php mysql share|improve this question asked Aug 15 '11 at 3:19 Jonathan 12 closed as too localized by HamZa, andrewsi, K3N, Soner Gönül, Tilak Jun 20 '13 at 5:29 This question Help! If you insist on keeping it in the while-condition you have to use parentheses -> die( mysql_error() ) share|improve this answer answered Aug 15 '11 at 3:26 wonk0 6,52611212 http://back2cloud.com/parse-error/parse-error-syntax-error-unexpected-t-string-expecting-t-constant-encapsed-string.php PHP usually gives you syntax errors in this way: the line BEFORE the reported line is the one that has the actual problem.

Barry Galbraith 06/14/2012 05:42PM Re: Parse error: syntax error, unexpected T_STRING ? Well, changing something made it work no more. If you choose PDO, here is a good tutorial. –tereško Apr 12 '13 at 21:00 add a comment| 3 Answers 3 active oldest votes up vote 5 down vote $mysql_db =

powered by phorum Content reproduced on this site is the property of the respective copyright holders.

Thank you, Chris Code: case "CreateCategory": echo "

Name:
Description:
Parent Category: