php - how to change mysql_result($res, 0, "url"); to mysqli -
I do not know how to use mysqli_result like in the past.
Is this OK? How is right WHERE status = 'popup' and creditsp> = 1 and (CH) from
$ res = mysqli_query ($ con, "SELECT` id`,` usrid`, `url` site Lt; cf || cf = 0) sequence by rand () border 1 "); $ Urll = mysqli_result ($ res, 0, "url"); $ Ownerid = mysqli_result ($ res, 0, "Elixir"); $ Citid = mascile_salt ($ res, 0, "id");
Use fetch_assoc on the results:
$ line = $ res-> gt; Fetch_assoc (); $ Urll = $ line ['url']; $ Owner = $ line ['nectar']; $ Site id = $ line ['id'];
If there are more than one line, then:
while ($ line = $ res-> fetch_assoc ()) {// process $ Line}
Comments
Post a Comment