使用我的本地IP地址访问我的数据库mysql服务器
<?php
$col1='customerID';
$col2='state';
$conn = mysqli_connect('localhost','root','');
$db = mysqli_select_db($conn,'dsuclass_gopi595');
$sql = "select $col1,$col2 from customers";
$result = mysqli_query($conn,$sql);
echo "This is my local ip address 192.168.1.7";
?>
答案 0 :(得分:0)