Re: Update still not working
| From: | Jayme Jeffman Filho | Date: | Thu, 03 Aug 2000 02:22:23 +0000 |
| Subject: | Re: Update still not working | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-1743@lists.php.net to get a copy of this message | ||
You must check with your ISP if the user your are using for connect to the
database have suficient rights to do the task. It seems you are not using
any user logged to MySQL .
Jayme.
-----Mensagem original-----
De: Nashirak Bosk <nashirak@mindspring.com>
Para: php-db@lists.php.net <php-db@lists.php.net>
Data: Quarta-feira, 2 de Agosto de 2000 21:52
Assunto: Re: [PHP-DB] Update still not working
>Ok well. Thank you Mr. Vincent that little mysql_error() trick was what
the
>doctor ordered. The error that it gets back is as follows:
>
>Access denied for user: '@localhost' to database 'database'
>
>OK now that I know this how do I deal with it. I am not very good with
>security stuff. I know that the server is running on Linux and that the 2
>scripts that I am running are in a protected directory. Any thoughts
>anybody?
>
> Nashirak
>P.S. Thanks for the great feedback
>
>
>
>
>"Craig Vincent" <webmaster@jazzmonkey.com> wrote in message
>news:FGELJKGOOBDMPNAOPBIMKENLFHAA.webmaster@jazzmonkey.com...
>> > $query = "UPDATE $table SET Monday = '$mond', Tuesday =
>> > '$tuesd' ,
>> > Wednesday = '$wedd' , Thursday = '$thurd' , Friday =
>> > '$frid' , Saturday
>> > = '$satd' WHERE Number = $numb";
>> >
>> > MYSQL_QUERY ($query);
>>
>> The next line put
>>
>> echo mysql_error();
>>
>> If that produces an error message it might help you in your quest to
>solving
>> this problem.
>>
>> Sincerely,
>>
>> Craig Vincent
>> -------------------------
>> Senior Programmer
>> Jazzmonkey Media Inc.
>> http://www.jazzmonkey.com
>> -------------------------
>>
>>
>>
>> --
>> PHP Database Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
>> For additional commands, e-mail: php-db-help@lists.php.net
>> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>>
>
>
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
>For additional commands, e-mail: php-db-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>