echo "<table><tr><th>Id</th><th>Alphabetic</th><th>Numeric</th><th>Вася</th><th>Что угодно сюда впишите,<br>зачем вам это извлекать из базы данных?</th></tr>";
$sql = mysqli_query($db, "SELECT * FROM test_table2 ORDER BY id DESC");
while ($result = mysqli_fetch_array($sql))
{
echo "<tr><td>".$result['id']."</td><td>".$result['Alphabetic']."</td><td>".$result['Numeric']."</td><td>".$result['Date']."</td><td>".$result['Unsortable']."</td></tr>";
}
echo "</table>";
echo ""['Alphabetic']""['Numeric']""['Date']""...;
$desc tablename или DESCRIBE my_table
<table>
<tr><th>Заголовок 1</th><th>Заголовок 2</th<th>Заголовок 3</th</tr>
<tr><td>Ячейка 1 строка 1</td><td>Ячейка 2 строка 1</td><td>Ячейка 3 строка 1</td></tr>
<tr><td>Ячейка 1 строка 2</td><td>Ячейка 2 строка 2</td><td>Ячейка 3 строка 2</td></tr>
<tr><td>Ячейка 1 строка 3</td><td>Ячейка 2 строка 3</td><td>Ячейка 3 строка 3</td></tr>
</table>
echo "<tr><td>".$result['id']."</td><td>".$result['Numeric']."</td><td>".$result['Date']."</td><td>".$result['Unsortable']."</td></tr>";
echo "<pre>";
var_dump($result);
echo "</pre>";
echo "<table>";
$sql = mysqli_query($db, "SELECT * FROM test_table2 ORDER BY id DESC");
while ($result = mysqli_fetch_array($sql))
{
echo "<tr><td>".$result['id']."</td><td>".$result['Numeric']."</td><td>".$result['Date']."</td><td>".$result['Unsortable']."</td></tr>";
}
echo "</table>";
$url = explode("?",$_SERVER['REQUEST_URI'],2);
$url = explode('apanel/',strtolower(substr($url[0], 1)));
import Tkinter as ImageTk
C:\Python27\python.exe D:/games/bot-master/t.py
Traceback (most recent call last):
File "D:/games/bot-master/t.py", line 99, in <module>
loop()
File "D:/games/bot-master/t.py", line 88, in loop
photo = PhotoImage(img)
File "C:\Python27\lib\lib-tk\Tkinter.py", line 3371, in __init__
Image.__init__(self, 'photo', name, cnf, master, **kw)
File "C:\Python27\lib\lib-tk\Tkinter.py", line 3310, in __init__
if not name:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
<PIL.PngImagePlugin.PngImageFile image mode=RGB size=800x418 at 0x11F9C128>
screen = ImageGrab.grab(box)
img = array(screen.getdata(), dtype=uint8).reshape((screen.size[1], screen.size[0], 3))
return img
screen = ImageGrab.grab(box)
img = array(screen.getdata(), dtype=uint8).reshape((screen.size[1], screen.size[0], 3))
return screen,img
screen,img = get_screen(
window_info["x"],
window_info["y"],
window_info["x"] + window_info["width"],
window_info["y"] + window_info["height"]
)
photo = PhotoImage(screen)
File "D:/games/bot-master/t.py", line 91, in loop
photo.pack()
AttributeError: PhotoImage instance has no attribute 'pack'
<PIL.Image.Image image mode=RGB size=1152x872 at 0xC909358>
<PIL.PngImagePlugin.PngImageFile image mode=RGB size=800x418 at 0x11F9C128>