聊天室php&mysql(五)

第五個頁面name="changenick.php" <?   include "../signup/mysql.php"; //echo $userid; if($action=="ok") { $sql="select * from chat_user_list where userid='$nick'"; $result=mysql_query($sql) or die(mysql_error()); if(!$result) echo

聊天室php&mysql(四)

第四個頁面 name="index.php" <? include "../signup/mysql.php"; header("Expires: Sun, 28 Dec 1997 09:32:45 GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-Type: text/html; charset=${Charset}"); ?>

聊天室php&mysql(三)

第三個頁面 name="frame3.php" <? include "../signup/mysql.php"; //echo $userid; //echo $private; if($p)$p=1; else $p=0; if(($action="ok")and($p)){ $sql="select userid,id from chat_user_list where userid='$userid'"; $result=mysql_query($sql);

聊天室php&mysql(二)

//第二頁面 name="frame2.php" <? include "../signup/mysql.php"; header("Expires: Sun, 28 Dec 1997 09:32:45 GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-Type: text/html; charset=${Charset}");

聊天室php&mysql(一)

//第一個頁面  name="index1.php" <? include "../signup/mysql.php"; $time1=time(); //$userid=983530409; echo $n; if($n==1){ $userid=time(); $nick="g".$userid; $last_time=$userid; $sql="insert into chat_user (userid,id,last_time) values

BBS(php & mysql)完整版(八)

//完畢 wish you sucess!! # phpMyAdmin MySQL-Dump # http://phpwizard.net/phpMyAdmin/ # # 主機: localhost:3306 資料庫 : database # -------------------------------------------------------- # # 資料表的結構 'bbs_html' # CREATE TABLE bbs_html (    id

BBS(php & mysql)完整版(七)

//下面是  top.js               function KB_keepItInIE(theName,theWantTop,theWantLeft) { theRealTop=parseInt(document.body.scrollTop) theTrueTop=theWantTop+theRealTop

BBS(php & mysql)完整版(四)

//此頁面為 top.php <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <script language="JavaScript1.2" src="js/fw_menu.js"></script> <script

BBS(php & mysql)完整版(三)

//此頁面為php3.php <? include "signup/mysql.inc"; switch($part){    case "1" :$table="bbs_php";break;    case "2" :$table="bbs_mysql";break;    case "3" :$table="bbs_html";break;    case "4"

BBS(php & mysql)完整版(二)

//此頁面為look.php <? include "signup/mysql.inc"; $sql="select * from ".$table." where id='$id'"; $result=mysql_query($sql)or die(mysql_error()); $row=mysql_fetch_array($result); $number=++$row["number"]; $sql="update $table set number='$number'

組件+PHP+MYSQL的新聞發布系統

mysql var x:Number = 60; var y:Number = 30; System.useCodepage = true; function inposition(myobject:Object, mylabelname:String, x0:Number, y0:Number):Void { //返回標籤的位置和標誌 myobject.text = mylabelname; myobject.move(x0, y0);

ASP如何使用MYSQL資料庫

MYSQL資料庫以它短小、方便、速度快、免費等優點成為很多網站目前首選資料庫,但一般都是用PHP+MYSQL相結合來開發各種動態網頁面,其實ASP也可以使用MYSQL資料庫開發動態網頁面,小弟我也是剛剛學會,不敢獨享,所以特寫了這篇文章供大夥參考。  我的環境是WINDOWS98+PWS4.0+mysql-3.23.32-win+PHP4  必要的軟體:PWS4.0(呵呵,廢話)  mysql-3.23.32-win(這個是最新版的)  myodbc-2.50.36-dll(這個是最重要的,MY

社區(php&&mysql)二

function sdatetime($str){     $str=ereg_replace("-","/",$str);     $str=substr($str,5,strlen($str)-8);     return $str; } function reAnum($sid){ //羆萊絞計     $DROOT=getenv(

社區(php&&mysql)一

function cook_cooloff(){     global $PHP_SELF,$aid,$pgno;     setcookie("OPEN_LIST",0,time()+ 31536000);     Header("Location:$PHP_SELF?aid=$aid&pgno=$pgno");     exit; }

基於mysql的bbs設計(五)

6。bbsd和cq66伺服器端改造   bbsd中,關於使用者的模組應該比較好改,只要將寫.PASSWD檔案的操作換為 操作資料庫的UserManage類的成員函數即可,但可能要先判斷什麼資料更改, 要調用哪個函數。並行作業的一致性,則由資料庫的加鎖功能保證,mysql應該 支援這種的鎖吧。文章方面可能比較麻煩,也是將原來對檔案的操作轉換成操作 資料庫的BoardManage類的成員函數即可。

基於mysql的bbs設計(四)

5。版面模組設計   所謂分類,更多的是為telnet服務端考慮的,在cq66模式下,使用者可以按 照自己的意願進行分類,反正最後都是直接以版為基本單位訪問的。   對於版面文章的訪問,存放的時候以整篇文章為參數,文章的分塊由本層 完成,如果上層以塊為單位傳送,則在上層全部傳完,組合後,再傳參到本層 分解;在讀取 的時候,本層則以塊為單位訪問,如果上層要以全文為單位訪問 ,則在上層做合并 工作,本層不管。

基於mysql的bbs設計(三)

4。使用者模組設計   對於底層資料庫,調用mysql的C API函數來進行資料庫的修改,內部儲存 一定的狀態變數(例如使用者名稱,還是留給上一層完成?),對上一層,則提供 使用者管理的介面。   Class UserManage {   private:     char  myuserid[20]; // 使用者的id,未登陸前為空白    &

PHP+MySQL 購物車程式執行個體

mysql|程式|購物車 <? if(!$session && !$scid) { $session = md5(uniqid(rand())); SetCookie("scid", "$session", time() + 14400); } /* last number is expiration time in seconds, 14400 sec = 4 hrs */ class Cart { function check_item(

基於mysql的bbs設計(二)

3。資料庫設計   關鍵還是mysql的效率問題,合理分配mysql的記憶體,特別是table cache的 大小。另外,當系統突然掉電呢?mysql是否robust?   table的名字設計,採用一位首碼表明類型,全部用小寫表示(?),例如: 系統的資料庫,以s為前置,如使用者表:suser(sUSER 呢?),具體如下:   s :系統資料表,suser,sclass   m

基於mysql的bbs設計(一)

1。系統架構:   採用模組化思想,分為3層:   a。資料存放區層:使用mysql來存放bbs的所有資料,包括使用者資訊,     文章資料,使用者信件,使用者訊息,系統資料(?),關鍵問題:     資料庫的規劃,是否用檔案來輔助。   b。系統功能層:完成bbs的準系統,由多個並列模組組成,向下

總頁數: 2483 1 .... 1113 1114 1115 1116 1117 .... 2483 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.