best bet is to put some error checking in.
function _check_db($query = '', $line = '')
{
if ( mysql_errno() )
{
echo "Error: Problem with DataBase : {$GLOBALS['db_database']}\n";
echo "Error: " . mysql_errno() . ':' . mysql_error() . "\n";
echo "Query: $query\n";
echo "Line : $l
I'm using this as a log on but it gives me this warning message:
Warning: Supplied argument is not a valid MySQL resource
/httpd/html/php2/login.php on line 27
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
On 18-May-01 Taline Makssabo wrote:
> This is a program i wrote to get some information at keep track with some
> stats. I am very new at this so bare with meI keep on getting this
> Warning:
>
> Warning: Supplied argument is not a valid MySQL result resource in
> /home/virtual/ppcu/home/htt
You forgot to select the database!
mysql_select_db($db_name);
-elias
http://www.eassoft.cjb.net
""Taline Makssabo"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This is a program i wrote to get some information at keep track with some
> stats. I am very ne
This is a program i wrote to get some information at keep track with some
stats. I am very new at this so bare with meI keep on getting this
Warning:
Warning: Supplied argument is not a valid MySQL result resource in
/home/virtual/ppcu/home/httpd/html/php2/stat.php on line 13
Warning: Suppli
5 matches
Mail list logo