Come Posso Fare Questo Meccanismo?
<?php
echo <<<EOT
<form action="{$action}" method="POST">
Domanda : <input type="text" name="domanda">
EOT;
$domanda = addslashes(htmlspecialchars($_POST['domanda']));
Ora Dovrei Fare Così :
Ho Un Database Con 3 Classi : ID(auto_increment) - DOMANDA - RISPOSTA
Devo Far Si Che :
devo selezionare il database "test" e se la $domanda esiste nella tabella Domande mi deve dare un echo con la risposta a quella "Domanda". (Ovviamente La Risposta è Immessa nella stessa riga della domanda)
Come potrei fare?