View Single Post
  #2 (permalink)  
Old 08-07-2006, 10:55 PM
TkTech TkTech is offline
Speaks fluent binary
 
Join Date: Jun 2006
Posts: 1,047
Last Blog:
Having trouble with yo...
Credits: 0
Rep Power: 16
TkTech is on a distinguished road
Send a message via MSN to TkTech
Default

Ehhhh, Dont see what this code is supposed to do, but it wont work with what you have
Code:
$db = mysql_connect($server,$username,$pass);
$query = "SELECT * FROM test";

$results = mysql_query($query);

while ($row = mysql_fetch_array($results)  //<-This $result is getting overwritten by the following
{
      $query = "SELECT * FROM test2";
       $results = mysql_query($query); //<-SO simply change to something else, ie $result2
}
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Reply With Quote