Jump to content
php.lv forumi

jautājums par PHP, datubāzēm, mysql_query


1mher3

Recommended Posts

vai ir iespējams mysql_query funkcijai aiz parametra WHERE norādīt ka tai ir jāpaņem ieraksts arī tad ja tikai daļa no satura sakrīt ar vajadzīgo vērtību?

Piemēram:

mysql_query("SELECT name, date, ip FROM $database.comments WHERE category='$category' AND comment=??? 'satur $keyword'", $connect)

Edited by 1mher3
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...