akienghie09 Posted January 26, 2012 Share Posted January 26, 2012 Hi!, This is my sample part of my program.. $row['name'].",". $row['region'].",". $row['city'].",". $row['area'].",". $row['street'].",". $row['building'].",". $row['totalorders'].",". $row['totalgross'].","."<br>"; that the output is like this...name, region, city, area, street, building, totalorders, totalgross the output that I need is like this.."name","city","area","street","building","totalorders","totalgross", can you help me how can I make this output..?thanks and have a great day ahead! Link to comment Share on other sites More sharing options...
Ingolme Posted January 26, 2012 Share Posted January 26, 2012 Just add the quotes to the string. It's simple. '"' . $row['name'] . '", "' . row['region'] . '", "' ... ... Link to comment Share on other sites More sharing options...
Err Posted January 26, 2012 Share Posted January 26, 2012 Personally, I like to use the extra brackets around variables that are in strings, makes them easier to read: $str = "'{$row['name']}', '{$row['region']}', '{$row['city']}'"; Link to comment Share on other sites More sharing options...
akienghie09 Posted January 26, 2012 Author Share Posted January 26, 2012 Ingolme & Err, thank you for your help. It already work. Thanks again. Best Regards! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.