Obtain the mysql Image path and display it to the web database. the picture is varchar id.1, and the value is c: \ mypic \ yyh.jpg echo & quot; & lt; tdwidth = '2016' & gt; & lt; imgsrc = $ title [picture] alt =\& quot; images \ & obtain the mysql Image path displayed on the webpage
In the database, picture is varchar id.1 and the value is c: \ mypic \ yyh.jpg.
Echo""; This section will not be written:
The code is as follows:
$ Titlesql = "select id, name, born, gender, identity_card, picture from myfamily ;";
?>
| Id |
Name |
Born |
Gender |
Identity_card |
Picture |
While ($ title = mysql_fetch_array ($ titleresult )){Echo"
";Echo"
| $ Title [id] | ";Echo"
$ Title [name] | ";Echo"
$ Title [born] | ";Echo"
$ Title [gender] | ";Echo"
$ Title [identity_card] | ";Echo"
| ";Echo"
";}Echo"
";
?>
------ Solution --------------------
Quotation marks are missing.
Echo"";