I created a customized query to search through my database for a given range of numbers, however when I do it the general way it cannot execute
-or-PHP Code:$query = mysqli_query($conn, "SELECT doc_id,ref_number,title,description FROM docs WHERE ref_number=DD%");
however if I change the query to search for 1 document by the ID, it will execute correctly.PHP Code:$query = mysqli_query($conn, "SELECT doc_id,ref_number,title,description FROM docs WHERE ref_number LIKE DD%");
PHP Code:$query = mysqli_query($conn, "SELECT doc_id,ref_number,title,description FROM docs WHERE doc_id=680");
is this a possible INDEXing problem?
Note: doc_id is the primary key of the table, and ref_number indexed :| or so I thought


Reply With Quote

Thanks Mate, that did do the trick


Bookmarks