This is not a Mysql issue but an PHP one. The function you are using
(mysql_db_query ?) is deprecated and should therefore not be used. Try
modifying your PHP script to use

mysql_select_db("test");
mysql_query("select * from tablename");

.. instead of

mysql_db_query("test","select * from tablename")

.. if mysql_db_query is what you're using.

Hope this helps,
Björn Swift

----- Original Message -----
From: "Robbie Newton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 12:53 AM
Subject: Warning: mysql is deprecated???


> Hello everyone.
>
> I am new to MySQL and am trying to setup a shopping cart using MySQL and
> PHP.
> They are files that I found online for free from Rosenet Internet
Services.
>
> The problem is that when I try to add a category for a product I get this
in
> return:
>
>
> Warning: mysql is deprecated; use mysql_select_db() and mysql_query()
> instead in (rootPath here)\cart\admin\addcategoryresponse.php on line 7
>
> Warning: Cannot add header information - headers already sent by (output
> started at c:\program files\apache
> group\apache\htdocs\angrycamel\cart\admin\addcategoryresponse.php:7) in
> (rootPath here)\cart\admin\addcategoryresponse.php on line 8
>
> What does depricated mean? I have searched the manual and the resources
> online but cannot find anything about it. Does it mean that the SQL
commands
> that are used in the php script are out dated and need to be changes
> to...( use mysql_select_db() and mysql_query() instead ) what the warning
> says???
>
> Any help would be greatly appreciated.
> TIA
>
> -Robbie Newton
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to