hi there i am having a prob with the date format i have an inventory application in which i have to make a SALES BILL ENTRY FORM i ma using php & mysql for storing the fields and for the back-end programming
i am using the following code for the date with the
format "month-date-year"
[html]
<tr>
<td class="add">Sal e Date:</td>
<td valign="middle" ><input name="sel_date" id="sel_date" readonly="true" type="text" size="25" value="<?=$date ?>" class="addinp"> </td>
</tr>
[/html]
but the problem is that when i try to vie the details in the sale detail page it shows the folllowing values
thanks for any any help in this regard
Omer.
i am using the following code for the date with the
format "month-date-year"
Code:
<? $date=date("m-j-Y"); ?>
<tr>
<td class="add">Sal e Date:</td>
<td valign="middle" ><input name="sel_date" id="sel_date" readonly="true" type="text" size="25" value="<?=$date ?>" class="addinp"> </td>
</tr>
[/html]
but the problem is that when i try to vie the details in the sale detail page it shows the folllowing values
Code:
0000-00-00
Omer.
Comment