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 Avatar gigslord_com 4 years ago.

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

    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>

    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:

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

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.