procedural/crud_mysql/database/database.php
#Removes an entry from the specified table.
Removes an entry from the specified table.
Removes an entry from the specified table .
function deleteFromTable($conn, $table, $field, $value)
{
	$sql = "DELETE FROM {$table} WHERE {$table}.{$field} = '{$value}';";
	$res = mysqli_query($conn, $sql) or die("<h2>Error in query: {$sql}</h2>");
}
function deleteFromTable ( $ conn , $ table , $ field , $ value ) { $ sql = " DELETE FROM  { $ table }  WHERE  { $ table } . { $ field }  = ' { $ value } '; " ; $ res = mysqli_query ( $ conn , $ sql ) or die ( " <h2>Error in query:  { $ sql } </h2> " ) ; }
Removes an entry from the specified table.
Removes an entry from the specified table .
#echo $sql;