从PHP打印MySQL查询结果

时间:2014-03-07 22:35:48

标签: php mysql

我正在尝试从表中获取一些数据并打印或仅使用数据。 没有做到两个......

$con=mysqli_connect($MySQL_Host,$MySQL_User,$MySQL_Password,$MySQL_DB);

function echo_func_test ($db_con,$INPUT_IndustryName){
$result = mysqli_query($db_con,"SELECT ID FROM Industries where IndustryName = '$INPUT_IndustryName'");
//$Data = mysql_fetch_row($result);
var_dump ($result);

}

$IndustryName = Utilities;
echo_func_test($con,$IndustryName);

=================

the output is:
mysqli_result::__set_state(array(
   'current_field' => NULL,
   'field_count' => NULL,
   'lengths' => NULL,
   'num_rows' => NULL,
   'type' => NULL,
))  root@virtual-dev:/home/ftpadmin/FirstPHP2# php Scripts/main.php

我做错了什么?

0 个答案:

没有答案
相关问题