insert mysql record with table format in a string then echo in a html

Posted by user1292042 on Stack Overflow See other posts from Stack Overflow or by user1292042
Published on 2012-03-27T03:45:13Z Indexed on 2012/03/27 5:29 UTC
Read the original article Hit count: 178

Filed under:
|

Ok, I have this code.

$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("juliver", $con);

$result = mysql_query("SELECT * FROM items");

while($row = mysql_fetch_array($result))
{
$hi1='<img src="'.$row['name'].'" />';  
$hi2= $row['title'];
$hi3= $row['description'];
$hi4= $row['link'];
}

Now, Im in a process of making those records above to display in a table view and that 4 row should be on one td and so the rest.

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript