I am passing a integer variable as $paid.
I want to run an update query so that it adds the amount to a particular column:
mysql_query("UPDATE captains_list SET amount_paid=amount_paid+$payment where id='$id'");
this code obviously does not work. can someone look at this.
I have three pages, the first page I put in all my data, the second page is basically a confirmation page saying to confirm what I just did, but then I want to pass the data to a third page without actually using the post method.
question regarding this functionality. I currently have a directory that only has photos in it and I want to make a slideshow out of it. When clicking on the link, the first image in the directory appears but I would also like to have a next button that appears and clicking on it will go to the next image in the directory. there should also be a previous button that will let me go to the previous picture by clicking on it. Any suggestions on the best way to do this.
Is there anyway to ouput all of the files associated in a directory. I have found some functions that allow you to do this but the server needs to be set up with PHP5 and my server currently is running on 4+. Any suggestions around this.
How do i use today's date to find all records in an SQL statement that are all within one year of todays date.
$date="2007-10-31";
$tday=date("Y-m-d");
how do i run a query to check if $date is less than one year of $tday.
mysql_query("INSERT INTO tables (user_id) VALUES ('$username')");
this coding is not inserting the variable that is being passed. Instead it is placing a 0.
I did and I am still getting it to two decimal places. I think something has to be done in the query where I coded (HITS/AB) as AVG. I think there is more coding involved here to have AVG go to three decimal places.
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.