Jump to content

bouriche

Members
  • Posts

    14
  • Joined

  • Last visited

bouriche's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi, I want to make a default profile picture if there is no uploaded picture, i tried some ways but it didn't work i don't know maybe i had a mistake, if you can help please help me, thank you all the best
  2. i did that and it work very well, you guys help lot thank you, i will start working now in the messaging system and contact, with notifications
  3. i tried to do that but i didn't know how to get user id and pruduct id from their tables to the new table, can you explain that to me ?
  4. i have this prolem that it shows and i don't know the reason, in the localhost sessions work well but in the hosting server it show this message: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at F:\Inetpub....\index.php on line 3
  5. yea it is but i don't need a tutorial just i need to know the way to do that if i know the idea and the way i will do it myself, thank you by the way i have this problem can you help me in that: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at F:\Inetpub...\index.php on line 3
  6. no i don't have that table, so you want me to create a table and in that table will be the product id from products table and user id from users table?
  7. hi, i hope you can help me in this, i want to allow users who registred an the website to post , i created a table for posts and for users in mysql and i want to know how to allow users to publish posts. thank you.
  8. thank you sir thats helped me a lot all the best if you want to contact me here is my facebook: https://www.facebook.com/abdenour.abdoun and my email: bouricheabdenour@gmail.com
  9. thank you for helping me here is my code i need help in quantity of products in shopping cart: </tr> <?php $total = 0; global $con; $ip = getIp(); $sel_price = "select * from cart where ip_add='$ip'"; $run_price = mysqli_query($con, $sel_price); while ($p_price=mysqli_fetch_array($run_price)) { $pro_id = $p_price['p_id']; $pro_price = "select * from products where product_id='$pro_id'"; $run_pro_price = mysqli_query($con, $pro_price); while ($pp_price=mysqli_fetch_array($run_pro_price)) { $product_price = array($pp_price['product_price']); $product_title = $pp_price['product_title']; $product_image = $pp_price['product_image']; $single_price = $pp_price['product_price']; $values = array_sum($product_price); $total += $values; ?> <tr> <td><input type="checkbox" name="remove[]" value="<?php echo $pro_id ?>"></td> <td style="color:#222;"><?php echo "<a style='color:#222;text-decoration:none;' href='details.php?pro_id=$pro_id'> $product_title <br><img src='admin_area/product_images/$product_image' width='50'></a>" ?> </td> <td><input type="text" size="2" name="qty" value=""></td> <?php if (isset($_POST['update_cart'])) { $qty = $_POST['qty']; $update_qty = "update cart set qty='$qty'"; $run_qty = mysqli_query($con, $update_qty); $total = $total*$qty; } ?> <td style="color:green;"><?php echo "$" . $single_price; ?></td> </tr> <?php } } ?> <tr> <td style="background:white;border:none;"></td> <td style="background:white;border:none;"></td> <td><b> Total : </b></td> <td style="color:green;padding:5px;"><?php echo "$" . $total ?></td> </tr>
×
×
  • 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.