Gnub Posted February 15, 2007 Author Share Posted February 15, 2007 Now using Fetch Array Gettype($row); returns nothing... This is silly, i was getting stuff not long ago. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted February 15, 2007 Share Posted February 15, 2007 Please repost the full script. Ken Quote Link to comment Share on other sites More sharing options...
Gnub Posted February 15, 2007 Author Share Posted February 15, 2007 <?PHP $filename = "todo.txt"; touch("$filename"); $file = fopen($filename, "w"); fwrite($file, ""); fclose($file); $sql = "SELECT * from <table> LIMIT 100,0;"; $db = mysql_connect("N/A", "UName", "Pwrd"); mysql_select_db("UName",$db); $result = mysql_query($sql,$db) or die(mysql_error()); while($row = mysql_fetch_array($result)) { Print_r($row); echo gettype($row); $filename = "todo.txt"; touch("$filename"); $file = fopen("$filename", "a"); fputs($file, $row['Operators']." , ".$row['PublicNote']." , ".$row['Email']." , ".$row['URL']." , ".$row['Include']." , ".$row['CCC']." , ".$row['Tod']." , ".$row[bCC]." , ".$row['Amex']." , ".$row['CDW']." , ".$row['BookingFee']." , ".$row['ABTA']." , ".$row['ATOL']." , ".$row['OfferID']." , ".$row['OtherBond']." , ".$row['OfferLink']." , ".$row['AccRef']." , ".$row['NAM']." , ".$row['Hotel']." , ".$row['Supplier']." , ".$row['Flights']." , ".$row['ACCOM']." , ".$row['Total']. "/n"); fclose($file); } ?> Quote Link to comment Share on other sites More sharing options...
Gnub Posted February 15, 2007 Author Share Posted February 15, 2007 I gotta run, work's over. will check tomorrow morning to see if anyone has come up with anything. Thanks for your helps guys. hope we can solve this. Quote Link to comment Share on other sites More sharing options...
Gnub Posted February 16, 2007 Author Share Posted February 16, 2007 Problem Solved. Thanks for your patience people. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.