It's simple:
$row = mysql_query($sql, $this->connection); Now in $ row there will be something like "Resource id # 56". And now I need to save this object to a file. Without using " mysql_fetch_array ", etc. So that I could later retrieve this query result from the file and feed it to the functions " mysql_fetch_array ".