kts Posted August 7, 2008 Share Posted August 7, 2008 Hey, ive been programming for a bit and get things done, but I feel like im doing too much. I was wondering if anyone wouldn't mind sharing some ideas.... as of right now when I just want one item from a select i do $sql = mysql_query("SELECT item FROM table WHERE whatever = '$field'"); $fetch = mysql_fetch_array($sql); $variable_i_want = $fetch['rowname']; I know there are ways with mysqli, but I was wondering ones without as well? Anything will help.. Thanks everyone! Kyle Link to comment https://forums.phpfreaks.com/topic/118547-better-ways-to-call-arrays-and-work-with-databases-information/ Share on other sites More sharing options...
JasonLewis Posted August 7, 2008 Share Posted August 7, 2008 mysql_result() can help with that. Link to comment https://forums.phpfreaks.com/topic/118547-better-ways-to-call-arrays-and-work-with-databases-information/#findComment-610469 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.