<?php $query = "SELECT `salt` FROM `users` WHERE `id` = '{$uid}'"; $sql = mysql_query($query); //Так echo mysql_result($sql, 0); //Или так? $assoc = mysql_fetch_assoc($sql); echo $assoc['salt']; ?>