Add user country flag on user page profile.php

Fast, Effective WordPress Plugins, Scripts and Themes Forums Buy, sell or trade Add user country flag on user page profile.php

This topic contains 0 replies, has 1 voice, and was last updated by  gigslord_com 1 year, 2 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3759

    gigslord_com
    Participant

    Hi everyone,
    since i started with this script i have modified all that i wanted, but this issue i can not figure it out.
    i have this on edit_profile.php and it works fine,<div class=”field”>

    <div class=”fieldInput” id=”phone”>
    <select name=”country”>
    <option value=”” selected>–Select Your Country–</option>
    <option value=”Afghanistan”>Afghanistan</option>
    <option value=”Albania”>Albania</option>
    <option value=”Algeria”>Algeria</option>
    ETC……
    </select>

    as admin i can see the users country in admin/view_users.php.
    So i have tried to do like 20 mysql querys to GET $country to display on profile.php and maybe on article also, but without success, can the admins point me to a good direction???
    I don`t want all the job done ,but at least tell me if i have to do this kind of request:
    Thanks!!!

    $sql5 = mysql_query(“SELECT * FROM members where id = ‘$id'”) or die(mysql_error());
    $myrow = mysql_fetch_array($sql5);
    $username = $myrow[‘username’];
    $country=mysql_real_escape_string($_GET[‘country’]);
    <label>Country:</label>
    <p><?php echo $datas[country]?></p>

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.