problem getting username

Discussion in 'PHP' started by nomirock, Jan 5, 2008.

  1. #1
    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.
     
    nomirock, Jan 5, 2008 IP
  2. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #2
    Do you mean like:
    
    mysql_query("SELECT `mobilenumber` from `tblname` WHERE `username`='".$_GET['user']."'") or die (mysql_error());
    
    Code (markup):
    ?
     
    papa_face, Jan 5, 2008 IP