Hàm get id của data vừa insert vào sql

Dùng hàm mysql_insert_id() để get id vừa được tạo.   <?php $con = mysql_connect(“localhost”, “peter”, “abc123”); if (!$con) { die(‘Could not connect: ‘ . mysql_error()); } $db_selected = mysql_select_db(“test_db”,$con); $sql = “INSERT INTO person VALUES (‘Børge’,’Refsnes’,’Sandnes’,’17’)”; $result = mysql_query($sql,$con); echo “ID of last inserted record is:… Read More

[Clone nội dung] Bật cho phép allow_url_fopen Home »Software »MultiPHP INI Editor dùng WHM

MultiPHP INI Editor for cPanel The Basic Mode section of this interface loads directive values from the php.ini file for your selected domain or home directory. Make your changes to the desired directives and click Apply. The system saves changes to the php.ini file, the user.ini file, and your .htaccess file. Notes: For security purposes, we strongly recommend… Read More