gg
当前位置: 首页 >> php >> 相关推荐

关于mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource的搜索推荐

源代码如下,不知道怎么改错? <?php require("config.php"); if(isset($_GET['id'])==TRUE){ if(is_numeric($_GET['id'])==FALSE){ $error=1; } if($error==1){ header("location:".$config_basedir); } else{ $validentry=$_GET['id']; } } else{ $validentry=0; } if($_POST['submit']){ $db=mysql_connect($dbhost,$dbuser,$dbpassword); mysql_select_db($dbdatabase,$db); $sql="INSERTINTOcomments(blog_id,dateposted,name,comment)VALUES(".$validentry.",NOW(),'".$_POST['name']."','".$_POST['comment']."');"; mysql_query($sql); header("Location:http://".$HTTP_HOST.$SCRIPT_NAME."?id=".$validentry); } else{ //codewillgohere } require("header.php"); if($validentry==0){ $sql="SELECTentries.*,categories.catFROMentries,categories". "WHEREentries.cat_id=categories.id"."ORDERBYdatepostedDESC"."LIMIT1;"; } else{ $sql="SELECTentri...

查看详情

搜索推荐
supplied argument is not a valid MySQL result resource in

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in 是什么原因?? ------------ SQL错误 ------------ 代码如下:&l...

mysql_fetch_array(): supplied argument is not a valid mysql result resource

登录代码老弹出这个。。我发现不了,求解。。(问题指向这个 if($row=mysql_fetch_array($result)){)(数据库里面就 id username pw email)代码奉上!注册这部分...

mysql_fetch_array(): supplied argument is not a valid MySQL result resource

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\myapacheweb\test\self_info.php on line 7mysql_connect("...

mysql_fetch_array(): supplied argument is not a valid MySQL result resource

mysql_connect("localhost","root","1"); $query="select id from computer where user ='test2'";$result=mysql_query($query);echo "tes...

mysql_fetch_array(): supplied argument is not a valid MySQL result resource

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\myapacheweb\test\self_info.php on line 7mysql_connect("...

mysql_fetch_array(): supplied argument is not a valid MySQL result resource

加料 没问题。退料就会出现错误提示。请假是哪里错了啊?各位帮忙了。谢谢。<?phprequire_once("../common/matFunction.php"); //引入入库函数表require_o...

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Apache\Apache2\htdocs\item\index\bb.php on line 4<...

求助mysql_fetch_array(): supplied argument is not a valid MySQL result resource

本人是初学者,遇到一个警告解决不了Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in X:XXXXXXXX\list.php on line...

求救:mysql_fetch_row(): supplied argument is not a valid MySQL result resource

<?phpfunction db_connect() { $result = new mysqli('localhost', 'root', '654321', 'smsprj'); //$result = new mysqli('localhost', 'roo...

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in

mysql_select_db($bbs_users,$mydb); $query_string="select user_id,user_level from bbs_users where username='$current_user_name'"; $db_data=...

mysql_fetch_row(): supplied argument is not a valid MySQL result resource,何人能解?

代码如下:<?php/* * Created on 2012-1-1 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code T...

PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource 很多网站多有这个问题,我也遇到此问题$query="insert into $wbh...

supplied argument is not a valid MySQL result resource和JS的一些问题

网页提示Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\Program Files\PHPnow-1.5.4\htdocs\bookshop\car...

总是出现mysql_fetch_array(): supplied argument is not a valid MySQL result resource

总是出现mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\的错误。请各位帮帮忙! $sql = "select * from `topic` order...

错误如下:Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in

if ($l_KeyWord!=""){ $l_sql1=" and info_title like '%".$l_KeyWord."%'";}if ($l_cata_id!=""){ $l_sql2=" and lid=$l_cata_id";}$l_result...

热门搜索 - TryCatch Copyright © 2012-2013 tc5u.com 版权所有