Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
<? php
$link = mysql_connect("localhost", "user", "pass")
or die("Could not connect");
print ("Connected successfully");
mysql_close($link);
$cat=file("categories.txt");
$catrow = mysql_fetch_array($cat)
do {
$catrow2 = mysql_query("INSERT INTO jos_vm_category (category_id,category_name,2) VALUES ('$catrow['category_id']','$catrow['category_name']','$catrow['2'])");
}
while ($catrow2 = mysql_fetch_array($cat));
>
<? php
$link = mysql_connect("localhost", "user", "pass")
or die("Could not connect");
print ("Connected successfully");
$cat = file("categories.txt");
foreach ($cat as $catrow)
{
$cat_fields = explode('^', $catrow);
$cat_id = $cat_fields[0];
$cat_name = $cat_fields[1];
mysql_query("INSERT INTO jos_vm_category (category_id,category_name) VALUES (" . $cat_id . ", '" . $cat_name . "')");
}
mysql_close($link);
?>