Jump to content

[SOLVED] I think I am getting dummer...


Aravinthan

Recommended Posts

Hi guys,

 

Ok so I have this code:

$line1 =  "" .$row['shooting']. " " .$row['playmaking']. " " .$row['stickhandling']. " " .$row['checking']. " " .$row['marking']. " " .$row['hitting']. " " .$row['skating']. " " .$row['endurance']. " " .$row['penalty']. " " .$row['faceoffs']. "/n";
			 $line2 =  "" .$row['leadership']. " " .$row['strength']. " " .$row['potentiel']. " " .$row['consistency']. " " .$row['greed']. " " .$row['fighting']. " " .$row['click']. " " .$row['team']. " " .$row['main_position']. " " .$row['country']. " " .$row['handed']. "/n";
			 $line3 =  "" .$row['birth_year']. " " .$row['birth_day']. " " .$row['birth_month']. " " .$row['salary']. " " .$row['contract_lenght']. " " .$row['draft_year']. " " .$row['draft_round']. " " .$row['drafted_by']. " " .$row['rights']. "/n";
                 $line4 =  "" .$row['week_games']. " " .$row['week_goals']. " " .$row['week_assists']. " " .$row['week_points']. "/n";
                 $line5 =  "" .$row['month_games']. " " .$row['month_goals']. " " .$row['month_assists']. " " .$row['month_points']. "['/n";
                 $line6 =  "" .$row['record_goals']. " " .$row['record_assists']. " " .$row['record_points']. " " .$row['no_trade_switch']. " " .$row['two-way_switch']. " " .$row['player-team_option']. "/n";
                 $line7 =  "" .$row['status']. " " .$row['rookie']. " " .$row['considering_offer_data']. " " .$row['team_offering']. " " .$row['amount_time_spent_considering']. " " .$row['injury']. "/n";
                 $line8 =  "" .$row['line8']. "/n";
                 $line9 =  "" .$row['line9']. "/n";
                 $line10 =  "" .$row['line10']. "/n";
                 $line11 =  "" .$row['goal_streak']. " " .$row['point_streak']. " " .$row['total_gp']. " " .$row['suspended_game']. " " .$row['training']. " " .$row['weight']. " " .$row['height']. " " .$row['status_in_organization']. "/n";
                 $line12 =  "" .$row['best_streak_games']. " " .$row['best_streak_gwg']. " " .$row['best_streak_assists']. " " .$row['best_streak_points']. " " .$row['best_streak_goals']. "/n";
                 $line13 =  "" .$row['line13']. "/n";
                 $line14 =  "" .$row['name']. "/n";
                 $line15 =  "" .$row['line15']. "/n";
                 $line16 =  "" .$row['drafted']. "/n";
                 $line17 =  "" .$row['line17']. "/n";
                 $line18 =  "" .$row['line18']. "/n";
                 $line19 =  "" .$row['line19']. "/n";
                 $line20 =  "" .$row['attitude']. " " .$row['alternate_position']. " " .$row['nhl_rights']. " " .$row['injury_prone']. " " .$row['overral_draft']. "";
$write = "3500 $line1 $line2 $line3 $line4 $line5 $line6
$line7 $line8 $line9 $line10 $line11 $line12
$line13 $line14 $line15 $line15 $line17 $line18
$line19 $line20";
fwrite($file,$write);

 

But in the file, it puts /n insteald of a line break...

 

And I cant put my finger on it....

 

Thanks for your help,

Ara

Link to comment
https://forums.phpfreaks.com/topic/171407-solved-i-think-i-am-getting-dummer/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.