[SOLVED] MYSQl query
Posted: Sun Dec 11, 2005 2:26 pm
Hi,
I'm working on making a website and need something special that I think can be solved easily by php. I use MYSql and because I've no knwoledge of php and mysql, So I need your help:
In my database tables I've something like this:
Now I need a php code to put in my website sothat when someone inserts " culture" , then it checks my database and retrieve and prints its id (196).
I'm sure this is a very easy job for the most of you, but I've no idea how to do that. Thanks in advance for your help..
My php version is 4.4.1 and mysql is 4.1.13-standard.
I'm working on making a website and need something special that I think can be solved easily by php. I use MYSql and because I've no knwoledge of php and mysql, So I need your help:
In my database tables I've something like this:
Code: Select all
Category_id category_lable
196 cultureNow I need a php code to put in my website sothat when someone inserts " culture" , then it checks my database and retrieve and prints its id (196).
I'm sure this is a very easy job for the most of you, but I've no idea how to do that. Thanks in advance for your help..
My php version is 4.4.1 and mysql is 4.1.13-standard.