Showing posts with label Mysql. Show all posts
Showing posts with label Mysql. Show all posts
mysql database insert query
mysql database insert query
<?php
set_time_limit(0);
$dbconn = mysql_connect('localhost','username','password');
mysql_select_db('DBname',$dbconn);
$file = 'hospital.sql';
if($fp = file_get_contents($file)) {
$var_array = explode(';',$fp);
foreach($var_array as $value) {
mysql_query($value.';',$dbconn);
}
}
?>
<?php
set_time_limit(0);
$dbconn = mysql_connect('localhost','username','password');
mysql_select_db('DBname',$dbconn);
$file = 'hospital.sql';
if($fp = file_get_contents($file)) {
$var_array = explode(';',$fp);
foreach($var_array as $value) {
mysql_query($value.';',$dbconn);
}
}
?>
Subscribe to:
Posts (Atom)
How to check if Magento is running in production mode or developer mode
If you want to know. your Magento 2 website is running on which environment you can run below command on terminal and very easily you can kn...
Popular Posts
-
Swap is a space on a disk that is used when the amount of physical RAM memory is full. When a Linux system runs out of RAM, inactive pages...
-
Basic 1 . Merge css and js. By Run below command you can find out which mode is active. php bin / magento deploy:mode:show ...
-
Video link for real example. Proxies Design Pattern Proxies is a powerful and easy technique to help you overcome a huge problem of Mag...