Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by williamh69

  1. Hi guys i am populating products from db, but the images does not showing sequentially, there are gaps between images ,,how i can fix this this is my code: <?php $query = "SELECT * FROM products"; $select_products = mysqli_query($connection, $query); while ($row = mysqli_fetch_assoc($select_products)){ $product_id = $row['product_id']; $product_title = $row['product_title']; $product_image = $row['product_image']; $product_description = $row['product_description']; $product_quantity = $row['product_quantity']; $product_price = $row['product_price']; $short_
  2. Hi guys i have this error, Parse error: syntax error, unexpected end of file in C:\wamp64\www\nigthclub\videos.php on line 103 but i know is probably easy to solve but for some reason i dont see the error. please help me <?php session_start(); ?> <?php error_reporting (E_ALL ^ E_NOTICE); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&
  3. hi trying to make a grid of two columns , data from db using mysqli and php, but it does not work...can you guys help me thanks in advance <?php $limit=2; $count=0; echo"<table border='0' align='center' cellpadding='2' cellspacing='2' width='70%'>"; $query = "SELECT * FROM posts"; $select_all_categories_query = mysqli_query($connection, $query); while ($row = mysqli_fetch_assoc($select_all_categories_query)){ $post_image = $row['post_image'];
  4. Got it... my mistake.. calling wrong function syntax
  5. Hi guys I AM NEW TO PHP AND MYSQLI... TRYING TO CALL FUNCTION BUT I GOT ERROR CANT FIGURE OUT WITH IT IS, THANKS FOR HELP ME functions.php <?php function Updatepost(){ global $db; $query = "UPDATE posts SET title='Yo me quiero casar con gloria', body='Me gusta el 69' WHERE id=3"; $result = mysqli_query($db, $query); if(!$result){ echo mysqli_error($db); } else{ echo "updated row sucessfully"; } } ?
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.