Jump to content

Getting the good info from database


Sorrow

Recommended Posts

Hello guys here is my problem. When i get the information from the database and put it in a <textarea> to modify it, every time there is the apostrophe ' sign everything after the sign doesn't show up ex: "Phpfreak's website is cool" the output that i get is "Phpfreak".

How can I get the entire text to show??

 

Here's my code:

<?php

include 'opendb.php';
$currIndex = $_GET['index'];
$query  = "SELECT * FROM Trailers where T_index = $currIndex";
$result = mysql_query($query);


while($row = mysql_fetch_array($result, MYSQL_ASSOC))


{


    echo " 	<form action='process_modificationT.php?index=$currIndex' method='post'><table border = '0' ><tr>
<td> Movie Title: <td> <input name='TTitle' type='text' size='50' value = '{$row['T_Title']}'> <br><tr>
<td>
Synopsis :<td> 

<textarea name='TSynopsis' cols='100' rows='10'>{$row['T_Synopsis']}</textarea><tr>
<td>Movie Case Link: 
<td> <input name='TCase' type='text' size='100' value = '{$row['T_Case']}'>
<br /><tr>

<td>Trailer  Link: 
<td> <input name='TLink' type='text' size='100' value = '{$row['T_Link']}'>
<br /><tr>
<td>
<td><td><input type='submit' align='right' value='Modify Trailer'>

</table>
</form>

";

Link to comment
https://forums.phpfreaks.com/topic/121888-getting-the-good-info-from-database/
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.