Citizen_Insane
Senior Member
Ok, so I'm trying to setup a table that will print an unbroken string of characters in a formatted way. Here is my code:
where it says [echo "<table width....etc" ] I am retrieving a very long string (up to 5000 characters) of unformatted text that I need to format to fit inside a table. Just so I don't have to answer it, what I'm outputting are DNA sequences, that's why they're so long.
Does anyone know how to do this? I have the CSS code there, but it doesn't work in Firefox or Safari (and it needs to). Please help
<html>
<body>
<style type="text/css">
<?php
mysql_connect('localhost','root','') or die(mysql_error());
mysql_select_db('yddb') or die(mysql_error());
$selectnum=$isolate+1;
$query = "SELECT*FROM isolates WHERE db_num=$selectnum";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
echo "
";
echo $selectnum;
echo "
";
echo "Isolate #";
echo $row['db_num'];
echo "
";
echo "Name: ";
echo $row['name'];
echo "
";
echo "Sequence:
";
echo "<table width='10' border=1><td STYLE='word-wrap:break-word;width:10;left:0'>";
echo $row['seq'];
echo "</td>";
?>
</body>
</html>
where it says [echo "<table width....etc" ] I am retrieving a very long string (up to 5000 characters) of unformatted text that I need to format to fit inside a table. Just so I don't have to answer it, what I'm outputting are DNA sequences, that's why they're so long.
Does anyone know how to do this? I have the CSS code there, but it doesn't work in Firefox or Safari (and it needs to). Please help