我想要备份我的数据库时出错
A Database Error Occurred
Error Number: 1064
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 '-01-000001' at line 1
SELECT * FROM temp_01-01-000001
Filename: F:\xampp\htdocs\erp_zaara\system\database\DB_driver.php
Line Number: 330
Run Code Online (Sandbox Code Playgroud)
有没有办法用表名(temp_01-01-000001)解决这个问题.
可以从php运行Windows命令行代码吗?我的Windows命令行代码是:
<?php
error_reporting(E_ALL);
try {
echo exec('C:\xampp\mysql\bin>mysqlbinlog --start-datetime="2011-04-21 10:31:44" c:\xampp\mysql\data\binlog\bin-log.000001 > c:\xampp\mysql\data\binlog\sql.txt');
} catch (Exception $e) {
echo $e->getMessage();
}
Run Code Online (Sandbox Code Playgroud)
现在我想从PHP运行此代码system()或exec()等等任何帮助赞赏.
这是一个正常的金字塔水平块动态,如hor = 5
$k = 10;
$last = 2;
for($i=0;$i<=$last;$i++){
for($t = 1;$t <= $last-$i;$t++)
{
echo " ";
}
for($j=1;$j<=$i+$i;$j++)
{
$k--;
echo "$k ";
}
echo "<br>";
Run Code Online (Sandbox Code Playgroud)
但我需要这个:

可能吗?任何帮助赞赏.谢谢.