已解决问题
谷歌用户在2015.04.05提交了关于“中国海洋大学php链接mysql ajax”的提问,欢迎大家涌跃发表自己的观点。目前共有3个回答,最后更新于2024-06-10T07:58:51。<metacharset="utf-8"/>
<?php
$con=mysql_connect('localhost','root','root');
mysql_query('useshop',$con);
mysql_query('setnamesutf8',$con);
$res=mysql_query('selectcount(id)fromgoods');
$m=Math.floor(Math.random()*($res)+1;
echo$m;
?>
错误为:Parseerror:syntaxerror,unexpected';'inD:\phpStudy\WWW\work\chu_li.phponline9
怎么解决?
我想链接**库随机取出每一行内容再把每一个字段分开要怎么弄啊?我在另一个页面用ajax获取这些**
希望大家能够帮助她。详细问题描述及疑问:
<metacharset="utf-8"/>
<?php
$con=mysql_connect('localhost','root','root');
mysql_query('useshop',$con);
mysql_query('setnamesutf8',$con);
$res=mysql_query('selectcount(id)fromgoods');
$m=Math.floor(Math.random()*($res)+1;
echo$m;
?>
错误为:Parseerror:syntaxerror,unexpected';'inD:\phpStudy\WWW\work\chu_li.phponline9
怎么解决?
我想链接**库随机取出每一行内容再把每一个字段分开要怎么弄啊?我在另一个页面用ajax获取这些**
期待您的答案,千言万语,表达不了我的感激之情,我已铭记在心 !