Activity Stream
48,167 MEMBERS
6823 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1.     
    #1
    Member

    Default Looking for php coder - small job.

    Hello guys,


    I currently have this (http://codecanyon.net/item/simple-we...comments/46483) script on dynamic pages of my site.

    It gives the user 2 input fields, name and comment box.

    Also it has gravatar support (as avatar).

    What I need doing, is since we are running;

    PHP Code: 
    (mysql_query('select id,username,password,email,avatar from users where username="'.$_SESSION['username'].'"')); 
    is that instead of user inputs his name, it can be gotten from that query and automatically inserted, and the avatar should also be imported from the mysql.

    ---------------

    The script is one file.

    If your interested let me know.

    Cheers,
    Ryan
    vps9Ryan Reviewed by vps9Ryan on . Looking for php coder - small job. Hello guys, I currently have this (http://codecanyon.net/item/simple-website-comments/46483) script on dynamic pages of my site. It gives the user 2 input fields, name and comment box. Also it has gravatar support (as avatar). What I need doing, is since we are running; Rating: 5
    vpsBox - SolusVM Templates (w/cPanel) // PHP Scripts // BASH Scripts // Tutorials
    MyRSK - Budget (managed) VPS's with a touch of personal support!

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    i think your description is not clear

  4.     
    #3
    Member
    basically

    assigning $avatar (which is from the db)

    into the code of the comments script.

    stuff like that
    vpsBox - SolusVM Templates (w/cPanel) // PHP Scripts // BASH Scripts // Tutorials
    MyRSK - Budget (managed) VPS's with a touch of personal support!

  5.     
    #4
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Quote Originally Posted by vps9Ryan View Post
    basically

    assigning $avatar (which is from the db)

    into the code of the comments script.

    stuff like that
    you already have select avatar in the query

    Make sure you have the table for it too in mysql db

    You need to use row['avatar'] to grab the details from db

  6.     
    #5
    Member
    yes, i know those

    just need modifications to the code to make use of the db strings...
    vpsBox - SolusVM Templates (w/cPanel) // PHP Scripts // BASH Scripts // Tutorials
    MyRSK - Budget (managed) VPS's with a touch of personal support!

  7.     
    #6
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    it's difficult to help you without having a idea about your code and your DB, exposing them publicly is dangerous too, so pm a dev here and he should help you

  8.     
    #7
    Member
    Website's:
    hoangthienlong.vn
    I want to help you but I don't understand what you want of your post, can by my English not good.

    Your mean is you want get avatar from db after use submit name? Same bellow

    Code: 
    $username = mysql_real_escape_string($_POST['username']);
    $avatar = "";
    $q = mysql_query("SELECT id,username,password,email,avatar FROM users WHERE username='$username' LIMIT 1");
    $t = mysql_num_rows($q);
    if ($t == 1) {
        $r = mysql_fetch_array($q);
        $avatar = $r['avatar'];
    }

  9.     
    #8
    Member
    Website's:
    vaporhostn.com
    Code: 
            $SQL = mysql_query("SELECT * users WHERE Table='something'");
            echo mysql_error();
    
            while ($db_field = mysql_fetch_assoc($SQL)) {
            $name = $db_field['name'];
            $avatar = $db_field['avatar'];
    
            echo "$name $avatar";
    I know this isnt exactly what you wanted but all im showing you is how to output information already in the table... So if you use those 2 functions in your insert table you should be able to get the name and avatar from the database..

  10.     
    #9
    Member
    Yes, it works like u say (theoretically) and even works on other scripts that way.

    But it just doesnt want to work on this script

    Its doing my head in


    vpsBox - SolusVM Templates (w/cPanel) // PHP Scripts // BASH Scripts // Tutorials
    MyRSK - Budget (managed) VPS's with a touch of personal support!

  11.     
    #10
    Member
    Website's:
    vaporhostn.com
    If not then include a function where you can call the username and avatar from anywhere like a class.. then just add the function to the mysql code

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Hiring] PSD to HTML Coder (small job)
    By MrOSX in forum Completed Transactions
    Replies: 1
    Last Post: 12th Oct 2011, 11:23 PM
  2. [Hiring] vBulletin coder (i will pay for every small task)
    By tractor3231 in forum Completed Transactions
    Replies: 1
    Last Post: 6th Jul 2011, 04:23 AM
  3. Need coder - Small Work
    By umang in forum Community Cooperative
    Replies: 2
    Last Post: 7th Nov 2010, 08:13 PM
  4. [Need Coder] Small Wordpress Modification
    By Divvy in forum Web Development Area
    Replies: 1
    Last Post: 30th Jul 2010, 01:32 AM
  5. Looking For Small Coder
    By xxenragedxx in forum Community Cooperative
    Replies: 0
    Last Post: 19th Feb 2010, 01:08 AM

Tags for this Thread

BE SOCIAL