mysql - how do I find a value from a database using more than one criteria? -


i want retrieve data single field based on information in 3 other fields. example if had table following fields: width, length, height, weight, , color. want value field color width = $value , length = $value2 , height = $value.

the sql wrote in question!

select color yourtable      width = $value , length = $value2 , height = $value 

php:

$result = $mysqli->query("select color yourtable width = $value , length = $value2 , height = $value"); 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -