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. Link to comment https://forums.phpfreaks.com/topic/38645-solved-fputs-problem/page/2/#findComment-185674 Share on other sites More sharing options...
kenrbnsn Posted February 15, 2007 Share Posted February 15, 2007 Please repost the full script. Ken Link to comment https://forums.phpfreaks.com/topic/38645-solved-fputs-problem/page/2/#findComment-185676 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); } ?> Link to comment https://forums.phpfreaks.com/topic/38645-solved-fputs-problem/page/2/#findComment-185682 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. Link to comment https://forums.phpfreaks.com/topic/38645-solved-fputs-problem/page/2/#findComment-185700 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. Link to comment https://forums.phpfreaks.com/topic/38645-solved-fputs-problem/page/2/#findComment-186151 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.