View Single Post
Old Nov 22nd, 2006, 9:29 PM   #4
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 769
Rep Power: 3 Jimbo is on a distinguished road
this is a code excerpt I had laying around:
        $query = "SELECT contact FROM Contacts WHERE user = " . $this->id;
        $result = mysql_query($query, $this->link);
        if(!$result)
          throw new MySQLException("MySQL Error: " . mysql_error(), $query);
        $this->contactIDs = array();
        while($row = @mysql_fetch_array($result))
          array_push($this->contactIDs, $row[0]);
and it works fine. If I get a chance Friday, I'll try to look through your code again...
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote