Linked Questions

0 votes
1 answer
181 views

I have an array like this : $data = [ ["firstname" => "Mary", "lastname" => "Johnson", "age" => 25], ["firstname" => "Amanda", "lastname" => "Miller", "age" => 18], ["...
Hamid hp's user avatar
-2 votes
1 answer
58 views

Is there any PHP code that could transform or convert these array into a CSV file? Array ( [0] => rubbish [1] => bad [2] => hate [3] => abandoned [4] => abused [5] => accused [6] => addicted [7] => ...
qwerty's user avatar
  • 1
0 votes
2 answers
9k views

Obviously it's not "\r\n",which only fits windows,and will cause ^M on linux
omg's user avatar
  • 141k
1 vote
1 answer
2k views

I am using the below syntax within my joomla article and I am in need of a way to add a php button (I know the syntax or this) - and on the button press event fire off exporting the SQL Query Results (...
Hot Love's user avatar
0 votes
1 answer
609 views

I am trying to export an array to csv, but my csv contains only one row with many fields (columns). I want to achieve to export into rows my data. My data looks like when I dump: array(2) { [0]=> ...
user348246's user avatar
0 votes
3 answers
345 views

I have an associative multidimensional (dynamic length of dimensions) array. It originally comes from JSON data, but I understand that just makes things harder so I convert it using json_decode($...
LWC's user avatar
  • 1,235
0 votes
2 answers
340 views

I have an array which is structured like this [cars] => Array ( [0] => 43063 [1] => 17306 [2] => 116078 ) [houses] => Array ( [0] =>...
user3172841's user avatar
-2 votes
2 answers
210 views

["Boxname:HH, X1:53.3, X2:106.6, Y1:33.300000000000004,Y2:59.947215189873425, PID:22, GENDER:MALE, Age:63,Bp_Systolic:120,Bp_Diastolic:80", "Boxname:HH, X1:53.3, X2:106.6, Y1:33.300000000000004,Y2:59....
divakar's user avatar
  • 1,379
-3 votes
2 answers
102 views

I'm trying to use 'for loop' and write directly to csv without inserting into database and export as csv file. <?php require_once('function.php'); for ($i=0; $i < 6000; $i++) { # code.....
Iamgisnet's user avatar
  • 189
0 votes
2 answers
130 views

The error message i am getting is with the headers. I am using mysqli_ i used mysql_ on a blank page to test it. When I put it into the click on my real page it told me I couldn't use mySql_ as it was ...
Cormac Hallinan's user avatar
0 votes
1 answer
132 views

I have a PHP script that query's a count of specific rows per user in a table. I then have the SQL query use "AS" to output the count under each user's respective count; like so: <?php $servername ...
Pietro Aretino's user avatar
0 votes
0 answers
89 views

I'm using a simple PHP script on Altervista provider to get data from a very big HTML table (more than 6300 rows) at this link. The problem is the "Maximum execution time of 30 seconds exceeded" ...
d.mercanti's user avatar
0 votes
0 answers
77 views

I'm preparing a CSV file to download. I know I'm nearly there as the link at the end of this code produces the right result. What I need to do and don't understand why it doesn't work, is create the ...
Chris Pink's user avatar
  • 2,157