NLCJ Posted September 9, 2010 Share Posted September 9, 2010 Hello, I'm creating a program that analyzes information that is exported by another program. That program exports it in this way: Value1 Value2 Value3 Value4 Value1 Value2... In order to insert them in the database, I first have to know how many lines are inserted. They get send through HTML post. I already tried: $lines = explode("\n", $string); $number_lines = count($lines); But this always results in 1. How do I fix this? Regards, Chris Quote Link to comment Share on other sites More sharing options...
NLCJ Posted September 9, 2010 Author Share Posted September 9, 2010 I'm sorry, it seems that I've posted (again) in the wrong board. Won't happen again! Link to the topic in the right board (in case somebody finds this one): http://www.phpfreaks.com/forums/index.php/topic,309621.0.html 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.