mysql教程_connect('localhost','root','root');
mysql_select_db('abc');
mysql_query("set names 'gbk'");
$sql = "select a.itemid,a.lastpost,a.city,b.thumbpath from supe_spaceitems a left join supe_attachments b on a.itemid = b.itemid where a.picid>0 order by a.itemid desc limit 0,3";
$query = mysql_query( $sql );
while( $k = mysql_fetch_array( $query ) )
{
$str .= "";
}
|