How to store a database for sharing personal information, etc.
PHP Code
!--Code highlighting produced by Actipro Codehighlighter (freeware) http://www. codehighlighter.com/-->!--? phpclass indexaction extends youyax{public Function index () {head ER ("content-type:text/html; Charset=utf-8 "); Querying a two-dimensional array $data = $this--->select ("Select info from Personal_info"); $dat =array (); foreach ($data as $v) {$tmp =unserialize ($v [' info ']); $tmp [2]= $tmp [2]== "0"? " Male ":" Female "; $dat []= $tmp; } $this->assign (' data ', $dat); $this->display ("index.html"); } public Function Adds () {$arr []=$_post[' Per_name ']; $arr []=$_post[' per_age ']; $arr []=$_post[' Per_sex ']; $data [' Info ']=serialize ($arr); $this->add ($data, "personal_info"); $this->redirect ("Index/index"); }}?>
HTML Code
Welcome Youyax
Name |
Age |
Gender |
{data.0} |
{data.1} |
{data.2} |
------Solution--------------------
Ah, share?
------Solution--------------------
What frame is used?
------Solution--------------------
Take a look at TP AH