Dear all from the below mentioned table im picking imgurl with this query but not working
select imgurl from images where family=shoes;
+--------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------+-------------+------+-----+---------+----------------+
| imgid | int(11) | NO | PRI | NULL | auto_increment |
| imgurl | varchar(75) | YES | | NULL | |
| family | varchar(20) | YES | | NULL | |
+--------+-------------+------+-----+---------+----------------+
3 rows in set (0.04 sec)
You need to put “shoes” in quotes for the query to work. It’s a
VARCHARtype so you need to be sending a string. MySQL puts strings in quotes.