I'm having some trouble in exporting some data directly from phpMyAdmin. I'm selecting a table in phpMyAdmin, from a specific database, and then I'm exporting that table in Excel based CSV format.
The table I'm exporting has 2 columns in it:
Movie Name contains a name, such as Argo. No problems in the movie name. The corresponding entry for Description contains this:
That is, the WHOLE HTML block above is the Description value for that Argo record.
But when I export the above from phpMyAdmin, this is what I see for the Movie Name & Description combined:
Secondly, the CSV file that I output from phpMyAdmin puts the individual lines from the above block into separate Excel rows and columns. This is not what I want.
How can I export data from phpMyAdmin such that the whole Description block appears in just ONE excel cell, next to the corresponding movie name ?
And also, if possible (although not required), have the Description shown in normal HTML tags (like in the top most code block shown in this thread) ?
This is what I want:
How can I export from phpMyAdmin so that the output is in the above mentioned format ?
The table I'm exporting has 2 columns in it:
Code:
Movie Name | Description
Code:
<h2>Product Details</h2>
<ul>
<li><b>Actors:</b> Ben Affleck, Bryan Cranston, Alan Arkin, John Goodman</li>
<li><b>Directors:</b> Ben Affleck</li>
<li><b>Writers:</b> Chris Terrio</li>
<li><b>Producers:</b> Ben Affleck, Grant Heslov, George Clooney, David Klawans, Nina Wolarsky</li>
<li><b>Format:</b> AC-3, Blu-ray, Dolby, NTSC, Subtitled, Widescreen</li>
<li><b>Language:</b> English, Spanish</li>
<li><b>Subtitles:</b> Spanish, Portuguese, French</li>
<li><b>Subtitles for the Hearing Impaired:</b> English</li>
<li><b>Region:</b> Region A/1 (Read more about DVD/Blu-ray formats.)</li>
<li><b>Aspect Ratio:</b> 2.40:1</li>
<li><b>Number of discs:</b> 2</li>
<li><b>Rated: </b> <span class=""medSprite s_medR ""><span>R (Restricted)</span></span></li>
<li><b>Studio:</b> Warner Home Video</li>
<li><b>DVD Release Date:</b> February 19, 2013</li>
<li><b>Run Time:</b> 120 minutes</li>
</ul>
But when I export the above from phpMyAdmin, this is what I see for the Movie Name & Description combined:
Code:
Argo;<h2>Product Details</h2>
<ul>
<li><b>Actors:</b> Ben Affleck Bryan Cranston Alan Arkin John Goodman</li>
<li><b>Directors:</b> Ben Affleck</li>
<li><b>Writers:</b> Chris Terrio</li>
<li><b>Producers:</b> Ben Affleck Grant Heslov George Clooney David Klawans Nina Wolarsky</li>
<li><b>Format:</b> AC-3 Blu-ray Dolby NTSC Subtitled Widescreen</li>
<li><b>Language:</b> English Spanish</li>
<li><b>Subtitles:</b> Spanish Portuguese French</li>
<li><b>Subtitles for the Hearing Impaired:</b> English</li>
<li><b>Region:</b> Region A/1 (Read more about DVD/Blu-ray formats.)</li>
<li><b>Aspect Ratio:</b> 2.40:1</li>
<li><b>Number of discs:</b> 2</li>
<li><b>Rated: </b> <span class="medSprite s_medR "><span>R (Restricted)</span></span></li>
<li><b>Studio:</b> Warner Home Video</li>
<li><b>DVD Release Date:</b> February 19 2013</li>
<li><b>Digital Copy Expiration Date:</b> February 19 2015 (Click here for more information)</li>
<li><b>Run Time:</b> 120 minutes</li>
</ul>
How can I export data from phpMyAdmin such that the whole Description block appears in just ONE excel cell, next to the corresponding movie name ?
And also, if possible (although not required), have the Description shown in normal HTML tags (like in the top most code block shown in this thread) ?
This is what I want:
Code:
Argo | .....Complete Argo HTML here.....
Batman Begins | .....Complete Batman Begins HTML here.....
Flight | .....Complete Flight HTML here.....
Fight | .....Complete Fight HTML here.....