not sure what exact problem you have but I saw some mistakes on your code:
$sb = mysql_query("SELECT * FROM vbshout WHERE sb = '$sb'");
- you're trying to input a previously unexistent variable called $sb.
- you did not fetch the result
If ($sb = 1) {
- $sb is a result handler
- even if it was a fetched column it would be wrong to use in a comparison, because a fetched column is either an array or an object
- you're not comparing $sb to 1, you're setting $sb to 1