Learn Magento 2 step-by-step with our beginner to advanced tutorials. Get tips, code samples, and expert guides to build powerful eCommerce sites.
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)
Magento 2.4.8 released with new features.
Magento 2.4.8 Released: What’s New and Improved Magento 2.4.8 (Adobe Commerce and Open Source) was officially released in June 2024 , brin...

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 ...
-
Module is a structural element of Magento 2 – the whole system is built upon modules. Typically, the first step in creating a customizatio...