Home >Backend Development >PHP Tutorial >php查询mysql表字段输出,该如何解决
php查询mysql表字段输出
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php $connect = mysql_connect('127.0.0.1', 'root', '123456');mysql_select_db('name', $connect);$sql = "select tel from user";$query = mysql_query($sql);$dtp = new DedeTemplate();$dtp->Assign('carts',$carts);$dtp->LoadTemplate(_PLUS_TPL_.'/user.htm');$dtp->Display();exit;?>