Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PHP4 and this function
January 23, 2006, 1:31 am
rate this thread
$fetch = mysql_query($query, $this->connection) or
mysql_error(): supplied argument is not a valid MySQL-Link resource
the line that begins with $fetch is my problem. This was originally a
PHP5 script that I am retrofitting.
The $query is used all over, and it is really gumming things up.
Re: PHP4 and this function
No, this works in both PHP 4 and 5 as I use it all the time.
Ths function can only be used in an object as $this->connection refers to a
property called $connection within the current object. Have you checked to
see if $this->connection actually refers to a valid resource? Where did the
previous call to mysql_connect() store its result?
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum