I"m getting
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\project\trial.php:23 Stack trace: #0 {main} thrown in C:\xampp\htdocs\project\trial.php on line 23
please help me this is my 1st project so I'm not able to solve this
help me as soon as possible
What I have tried:
Insert of Row into Database Failed - #'.mysql_errno().': '.mysql_error().'
';
}else{
echo '
Person\'s Information Inserted
';
}
# Prepare the SELECT Query
$selectSQL = 'SELECT * FROM `guide`';
# Execute the SELECT Query
if( !( $selectRes = mysql_query( $selectSQL ) ) ){
echo 'Retrieval of data from Database Failed - #'.mysql_errno().': '.mysql_error();
}else{
?>
';
}else{
while( $row = mysql_fetch_assoc( $selectRes ) ){
echo "\n";
}
}
?>
Name | Address Line 1 | Address Line 2 | Email Id |
No Rows Returned |
{$row['name']} | {$row['addr1']} | {$row['addr2']} | {$row['mail']} |