No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
<?php $startdate = date('Y-m-d H:i:s'); echo $startdate."</br>"; $offset = strtotime("+1 day"); $enddate = date("Y-m-d H:i:s", $offset); echo $enddate."</br>"; $newamount = $availablequantity - $quantity; if($enddate > $startdate) { if($availablequantity != 0) { $sql = mysql_query("UPDATE size SET quantity ='$newamount' WHERE id ='$item_id'") or die (mysql_error()); } //$sql = mysql_query("UPDATE size SET …
Hi I want to know what's the problem with my code. I'm just a beginner. I'm trying to display the smallest number, but everytime I run the program, the output is always equal to zero. However if I use this code to find the largest number, wherein the boolean condition …
Input rows and columns manually. Like this: input column: 3 input row: 2 then the output must be: 1 2 3 2 4 6 it's continuous. so if I enter new number in columns and row, it will display the numbers included. What is the code applicable for this. I …
The user is asked to input the number of days in a month and the first day of the month. Here is the sample output: Input the number of days in a month: 30 input the first day of the month: 4 0-Sunday 1-Monday 2-Tuesday 3-Wednesday 4-Thursday 5-Friday 6-Saturday Sun …
This is th same problem I am trying to solve. What is the use of matrix?
The End.
civirol02