• Home
  • Map
  • Email: mail@newbest.duckdns.org

Syntax error unexpected t constant encapsed string expecting or variable

In order to fix the error, you must escape the backslash itself, so it is not an escape character anymore, but a literal. Change $ pembanding= mysql_ query ( " select stok from produk where kode_ produk= " '. $ _ POST[ ' kode_ produk' ]. ' " " ) ; To $ pembanding= mysql_ query ( " select stok from produk where kode_ produk= ' $ kode_ produk' " ) ;. Is $ html- > ' div# sidebar' really what you wanted? Also, you can only use isset with variables ( or similar things such as array access), not function return values. Use empty instead. share| improve this answer. If you want to provide space then can use & nbsp; echo ' < span id= " time1" > '. ' < / span> - < span id= " title1" > '. ' < / span > < br> < br> ' ;. you are missing concatenation. with variables $ m, $ d, $ y value= \ " ". after all these three variables.

  • Fatal error lnk1107
  • System error 4097
  • Php fatal error uncaught error call to undefined function eregi
  • Syntax error in insert into statement visual basic 2010


  • Video:Syntax unexpected expecting

    Syntax variable unexpected

    Just to present another option, the heredoc syntax is quite nice for multi- line strings like this, e. a> < / td> < / tr> " ;. I think this should do the trick though. You don' t need to run echo inside the string ( in fact it' s a bad thing). You can however just use the variables as they are - which you did for part of it, but not the other part. mysql is deprecated you should use mysqli or pdo. Change $ db_ connection = mysql_ connect( " $ localhost", " $ root", " " ) ;. To $ db_ connection = mysql_ connect( $ localhost, $ root, " " ) ;. And one more thing you didn' t connect DB too. You' re incorrectly concatenating the string passed to echo, you can avoid this ( and make the code much cleaner IMO) by using PHP' s alternate syntax.