Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

returning a row id

Codes here !

Moderators: macek, egami, gesf

returning a row id

Postby beefsack » Wed Dec 11, 2002 6:39 pm

i have a database where i have a field with unique data. what i want is something so it searches for some data, and returns a row id if it finds it. at the moment i have it working with a while loop, but i was wondering if there was a function i could use to make the code less messy that i can call to get a row id by giving it the field and data?
beefsack
New php-forum User
New php-forum User
 
Posts: 5
Joined: Wed Dec 11, 2002 6:32 pm
Location: Australia

Return to mySQL & php coding

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron