View Full Version : upload database to webhost
03-08-2007, 08:34 AM
I dont know how to upload database in my localhost to webhost . I only know to backup database into a sql file , and then upload to phpMyAdmin in webhost . Can i do it by PHP?
And can i use data from Excel file to insert into my database ???
03-08-2007, 09:04 AM
Using phpMyadmin or using ur cpanel (mysql databases).
03-08-2007, 06:01 PM
ok , i am using phpMyAdmin but how to upload database to my hosting
I type an infomation to a field. And then , click submit , it will insert this infomation to database in localhost AND SEND THIS DATA TO MY HOSTING
$value_1 = $_POST['data_1'];
$value_2 = $_POST['data_2'];
$query = "INSERT INTO mytable(data_1,data_2)VALUES('$values_1','$values_2')";
$sql = @mysql_query($query); // INSERT IT TO MY DATABASE In locahost
//...And how to SEND IT TO MY HOSTING Ex :http://mywebsite.com
Note : SEND it To my hosting , NOT UPLOAD it to my hosting
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.