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.
<form method="POST" action="">
Таблица - <input type="text" name="table"/> <input type="submit" name="submit" value="Изчисти"/>
</form>
<?
if (isset($_POST['submit']))
{
$table=htmlspecialchars($_POST['table']);
if (empty($table))
{
echo "Prazno pole !";
}
else
{
$delete=mysql_query("DELETE * FROM '$table'") or die(mysql_error());
if ($delete)
{
echo "Операцията протече успешно !";
}
echo "Възникна грешка !";
}
}
?>
<?php
include_once "conf.php";
?>
<form method="POST" action="">
Таблица - <input type="text" name="table"/> <input type="submit" name="submit" value="Изчисти"/>
</form>
<?
if (isset($_POST['submit']))
{
$table=htmlspecialchars($_POST['table']);
if (empty($table))
{
echo "Prazno pole !";
}
else
{
$delete=mysql_query("DELETE * FROM '$table'") or die(mysql_error());
if ($delete)
{
echo "Операцията протече успешно !";
}
echo "Възникна грешка !";
}
}
?>
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM 'fakti'' at line 1
<form method="POST" action="">
Таблица - <input type="text" name="table"/> <input type="submit" name="submit" value="Изчисти"/>
</form>
<?php
include_once "conf.php";
if (isset($_POST['submit']))
{
$table=htmlspecialchars($_POST['table']);
if (empty($table))
{
echo "Prazno pole !";
}
else
{
$delete=mysql_query("TRUNCATE TABLE `".$table."`") or die(mysql_error());
if ($delete)
{
echo "Операцията протече успешно !";
}
echo "Възникна грешка !";
}
}
?>