close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Join Delanceyplace

Sign up to receive a free quote from a non fiction book every weekday.
From our sponsors
php 資料寫入資料庫
Mar 15th 2014, 20:57

我要將資料寫入資料庫 為何無法將資料寫入資料庫的資料表myfriend ? 哪裡有錯?

// 加入好友按鈕的發送頁面

echo
" <input type='button' value='" . _MD_ADD_FRIEND . "' onClick=\"window.open('" . $index_dir . "add_friend.php?uid=" . $uid . "&fid=" . $fid . "','addFriend','width=50,height=50')\" />\n";

==========================================================

//接收的頁面 寫入資料庫資料表 myfriend

<?php

//如果使用者有登入且有接收到兩個變數
if(($_GET['uid'] == $xoopsUser->getVar('uid')) && !empty($_GET['fid'])){
$select_sql =
"SELECT COUNT(*) FROM " .
$xoopsDB->prefix("myfriend") .
" WHERE uid='" . $uid . "' AND fid='" . $fid . "'";
?>

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 marccmpt 的頭像
    marccmpt

    信貸利率, 個人信貸, 小額信貸, 信貸試算, 信貸銀行, 信貸條件, 信貸比較, 中國信託信貸, 公教信貸, 信貸利率最低

    marccmpt 發表在 痞客邦 留言(0) 人氣()