simply test mysql POST method by using
http://url/postdata.php?name=AAA&score=10000
database with request name and score will respond
connect your database through below
(example from : http://www.freewebmasterhelp.com/tutorials/phpmysql)
$user="username";
$password="password";
$database="database";
mysql_connect(localhost,$user,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="CREATE TABLE contacts (id int(6) NOT NULL auto_increment,first varchar(15) NOT NULL,last varchar(15) NOT NULL,phone varchar(20) NOT NULL,mobile varchar(20) NOT NULL,fax varchar(20) NOT NULL,email varchar(30) NOT NULL,web varchar(30) NOT NULL,PRIMARY KEY (id),UNIQUE id (id),KEY id_2 (id))";
mysql_query($query);
mysql_close();
반응형
'Study' 카테고리의 다른 글
mac osx lion java 6 (0) | 2013.01.08 |
---|---|
Finder에서 보기 안될때 (0) | 2012.11.19 |
jQuery Mobile Buttons (0) | 2012.10.23 |
cocos2d unable to load font (0) | 2012.10.22 |
SenchaSDKTools error after installation (0) | 2012.10.14 |