$query = "SELECT val FROM table WHERE id = 1";
mysql_query($query);
This returns a single peice of data from the database.
all the ways I know how to deal with this data are mysql_fetch_array() and mysql_fetch_assoc() is there a way to deal with 1 peice of data that doesn’t involve pulling it into an array?
There is
mysql_fetch_fieldwhich appears to do what you want.