使用phpMyAdmin并运行以下查询,我获得了19个寄存器:
SELECT * FROM trayecto tr, lugar lu WHERE idAeropuerto = '3' AND tr.idLugar = lu.idLugar GROUP BY tr.idAeropuerto, tr.idLugar ORDER BY lu.nombre
但是,在获得数据抛出和PHP调用的网站上运行这个查询,我只会得到18个寄存器(除了最后一个在数据库中输入)。
$q=$_GET["q"];
include('init_bd.php');
$sele
我想在本地系统(localhost)中运行PHP脚本,并将数据存储在服务器数据库中。通过PHP脚本从本地主机连接到远程mysql数据库时出现错误。
Warning: mysql_connect(): Access denied for user 'XXXX'@'ip address' (using password: YES) in E:\xampp\htdocs\New\example\include\config.php on line 13
我试着用
$con= mysql_connect("example.com:3306","