Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Warning: Mysql_fetch_array(): 9 Is Not A Valid MySQL Result Resource


I have just got a strange error when trying to construct my sql query using pagination:
Quote: Warning: mysql_fetch_array(): 9 is not a valid MySQL result resource in manage-buyers.php on line 54 Line 54 = PHP Code:




View Complete Forum Thread with Replies

Related Forum Messages:
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 /home/xswapco/public_html/techsupport/account.php on line 41

This is the error I get when I try to run this code:

View Replies !
Warning Mysql_fetch_array(); Supplied Argument Is Not A Valid MySQL Result Resource?
i am getting the following error with this bit of code? Warning mysql_fetch_array(); supplied argument is not a valid MySQL result resource? Code:

<?php
/* Connect to database */

$extra = 'blah'
$size= &#391;'
$paper= 'matte'

$db= mysql_connect("localhost", "", "");
mysql_select_db("", $db);


$sql="select type_id FROM type WHERE extra=".$extra." AND size=".$size. " AND paper=".$paper ;
$type_id=mysql_query($sql);
............

View Replies !
Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL Result Resource Code Error
im trying to access the 'update' time from my database by using the below code.

$result = mysql_query("SHOW TABLE STATUS FROM logtable;");
while($array = mysql_fetch_array($result)) {
print_r($array[Update_time]); // Will print information about each table stored in database

The only problem is I get this error. What am I doing wrong??

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

View Replies !
Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL Result Resource In /home/scaspco/public_html/testing/reviews.php On Line 41
I'm trying to outtput records from a mysql table and I get an error here

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/scaspco/public_html/testing/reviews.php on line 41
in

PHP Code:

<?php
$i = 0;
while ($result = mysql_fetch_array($query)) {
    if($i++ % 2) {
        $bgcolor = "category";
    } else {
        $bgcolor = "#DFE6EF";
    }
    print "<tr bgcolor="$bgcolor">";
    print "<TD>".$result['ASP_Name']."</TD>";
    print "<TD>".$result['Username']."</TD>";
...............

View Replies !
Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL Result Resource In /home/szauerne/public_html/sites/yourcapecoral/wizard/listings.php On Line 364.
PHP Code:

$number = mysql_query("SELECT * $housesTable WHERE house_id='".$select."'");
$row = mysql_fetch_array($number);

returns

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/szauerne/public_html/sites/yourcapecoral/wizard/listings.php on line 364.

View Replies !
Mysql_fetch_array :: Supplied Argument Is Not A Valid MySQL Result Resource
I've got a problem with mysql_fetch_array function. I have two function:

function db_query($dbh,$qw)
{
db_test($dbh);

$result = mysql_query($qw);

return $result;
}

function db_insert($dbh,$table,$what,$info)
{
db_test_table($dbh,$table);
$id=0;

$qw="insert into $table $what values $info";

$result = db_query($dbh, $qw);
return $result;
}

Then I have the following piece of code:

$result = db_insert($dbh, $table1, $what1, $info1);
$row = mysql_fetch_array($result);

The db_insert call workes fine, 'cause a new record is inserted into the table. The problem is that when I call mysql_fetch_array I got the following error:

"Supplied argument is not a valid MySQL result resource".

View Replies !
Mysql_fetch_array(): Supplied Argument Is Not A Valid Mysql Result Resource
i recieve this error from this part of the code:

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

it's returning a long text from the database which is about 200 characters long.

<?php
if ($_SESSION['is_town'] = 1){
$query = "SELECT usemap FROM town WHERE town_id = " . $_SESSION['townID'][0];
$db_result = mysql_query($query);
$db_usemap = mysql_fetch_array($db_result);
echo $db_usemap;}
?>

View Replies !
Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL Result
Here is my script:

<?php

$dbh=mysql_connect("localhost", "my_username", "my_password") or die ('No can do!');
mysql_select_db ("my_databasename");
$query = "SELECT * FROM contacts";
while($i = mysql_fetch_array($query)){
echo $i[first];
echo $i[last];
echo $i[email];
}
?>

Get this error message:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home2/my_username/my_domain/my_databasename/test.php on line 6.

View Replies !
Warning: Supplied Argument Is Not A Valid MySQL Result Resource
<?
Warning: Supplied argument is not a valid MySQL result resource
if (mysql_num_rows($result) >0 )
!Didnt have this problem before


session_start();

if ($username && $password)
{
// if the user has just tried to log in

$db_conn = mysql_connect("localhost", "*****", "*******");
mysql_select_db("micro_db.adf", $db_conn);
$query = "select * from users "
."where name='$username' "
." and pass=password('$password')";
$result = mysql_query($query, $db_conn);
if (mysql_num_rows($result) >0 )
{
// if they are in the database register the username
$valid_user = $username;
session_register("valid_user");
}
}
?>

View Replies !
What Does This Error Mean? Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL Result
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/public_html/index.php on line 32. What does this error mean? What's causing it?

View Replies !
Warning: Mysql_data_seek(): Supplied Argument Is Not A Valid MySQL Result Resource
Warning: mysql_data_seek(): supplied argument is not a valid MySQL result resource

View Replies !
Warning: Mysql_fetch_assoc(): Supplied Argument Is Not A Valid MySQL Result Resource
Im trying to create a login form that ask for login name and password. once submited, the form submits to the same page again but assigns the value 1 to the URL varible. An If statement gets the URL varible and begins to check if the login name and password is correct. See script below

Below starts a session. if the user session is not defined the display the login form....

View Replies !
Warning: Mysql_fetch_row(): Supplied Argument Is Not A Valid MySQL Result Resource
I up grade a module on my site and when i clicked on icon in admin panel it gave me this error-Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/vash1/public_html/includes/sql_layer.php on line 299 im dyslexic and i did search thru forums before i posted at least till my eyes got worse -any ideas.

View Replies !
How To Solve The Error: Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL Result
I keep getting this:

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

while($row = mysql_fetch_array($result, MYSQL_ASSOC))

what can i do? i still new in php.

View Replies !
Warning: Mysql_num_rows(): Supplied Argument Is Not A Valid MySQL Result Resource In *** On Line 9
I keep getting an error result saying:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in *** on line 9

Warning: Cannot modify header information - headers already sent by (output started at ***:9) in **** on line 12

I'm pretty new to PHP so I'm thinking its a problem with syntax. Any help is appreciated. Code is below.

<?PHP

$ni = trim($_POST['ni']);

require 'db_connect.php'

$sql = "SELECT * FROM $db_table WHERE ni = '$ni'";
$query = "mysql_query($sql) or die (mysql_error())";
if (mysql_num_rows($query) < 1) {

require 'db_close.php'
header("location: DESIRED LOCATION");
}
else{
require 'db_close.php'
header("Location: EXIT ");
}

?>

View Replies !
Service Provider Problem: Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL Result
Strange one this, I have checked the forum and tried everything I can that is related and it still won't work.

I keep getting the following error on all my code:

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

I have just moved service provider and the code worked perfectly on my old site but no longer works with my new provider the code is as below. Code:

View Replies !
Warning: Mysql_num_rows(): Supplied Argument Is Not A Valid MySQL Result Resource In /mounted-storage/
my code:

$username = mysql_real_escape_string($username);
$result= mysql_query("SELECT * from `admin_login WHERE username=".$username);
if (mysql_num_rows($result) != 0)
{
echo ("That Username is already being used. Please try a different username.");
}

I know that there is a row that has the same username as $username, but i keep getting an error like: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /mounted-storage/home23a/sub001/sc21473-GRUR/www/inphp/members/register.php on line 56 Line 56 being:

if (mysql_num_rows($result) != 0)

View Replies !
LEFT JOIN - Get The "Warning: Mysql_fetch_array(): Supplied Agrument Is Not A Valid MySQL Resource".
I am trying to merge results from two tables, but this is something I haven't done so far, so manybe my mistake will look stupid to Pro's. I get the "Warning: mysql_fetch_array(): supplied agrument is not a valid MySQL resource".

Here is my code:

$result = mysql_query("SELECT * FROM az_mustseethis LEFT JOIN az_articles ON az_mustseethis.art_id = az_articles.art_id WHERE az_articles.category = 'Must See This' ORDER BY art_id DESC LIMIT $from, $max_results",$connect);

Instead of adding the latest entry in the "az_mustseethis" table, I want to take it from the "az_articles" table, where it has already been added.

View Replies !
Warning: Mysql_fetch_row(): Supplied Argument Is Not A Valid MySQL Result Resource In /home/dyingtwi/public_html/functions/matchdb.php On Line 61
1: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/dyingtwi/public_html/functions/matchdb.php on line 61

2: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/dyingtwi/public_html/functions/playerdb.php on line 69

3: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/dyingtwi/public_html/functions/teamdb.php on line 71

View Replies !
Not A Valid MySQL Result Resource
I have a website which i have a login script for however I want to users to be able to have an account balance. I have set up a field for balance in the users table of my database however I am having problems fetching the correct row for each user. Code:

View Replies !
Mysql_num_rows(): Not A Valid MySQL Result Resource?
i'm getting three unusual errors which i can't figure out how to correct-- or even necessarily what's causing them. (note: not that you'd 'count' the lines, but these numbers might not match the code below as i've done some editing in between when i started this post and now) Code:

View Replies !
Not A Valid MySQL-Link Resource Warning
I am trying to find whats causing the following warning:

Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/php/public_html/mysql.class.php on line 15 Code:

View Replies !
Supplied Argument Is Not A Valid MySQL Result Resource
Before I get in trouble, I have searched extensively for this one, in the
PHP Docs, online etc.

I have a simple page:

<?php

$un="jim";
$pw="jim";
$db="localhost";

$link = mysql_connect($db,$un,$pw) or die("Could not connect: " .
mysql_error());

$sql2 = "SELECT * FROM eib.book ORDER BY bookid";
$op = mysql_query($sql2) ;
$num= mysql_numrows($op);

?>

When I run the page I keep getting this error:

Warning: mysql_numrows(): supplied argument is not a valid MySQL result
resource in C:Program FilesApache
GroupApache2htdocseibphpitemadd2.php on line 34

View Replies !
Warning: Mysql_close(): 14 Is Not A Valid MySQL-Link Resource
I have a script that opens a connection to the mySQl database and runs three queries in a row. The first SELECTs data from a table. The second INSERTs that data into another table. The third DELETEs that data from the first table.

The script works fine up to this point, but throws up this warning when I try to close the connection:

Warning: mysql_close(): 14 is not a valid MySQL-Link resource...

From what I have been able to find, this warning is a result of there not being a connection open to the database, but clearly this isn't true since the three queries to the database all run error/warning free.

Here's a simplified version of the code:

View Replies !
Mysql_free_result Return Error Saying Not Valid Mysql Result Resource
im trying to do a query which takes rows of large amounts of text data
and displays them one after another. the size of the fields is causing
the page to be massive in size. so to try and reduce this im trying to
use mysql_free_result to clear the contents from memory.

however its returning an error saying not valid mysql data when im
certain that it is.

is this because im using a while loop like this...?

($row = mysql_fetch_result($result)) {
mysql_free_result($result);
}

View Replies !
Supplied Argument Is Not A Valid MySQL Result Resource In /public_html
I'm pretty new to PHP and I'm trying to modify a script and all the time I keep getting this error: Supplied argument is not a valid MySQL result resource in /public_html/articles.php on line 162 Code:

View Replies !
Mysql_num_rows(): Supplied Argument Is Not A Valid MySQL Result Resource
I've got the following error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/wbdfdart/public_html/wbdfforum/verwijder.php on line 13

verwijder.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
include "connect.php";

if (isset ($cat) AND isset ($topic) AND isset ($message)) {
$query = "SELECT user FROM reply WHERE id='$message'";
$exec = mysql_query($query);
$result = mysql_fetch_array($exec);
$owner = $result["user"];

$moderator_check_query = "SELECT * FROM moderator WHERE category=$cat AND user=$myid";
$moderator_check_exec = mysql_query($moderator_check_query);
$moderator_result = mysql_num_rows($moderator_check_exec);

if ($moderator_result == 1 OR $owner == $myid) {
$moderator = 1;
}

else {
$moderator = 0;
}

if ($moderator == 1) {
$replydelete_query="DELETE FROM reply WHERE id ='$id'";
mysql_query($replydelete_query) or die(mysql_error());
$topicmineen_query="UPDATE topic SET replies='replies -1' WHERE id='$topic'";
mysql_query($topicmineen_query) or die(mysql_error());
echo "<script>location.href='index.php?cat=".$cat."&topic=".$topic."&page=".$page."'</script>";

}

else {
echo "<script>location.href='index.php?cat=".$cat."&topic=".$topic."&page=".$page."'</script>";
}}
?>

View Replies !
Search For DB - Mysql_num_rows(): Supplied Argument Is Not A Valid MySQL Result Resource
I thought for sure I had this query correct, but for some reason, it isn't working. I get this error:

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

I am working on a search for my DB. Nothing advance yet, just one input field for the search keyword. Here is my query:

View Replies !
Warning: Mysql_select_db(): Supplied Argument Is Not A Valid MySQL-Link Resource
For some reason im getting the error below

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:wwwapachehtdocsapplication.php on line 21

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:wwwapachehtdocsapplication.php on line 25

when trying to insert a form into a mysql table. Code:

View Replies !
Warning: Mysql_select_db(): Supplied Argument Is Not A Valid MySQL-Link Resource In E:htmldbconn.php On Line 4
I submitted the question about text files I decided to have a go with a database instead though Im having problems connecting to the Database. As a PHP novice Im not entirely sure where Im going wrong but I have been getting the following error:

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in E:htmldbconn.php on line 4
Can't select entries from table.
SELECT * FROM Entry ORDER BY Entry.entryDate DESC LIMIT 5
No Database Selected
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in E:htmldbconn.php on line 11

The code I'm using looks like this: ....

View Replies !
Retreive Data From PHPBB Tables - Mysql_num_rows(): Supplied Argument Is Not A Valid MySQL Result Resource
This is in regards to attempting to retreive data from PHPBB tables so that I can display 5 posts as news articles on my main home page. Code:

View Replies !
Mysql_fetch_array Error - Warning: 4 Is Not A MySQL Result Index
I have written a function to bulid a table of url links stored in MySQL. In my database I have two tables: tblLinkTypes and tblLinks. My Output should look like this:

Link Type1
Link Title2 URL2

Link Type2
Link Title1 URL1

However I get this error when the code gets to the bottom (see //errors here).
Warning: 4 is not a MySQL result index in /home/httpd/inc/dbWhiteWater.inc on line 275
Code:-

View Replies !
Warning: Mysql_fetch_row(): Supplied Argument Is Not A Valid MySQL Result
I removed the setcookie and ran the code and it shows this Warning.


Warning: mysql_fetch_row(): supplied argument is not a valid MySQL
result resource in /home/public_html/post1.php on line 77

This is the code again.

View Replies !
Warning: Mysql_num_rows(): Supplied Argument Is Not A Valid MySQL Result
I am building an aunction site but have an error on this line. The error is:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:Program FilesxampphtdocsAUNCTIOINindex.php on line 304 And like 304 is:

$num_auction = mysql_num_rows($result);

View Replies !
"Supplied Argument Is Not A Valid MySQL Result Resource"
this is one of the first scripts im writing completely by myself but its driving me crazy. the errors its returning are:

Quote: Warning: Supplied argument is not a valid MySQL result resource in c:apachehtdocsquiz_chap12_view.php on line 16

There are currently in the table: PHP Code:

View Replies !
Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid
When I run this script It says Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in blah blah.

<?
session_start();
include "db.php";
$username = $_SESSION['username'];
$result = mysql_query("SELECT * FROM users WHERE to='$username'");
while ($row = mysql_fetch_array($result)) { ?>

From: <? $row['from'] ?><br>
Subject: <? $row['subject'] ?><br>
Message: <? $row['message'] ?><br>
<? } ?>

View Replies !
Ldap_get_values() Stating That The Supplied Resource Is Not A Valid Ldap Result
I'm checking a user identity on a secure LDAP server using the following code:

$ldapconn = ldap_connect("ldaps://myserver.mycompany.ch", 636 )
or die( "Can't connect to LDAP" ) ;

$ldapresult = ldap_search( $ldapconn,"o=mycompany,c=ch","cn=".$name);

if( $ldapresult ) {
$entries = ldap_get_entries( $ldapconn, $ldapresult ) ;
if( $entries["count"] ) {
$ldapbind = ldap_bind( $ldapconn, $entries[0]['dn'], $pwd ) ;
if( $ldapbind ) {
echo "Connected: user exists, password checked<br>" ;
}
}

This works ok if I submit the right $name and $pwd

Then I'd like to retrieve some data from the specified user, say the givenName and sn but can't figure out a way to retrieve those values using ldap_read or ldap_get_values

For example:
$results = ldap_read($ldapconn, "cn=myname,o=mycompany,c=ch",
'(objectclass=person)', array( "givenname", "sn" ) ) ;
$firstname = ldap_get_values($ldapconn, $results, "givenname" ) ;
$lastname = ldap_get_values($ldapconn, $results, "sn" ) ;

This fails on the ldap_get_values() stating that the supplied resource is not a valid ldap result entry resource.

If I use something like:

$firstname = ldap_get_values($ldapconn, $ldapresult, "givenname" ) ;
$lastname = ldap_get_values($ldapconn, $ldapresult, "sn" ) ;

It fails too...

View Replies !
Warning: Rewind() Supplied Argument Is Not A Valid Stream Resource In...
I am implementing Iterator in a class, I have pretty much copied the
code from php.net on Object Iteration. Adding all the normal methods
for the task...rewind, current, next, etc.

I was attempting to add a seek method but am stymied by the above
warnin, as well getting a seek on index 0 (zero) to work.

public function __construct($contents) {
if ( is_array($contents)) {
if ( is_array($contents[1])) {
$this->cktl = $contents[1];
}
}
}

public function rewind() {

$cktl = rewind($this->cktl);
return $cktl;
}

public function current() {
$cktl = current($this->cktl);
return $cktl;
}

public function key() {
$cktl = key($this->cktl);
return $cktl;
}

public function next() {
$cktl = next($this->cktl);
return $cktl;
}

public function valid() {
$cktl = $this->current() !== FALSE;
return $cktl;
}

public function myseek($intPos) {
$myPos = 0;
$this->rewind();
while ( $myPos < $intPos && $this->valid() ) {
$cktl = $this->next();
$myPos++;
}
if ( !$this->valid() ) {
die("Invalid seek position");
}

return $cktl;
}

View Replies !
Warning: Fgets: Supplied Argument Is Not A Valid Stream Resource.
i have been using this code but it says that on line 69,76,85 there is an error:

warning: fgets: supplied argument is not a valid stream resource.

i did not know how to show you line numbers on the code so i have put the relevant line of code at the bottom. PHP Code:

View Replies !
Warning: Fread(): Supplied Argument Is Not A Valid Stream Resource
am trying to upload images in MySql using php. whenever I run the following code I get this message:

Warning: fread(): supplied argument is not a valid stream resource in C:webs estCNST ProjectsGenaral Upload FormfigUpload.php on line 6

config.php is where I assign the database, the user, and the password.
openDB.php is where the database is opened
closeDB.php is where the database is closed


<?php
include'phpFigures/config.php';
include'phpFigures/openDB.php';
include'phpFigures/assignValues.php';
if (isset($figpath)){
$figImage=addslashes(fread(fopen($figpath,"r"),filesize($figpath)));
$query = "INSERT INTO images(description, image) VALUES ('$figdescription', '$figImage')";

View Replies !
Counter - Warning: Fwrite(): Supplied Argument Is Not A Valid Stream Resource
I am trying to put one counter in my php with the next code:
<?php

$hitfile = "/admin/contador.txt";
if (!file_exists($hitfile)) {
$file = fopen($hitfile,"r+");
$hits = fread($file,filesize($hitfile));
fclose ($file);
}
else {
$hits = 0;
}
$file = fopen($hitfile,"w+");
fwrite ($file, ++$hits);
fclose ($file);
?>

but when i try to see the php page appears this error:

Warning: fopen(/admin/contador.txt) [function.fopen]: failed to create
stream: No such file or directory in /home/usuairo/pagina.php on line 9

Warning: filesize() [function.filesize]: Stat failed for /admin/contador.txt
(errno=2 - No such file or directory) in /home/usuairo/pagina.php on line 10

Warning: fread(): supplied argument is not a valid stream resource in
/home/usuairo/pagina.php.php on line 10

Warning: fclose(): supplied argument is not a valid stream resource in
/home/usuairo/pagina.php.php on line 11

Warning: fopen(/admin/contador.txt) [function.fopen]: failed to create
stream: No such file or directory in /home/usuairo/pagina.phpcontacto.php on
line 19

Warning: fwrite(): supplied argument is not a valid stream resource in
/home/usuairo/pagina.phpcontacto.php on line 20

Warning: fclose(): supplied argument is not a valid stream resource in
/home/usuairo/pagina.phpcontacto.php on line 21

View Replies !
Error :: Warning: Fclose(): Supplied Argument Is Not A Valid Stream Resource...
I moved my php page on another hosting company... an it says on error log:

[Sat Apr 21 14:21:22 2007] [error] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /home/ggteamro/public_html/index.php on line 169 ....

View Replies !
Fopen :: Warning: Fwrite(): Supplied Argument Is Not A Valid Stream Resource
I tried to store the file pointer returned by fopen as a session variable. I get a warning: fopen to open stream: HTTP wrapper does not support writeable connections. Thisis followed by a bunch of:

warning: fwrite(): supplied argument is not a valid stream resource

if (!isset($_SESSION['fh'])) {
$fh = fopen("http://www.mydomain.com/somedir/debug", "w");
$_SESSION['fh'] = $fh;
}
......
......
fwrite($_SESSION['fh'], "
some debugging text
msg: ".$msg."msg_type:
".$msg_type);

View Replies !
Deleting Records - "not A Valid Result Resource" Error.
I have two pages for Deleting the first is the selection page, lists the records with checkboxes next to them for the user to select and then a Delete button that passes to the second page. My first page shows up just fine. So here's a line from my first page just so ya can see the name i'm using for the checkboxes. PHP Code:

echo "<input type='checkbox' name='id[".$i."] value='".$arrHorses['pk_horse_id']."'>";

The second page is suppose to get info for which records to delete from the first page and execute such a query. Then display the name of the records that were selected and say they were successfully deleted. Its connecting to the database just fine. But I'm getting a "not a valid result resource" error. arg, seems to be the error I always get. Here's the important code for that page that I have thus far: PHP Code:

//store the Horse_ID passed from the previous page in a variable
$intDelete = $_POST['id'];

//Query to delete the record passed to it from the previous page
$strDeleteQuery = "DELETE FROM horses WHERE pk_horse_id = $intDelete";
..........

View Replies !
Not A Valid MySQL Resource Link?
I get this error:

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/.grable/vzoom/virtualzoom.net/include/functions.php on line 10 Code:

View Replies !
Mysql Error - Not A Valid Resource
On some sites i am getting this error:
mysql_fetch_array(): supplied argument is not a valid MySQL result resource

The fix seems to be using a '@':
@mysql_fetch_array()

Why is it some sites or versions of php require this character? Should i always use it?

View Replies !
Not A Valid MySQL-Link Resource
The last line of the fillowing code produces a message about mistake (not a valid MySQL-
Link resource): Code:

View Replies !
Not Valid Mysql Link Resource?
I am using a database class. it work fine for sometime but sometime it say invalid Mysql link resource and i dont know whats wrong of my code. Code:

View Replies !
MySQL Error - Supplied Argument Is Not A Valid MySQL-Link Resource
I am getting the error

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/server7/public_html/71/arranholloway/database4.php on line 7

I tested my code on local computer and there were no problems, the error message only appeared when I loaded it onto my web hosters server. I'm new to PHP so its probably something simple but any help would be appreciated.

View Replies !
PDF Upload To MYSQL: Not A Valid Stream Resource
I am writing a law firm client management system.  Part of my program allows me to upload a file to my website and to associate that file with a client so that the client can access the file over the web.

I have successfully been able to upload .doc files, .gif files, and other file types using the script that I will post below.  I have been successful in uploading files such as gif images and other small files.  When I try to upload larger files, specifically a 4 mb pdf file, I get the following error:

Warning: fread(): supplied argument is not a valid stream resource in /home/ddicicco/public_html/LMS/uploadtest.php on line 26

Warning: fclose(): supplied argument is not a valid stream resource in /home/ddicicco/public_html/LMS/uploadtest.php on line 28 code:

View Replies !
Paginating (mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL)
when I try to run my code it works..but sometimes it returns me these error :

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/dev/rob/SearchRND.php on line 44

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /var/www/html/dev/rob/SearchRND.php on line 65
PREV 10 NEXT 10; ( total)

it happens whenever I try to refresh the browser or even if I reached the end of the records..here's my code PHP Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved