MySQL Forums
Forum List  »  PHP

Re: SQL syntax error
Posted by: Peter Brawley
Date: March 21, 2014 02:13PM

The mysql API is deprecated, use mysqli ...

$conn = mysqli_connect(...);
$search_term = mysqli_real_escape_string($conn,$_POST['class_filter']);
...
$query = mysqli_query($conn,$sql) or die(mysql_error($conn));



Edited 1 time(s). Last edit at 04/01/2014 09:21AM by Peter Brawley.

Options: ReplyQuote


Subject
Written By
Posted
March 20, 2014 11:00AM
March 20, 2014 05:06PM
Re: SQL syntax error
March 21, 2014 02:13PM
April 01, 2014 08:33AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.