¼¸ÖÖ³£ÓÃPHPÁ¬½ÓÊý¾Ý¿âµÄ´úÂë
PHPÁ¬½ÓÊý¾Ý¿âÖ®PHPÁ¬½ÓMYSQLÊý¾Ý¿â´úÂë < ?php
$mysql_server_name='localhost';
//¸Ä³É×Ô¼ºµÄmysqlÊý¾Ý¿â·þÎñÆ÷
$mysql_username='root';
//¸Ä³É×Ô¼ºµÄmysqlÊý¾Ý¿âÓû§Ãû
$mysql_password='12345678';
//¸Ä³É×Ô¼ºµÄmysqlÊý¾Ý¿âÃÜÂë
$mysql_database='mycounter';
//¸Ä³É×Ô¼ºµÄmysqlÊý¾Ý¿âÃû
$conn=mysql_connect($mysql_server_name,
$mysql_username,$mysql_password,
$mysql_database);
$sql='CREATE DATABASE mycounter
DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;
';
mysql_query($sql);
$sql='CREATE TABLE `counter`
(`id` INT(255) UNSIGNED NOT NULL
AUTO_INCREMENT ,`count` INT(255)
UNSIGNED NOT NULL DEFAULT 0,PRIMARY KEY
( `id` ) ) TYPE = innodb;';
mysql_select_db($mysql_database,$conn);
$result=mysql_query($sql);
//echo $sql;
mysql_close($conn);
echo "Hello!Êý¾Ý¿âmycounterÒѾ³É¹¦½¨Á¢£¡";
?>
¸´ÖÆ´úÂëPHPÁ¬½ÓÊý¾Ý¿âÖ®PHPÁ¬½ÓACCESSÊý¾Ý¿â´úÂë·½·¨ < ?
$conn = new com("ADODB.Connection");
$connstr = "DRIVER={Microsoft
Access Driver (*.mdb)};
DBQ=". realpath("data/db.mdb");
$conn->Open($connstr);
$rs = new com("ADODB.RecordSet");
$rs->Open("select *
from szd_t",$conn,1,1);
while(! $rs->eof) {
$f = $rs->Fields(1);
echo $f->value;
$rs->MoveNext();
}
?>
¸´ÖÆ´úÂëPHPÁ¬½ÓÊý¾Ý¿âÖ®PHPÁ¬½ÓMS SQLÊý¾Ý¿â´úÂë·½·¨
1.°²×°SQL·þÎñÆ÷²¢Ìí¼ÓPHPµÄMSSQLÀ©Õ¹
2.ʹÓÃÒÔÏ´úÂëÁ¬½Ó²¢²âÊÔ < ?php
$myServer = localhost; //Ö÷»ú
$myUser = sa; //̞
$myPass = password; //ÃÜÂë
$myDB = Northwind; //MSS
Ïà¹ØÎĵµ£º
2008-11-08 23:17
¹«Ë¾µÄ´úÀí·þÎñÆ÷ÓõÄÊÇsquid£¬»ùÓÚIPµØÖ·ºÍMACµØÖ·½øÐÐȨÏÞÑéÖ¤ÔÊÐí²¿·ÖÓû§·ÃÎÊInternet¡£ÎÞÄÎÁÐλ¸ßÊÖÃÇÔçÒÑͨÏþµÁÓÃIP¡¢MACµÄ·½·¨À´ÈƹýsquidµÄÏÞÖÆ¡£½üÀ´¿¼ÂǸÄΪÕʺÅÈÏÖ¤¡£
ÓÉÓÚͬʱÔÚά»¤Ò»¸öÓʼþ·þÎñÆ÷£¨qmail + vpopmail + mysql£©£¬ÓʼþÕʺÅÓÃmysql¹ÜÀí£¬ÄÚÍøÓû§ÈËÊÖÒ»ÓÊÏ䡣ΪÁ˱ãÓÚÓû§ ......
<?php
/*
* Created on 2010-3-11
* author:zhangfei
*ÎÒµÄÑéÖ¤ÂëÀà
*/
session_start();
class Check_Class{
public $h_img ;
public $c_back ;
public $c_front ;
//¹¹Ô캯Êý
function Check_Class(){
$h_img = imagecreate(100,30);
......
Ò»¡¢ ÒýÑÔ
¡¡¡¡PHPÊÇÒ»ÖÖÁ¦Á¿Ç¿´óµ«Ï൱ÈÝÒ×ѧϰµÄ·þÎñÆ÷¶Ë½Å±¾ÓïÑÔ£¬¼´Ê¹ÊǾÑé²»¶àµÄ³ÌÐòÔ±Ò²Äܹ»Ê¹ÓÃËüÀ´´´½¨¸´ÔӵĶ¯Ì¬µÄwebÕ¾µã¡£È»¶ø£¬ËüÔÚʵÏÖÒòÌØÍø·þÎñµÄÃØÃܺͰ²È«·½ÃæÈ´³£³£´æÔÚÐí¶àÀ§ÄÑ¡£ÔÚ±¾ÏµÁÐÎÄÕÂÖУ¬ÎÒÃǽ«Ïò¶ÁÕß½éÉܽøÐÐweb¿ª·¢Ëù±ØÐèµÄ°²È«±³¾°ÒÔ¼°PHPÌض¨µÄ֪ʶºÍ´úÂë-Äã¿ÉÒÔ½èÒÔ±£»¤Äã×Ô¼ºµÄwebÓ¦Óó ......
<?php
###########################################
#×÷Õß: Éòäò(S&S Lab) #
#E-mail:shenlian@hotmail.com ......