Jump to content

Better ways to call arrays and work with databases information?


kts

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.