I have 5 or 6 fields in my database that are 3 numbers long (ex. 333, 563, 234). I want to select the value in one of the fields where = $id_val. The trick is, is I get the field value from a variable. So far here is what I have and cannot get to work:
$get_val = mysql_query("select '$num_in_var' from chara where id='$id_val'");
$val = mysql_fetch_array($get_val);
Zack
$get_val = mysql_query("select '$num_in_var' from chara where id='$id_val'");
$val = mysql_fetch_array($get_val);
Zack