test 1 - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of test 1.php
- <?php
- $search_text = $_REQUEST['search_text'];
- $res = mysqli_query("SELECT id_news, news_date, news_caption, news_text, news_id_author
- FROM news WHERE news_caption LIKE('%$search_text%')");
- $res = mysqli_query("SELECT id_news, header, body, author FROM news WHERE id_news = " . $_REQUEST['id']);
- group_concat(col, symbol, col)
- $res = mysqli_query("SELECT author FROM news WHERE id=" . $_REQUEST['id'] . " AND author LIKE ('a%')");
- $id = $_REQUEST['id'];
- $res = mysqli_query("SELECT * FROM news WHERE id_news = $id");
- SELECT * FROM news WHERE id_news = 12;
- INSERT INTO admin (username, password) VALUES ('HaCkEr', 'foo');
File Description
- test 1
- PHP Code
- 15 Jan-2023
- 643 Bytes
You can Share it:
Latest PHP Pastes