if ($Title != "Title?") { $query = "INSERT INTO " . $dbtable . " (Title,Weburl,Category,UserIp,AddDate) VALUES ('$Title', '$Weburl', '$Category', '$UserIp', '$AddDate')"; mysql_query($query); $addlink_msg = "Success! Your Video has been added!"; } else { $addlink_msg = "You Mistake Someting!"; } PHP: how i can add more if ($Title != "") and if ($Title != " ") echo You Mistake Someting!
While the current code well work, I could "break" it by putting two spaces, you'd want to apply the trim function to it. if(trim($title) != "" && trim($title) != "Title?") { echo "We're trying to do something."; } else { echo "You forgot the title!"; } Code (markup):
thanks to all ! anyway i have one more question hope someone can help me, im not sure if i can make what i want with php or mysql direcly, read here http://forums.digitalpoint.com/forumdisplay.php?f=108