View Single Post
Old 03-23-2008, 06:50 AM   #6 (permalink)
vginov
Junior Member
 
Join Date: Mar 2008
Posts: 6
Default Re: I need the PHP code to display in the proper place in a table

Hi everyone

Here is the final code i was expecting. I sincerely thank psychdev for his constant help with my need


<html>
<head><title>testing the Display</title></head>
<body>
<?php
$database="ginsoft";
mysql_connect ("localhost", "root", "");
@mysql_select_db($database) or die( "Unable to select database");
$result = mysql_query( "SELECT * FROM movie LIMIT 10" )
or die("SELECT Error: ".mysql_error());
$num_rows = mysql_num_rows($result);
print "There are $num_rows Movies List avialbe.<P>";
print "<table>";
/*print "<tr>";
print "<td>Title</td>";
print "<td>note</td>";
print "<td>link</td>";
print "</tr>"; */
while($row = @mysql_fetch_array($result))
{
print "<tr>";
print "<td><img src=images/cor1.gif></td>";
print " <td background=images/title.gif>".$row[title]."</td>";
print "<td><img src=images/cor2.gif></td>";
print "</tr><tr>";
print "<td><img src=images/lborder.gif></td>";
print "<td>".$row[note]."</td>";
print "<td><img src=images/rborder.gif></td>";
print "</tr><tr>";
print "<td><img src=images/cor3.gif></td>";
print "<td align=center background=images/link.gif>".$row[link1]."<br>".$row[link2]."<br>".$row[link3]."</td>";
print "<td><img src=images/cor4.gif></td>";
print "</tr>";
}
print "</table>";
?>

</body>
</html>


The code in red color is the exact need of mine. I post the code here so that it may be useful or some one who is looking for a code similar to mine.

Now I need a code which can display the image from the database to the browser. If any one can please help me thing this

Thanks a lot
vginov is offline   Reply With Quote
Sponsored Links