devinemke's short answer there is correct, but probably an explanation is what you were looking for?
$smiley29="INSERT INTO `smileys` VALUES (28, '(l)', 'wub.gif')";
$smiley30="INSERT INTO `smileys` VALUES (29, ':-)', 'smile.gif')";
mysql_query($smiley,$smiley2) or die(mysql_error());
The first thing I noticed was, the syntax to mysql_query() is: mysql_query($queryString, $resourceLinkIdentifier). So, it looks like what you've got there doesn't match that syntax.
Also, I believe the queries you wanted to run were in $smiley29 and $smiley30, but your mysql_query() statement doesn't have any reference to $smiley29 or $smiley30, so you probably won't get the results you want.
Both the query statements look correct however, so to run them, you'd need to have two mysql_query statements, one running $smiley29, and the second running $smiley30