This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 低手请教: php里如何把搜索结果放到string里?for($i=0; $i<$num_abc; $i++) {
$link_id2=mysql_result($result, $i, "link_id");
$address2=mysql_result($result, $i, "address");
$state2=mysql_result($result, $i, "state");
$postcode2=mysql_result($result, $i, "postcode");
$pointer=$address2.",".$city.",".$state2.",Canada,".$postcode2;
echo $pointer;
}
请教如何放到string里 谢谢了
-zzzboy(GOal-gOal);
2006-8-1
{373}
(#3115174@0)
-
here$sql = "select * from tablename;";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result)) {
$link_id2=$row["link_id"];
$address2=$row[ "address"];
$state2=$row[ "state"];
$postcode2=$row[ "postcode"];
$pointer="$address2,$city,$state2.,Canada,$postcode2";
echo $pointer;
}
-yizhiyan(微笑看人间);
2006-8-1
{308}
(#3115192@0)
-
谢谢!
-zzzboy(GOal-gOal);
2006-8-1
(#3115278@0)