1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Buying $5 to whom can rewrite this

Discussion in 'Programming' started by Fiverscripts, Jan 3, 2016.

Thread Status:
Not open for further replies.
  1. #1
    Found a good function here to export csv from MYSQL/PHP

    I would however like it rewriting from MYSQL to MYSQLI.. a quick $5 to who ever can do that..

    Drop me a PM..?

    Matt
     
    Fiverscripts, Jan 3, 2016 IP
  2. cLogik

    cLogik Active Member

    Messages:
    159
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    90
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #2
    Replace all occurrences of mysql_ with mysqli_
     
    cLogik, Jan 3, 2016 IP
  3. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    As Seller:
    100% - 6
    As Buyer:
    100% - 7
    #3

    :D This guy! :D

    Do I really need to explain how wrong that statement is?

    If you changed this
    $result=mysql_query($sql_query);
    to this
    $result=mysqli_query($sql_query);

    That wouldnt work.

    You would want to use proper code such as that we find documented at php.net


    Object oriented style

    mixed mysqli::query ( string $query [, int $resultmode = MYSQLI_STORE_RESULT ] )
    Procedural style

    mixed mysqli_query ( mysqli $link , string $query [, int $resultmode = MYSQLI_STORE_RESULT ] )


    So you would have to do more than just add an i

    This would get changed from
    $result=mysql_query($sql_query);

    and would look more like this
    $result=mysqli_query($conn,$sql_query);
     
    KangBroke, Jan 3, 2016 IP
  4. evelinawilliams007

    evelinawilliams007 Notable Member

    Messages:
    3,120
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    210
    Articles:
    6
    As Seller:
    100% - 1
    As Buyer:
    100% - 0
    #4
    That won't work.
     
    evelinawilliams007, Jan 4, 2016 IP
  5. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    As Seller:
    100% - 0
    As Buyer:
    100% - 2
    #5
    What won't work?
     
    sarahk, Jan 4, 2016 IP
  6. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    As Seller:
    100% - 6
    As Buyer:
    100% - 7
    #6
    Maybe this is sort of like Jeopardy? First we get the answer then we get the question. :D
     
    Last edited by a moderator: Jan 5, 2016
    KangBroke, Jan 4, 2016 IP
  7. Fiverscripts

    Fiverscripts Moderator Staff

    Messages:
    1,839
    Likes Received:
    42
    Best Answers:
    1
    Trophy Points:
    370
    As Seller:
    100% - 236
    As Buyer:
    100% - 2
    #7
    Job has now been done
     
    Fiverscripts, Jan 6, 2016 IP
Thread Status:
Not open for further replies.