mysql - Php Echo Concatenation -


I have a large table to put in the loop, but I find it difficult to add. How can I add multilines with more?

  & lt ;? Php $ dbhost = 'xxxx'; $ Dbuser = 'xxxx'; $ Dbpass = 'xxxx'; $ Dbname = 'xxxx'; $ Conn = mysql_connect ($ dbhost, $ dbuser, $ dbpass) or die ('Error connecting to mysql'); Mysql_select_db ($ dbname, $ conn); $ Result = mysql_query ("select from * table", $ conn); While ($ line = mysql_fetch_array ($ result)) {echo '& lt; Tr align = "center" & gt; & Lt; Td width = '200' & gt; . Htmlspecialchars ($ line ['Picturedata']) '& Lt; / TD & gt; '; Echo & lt; Td width = "700" & gt; & Lt; H1 & gt; '. Htmlspecialchars ($ line ['name']. '& Lt; / td & gt;';}? & Gt;  

I get a syntax error, unexpected ';'

Post this line in ['name'] :

Gt; ";

should be

  echo" & lt; td width = '700' & gt; & lt; h1 & gt; Htmlspecialchars ($ line ['name']). "& Lt; / td & gt;";  

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -