sfcode
An Online Competing and Development Environment
|
Variables | |
$sql2 = "SELECT * FROM questions" | |
$data = array() | |
if($result=$mysqli->query($sql2)) | else |
This script checks the questions present in the MySQL database, and sends the question info (title, problem statement, start and end time, and the author's username) to the frontend. For this the script communicates with the MySQL server. Thus SQL injection has been handled.
if ( $result=$mysqli->query( $sql2)) else |