my error appear:
Warning: mysql_db_query is deprecated; use mysql_select_db() and mysql_query() instead in C:\Inetpub\wwwroot\Rose\it\screen3.php on line 10

my coding:
$query = "select * from job";
$result = mysql_db_query ("login", $query);

the problem is how to solve that error. pls help..

    Well My advice is to use what it recommends instead of the function you are using currently. Why are you trying to login like that anyways? You should use the connect function as well since you don't query when you have no open connection. I strongly suggest you take up a MySQL/PHP tutorial since your methods here are incredibly odd.

      if maiza is seeing the error then most likely the script has already connected in a previous line that wasn't included in the post.

      mysql_db_query() is nice when your code is hitting a couple of different databases.

      rewrite the code thus:

      $query = "select * from job";
      mysql_select_db("login");
      $result = mysql_query ($query);

        thanks a lot brandon. it's ok already...

          Write a Reply...