Note that there are some explanatory texts on larger screens.

plurals
  1. POwhat's error with my sql command?
    primarykey
    data
    text
    <p>the matched product name is: <code>$products_name</code></p> <p>$query ="select p.products_id, pd.products_name, p.products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = 1 and p.products_id = pd.products_id and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'<br> and p.products_id &lt;> :p.products_id AND MATCH('products_name') AGAINST (:products_name IN NATURAL LANGUAGE MODE)";</p> <p>1, why using <code>" p, "</code> not <code>" p "</code> </p> <p>my IDE shows an alert of the command. i don't know how to correct it. </p> <p>when run the query ,the error:</p> <blockquote> <p>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':p.products_id AND MATCH('products_name') AGAINST (:products_name IN NATURAL LAN' at line 6</p> </blockquote> <p>ps:</p> <pre><code>1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':p.products_id AND MATCH(`products_name`) AGAINST (:products_name IN NATURA' at line 5 in: [ SELECT p.products_id, pd.products_name, p.products_price FROM TABLE_PRODUCTS p INNER JOIN TABLE_PRODUCTS_DESCRIPTION pd ON (p.products_id = pd.products_id) WHERE p.products_status = 1 AND p.products_id &lt;&gt; :p.products_id AND MATCH(`products_name`) AGAINST (:products_name IN NATURAL LANGUAGE MODE)] </code></pre> <p>I Want to show the relative item under the product. which match according to some parts of the <code>product name</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload