i am editing a script where i need to send sms to the user i can get the url like http://localhost/sendsms.php?user=sam from the page profile.php now i want to make a page where i can selet this user's(Sam as in above url) mobile number from the database.
Do you mean like: mysql_query("SELECT `mobilenumber` from `tblname` WHERE `username`='".$_GET['user']."'") or die (mysql_error()); Code (markup): ?