Search results

  1. C

    php mysql question..?

    Hi I have a database that i would like to give each row a number, how could i select all then update a number incrementing by 1 each time, I have an id that is unique but need to leave that alone. Thanks In Advance
  2. C

    PHP how to make a contact form when sendmail is disabled?

    I am having trouble with a Windows host and creating a contact form, PHP is running but the mail() function keeps bringing erorrs. Tested on Linux server, script is fine. Any ideas how to get round this problem Thanks in advance
  3. C

    Checking if a row exsists in php?

    I need to check and make sure that there are no duplicates of TXN_ID $sql = "Insert into SALES(ID, AFFID, PRICE, PRODUCT, D, M, Y, H, TXN_ID) VALUES('','$aff_id','$amount','$item', '$day', '$month', '$year', '$hour', '$pro_id');"; mysql_query($sql) or die(mysql_error()); if there is a...
  4. C

    I need help updating a database using php?

    Here is what I am trying to use, can you please help me fix this problem: $query = "UPDATE products SET(title, description, price, ukpost) VALUES('" . $p_title . "', '" . $p_description . "', '" . $p_price . "', '" . $p_ukpost . "')"; $result = mysql_query($query); if (!$result) {...
  5. C

    PHP Sessions help needed, need to mail a function...?

    Hi I am having a little trouble.... I want to be able to email the contents of a shopping cart to the admin of the website but am not sure how to do it. The function for displaying the cart is: function showCart() { global $db; $cart = $_SESSION['cart']; if ($cart) { $items =...
Back
Top