u mean like this priority ENUM('Low', 'Med', 'High') NOT NULL,
+----------+--------------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+--------------------------+------+-----+---------+----------------+
| ticket | int(10) | NO | PRI | NULL | auto_increment |
| name | varchar(50) | NO | | | |
| email | varchar(40) | YES | | NULL | |
| branch | varchar(25) | NO | | | |
| ext | varchar(15) | YES | | NULL | |
| date_add | bigint(20) | NO | | | |
| category | varchar(25) | YES | | NULL | |
| subject | varchar(150) | NO | | | |
| problem | text | NO | | | |
| status | tinyint(4) | NO | | | |
| priority | enum('','Low','Med','High')
| ip | varchar(16) | YES | | NULL | |
+----------+--------------------------+------+-----+---------+----------------+
I have made this changes on my database but it is giving me errors like this as soon as a add a new query it will add and show Low on the priority i dont want o show priority Low before i assigned it Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/test/IT/indexticket.php on line 65 this is the file where my queries get listed
To make my life easier my program works fine but on the priority it shows 1, 2 , 3 there is no any other way i can do to make it Low. Med High just using php pls help me with dat this enum it only show Low all the time even when i edit my query it still shows Low