PHP קוד:
if($your_name==NULL || $your_message==NULL){
echo"אנא מלא את כל השדות";
}else{
mysql_query($query, $link)or die("Couldn't add data");
$all_fields=mysql_query("SELECT * FROM gustbook");
while($a_row=mysql_fetch_row($all_fields) ){
echo"
<table>
<tr>
foreach($a_row as $field)
<td>$field</td>
</tr>
</table>
";
}
}
חחחח ניר מה קשור