0
當我在MySQL
中使用SELECT
時,是否可以重新定義行名?重新定義行名
$query = mysql_query("SELECT posts.id AS the_post_id FROM posts");
while($row = mysql_fetch_array($query)){
// I call the ID with `the_post_id` and not `id`
echo $row["the_post_id"];
}
哈哈,你確定嗎?真的不適合我:))那麼我會再次看看我的代碼 – Adam 2011-05-21 09:48:41
哈哈它的工作我只是沒有看到它pff xD – Adam 2011-05-21 09:50:14
哈哈好吧:) – 2011-05-21 09:51:15