Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: mysqli_query() WHERE - insert data

Matej Hanzlić:

i'm new to php and what im trying to do here is add rating +1 for specific id (1,10,30....) whenever i press arrow up button.

I need to add id value (echo $row['id'];) to mysqli_query() somehow. Can someone help please? :)



$sql = "SELECT * FROM gifs";
$result = mysqli_query ($db,$sql);
?>
//Fetch data from database
if ($result -> num_rows >0){

while($row = mysqli_fetch_array($result)){
?>






$add = $row['id']; //i know this dosnt work...
">

How do i translate ($row['id'];) into mysqli_query( id = ?)

Thank You



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: mysqli_query() WHERE - insert data

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×