mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 17:03:22 -05:00
The corrects a logic error for show_description.
Now working properly when changed in SQL
This commit is contained in:
parent
3c734a60e2
commit
c70bac75f7
@ -4,6 +4,12 @@ error_reporting(E_STRICT);
|
|||||||
require_once('Connections/YBDB.php');
|
require_once('Connections/YBDB.php');
|
||||||
require_once('Connections/database_functions.php');
|
require_once('Connections/database_functions.php');
|
||||||
|
|
||||||
|
/*
|
||||||
|
require_once(realpath($_SERVER["DOCUMENT_ROOT"]) . '/php-console/src/PhpConsole/__autoload.php');
|
||||||
|
$handler = PhpConsole\Handler::getInstance();
|
||||||
|
$handler->start();
|
||||||
|
*/
|
||||||
|
|
||||||
$page_edit_contact = PAGE_EDIT_CONTACT;
|
$page_edit_contact = PAGE_EDIT_CONTACT;
|
||||||
$page_individual_history_log = INDIVIDUAL_HISTORY_LOG;
|
$page_individual_history_log = INDIVIDUAL_HISTORY_LOG;
|
||||||
$storage_period = STORAGE_PERIOD;
|
$storage_period = STORAGE_PERIOD;
|
||||||
@ -373,6 +379,8 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
|
|||||||
$Recordset3 = mysql_query($query_Recordset3, $YBDB) or die(mysql_error());
|
$Recordset3 = mysql_query($query_Recordset3, $YBDB) or die(mysql_error());
|
||||||
$row_Recordset3 = mysql_fetch_assoc($Recordset3);
|
$row_Recordset3 = mysql_fetch_assoc($Recordset3);
|
||||||
$totalRows_Recordset3 = mysql_num_rows($Recordset3);
|
$totalRows_Recordset3 = mysql_num_rows($Recordset3);
|
||||||
|
|
||||||
|
//$handler->debug($row_Recordset3);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -486,6 +494,7 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
|
|||||||
<td><textarea id="description" name="description" cols="45" rows="3"><?php echo $row_Recordset2['description']; ?></textarea>
|
<td><textarea id="description" name="description" cols="45" rows="3"><?php echo $row_Recordset2['description']; ?></textarea>
|
||||||
<span id="description_error"></span></td>
|
<span id="description_error"></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<?php } // end show_description ?>
|
||||||
|
|
||||||
<?php if($row_Recordset3['show_amount']){ ?>
|
<?php if($row_Recordset3['show_amount']){ ?>
|
||||||
<tr id="price"><td> </td>
|
<tr id="price"><td> </td>
|
||||||
@ -497,7 +506,7 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
|
|||||||
<td><input name="amount" type="text" id="amount" value="<?php echo $row_Recordset2['format_amount']; ?>" size="6" />
|
<td><input name="amount" type="text" id="amount" value="<?php echo $row_Recordset2['format_amount']; ?>" size="6" />
|
||||||
<span id="payment_error"></span></td>
|
<span id="payment_error"></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } // end show_amount ?>
|
||||||
|
|
||||||
<?php if($row_Recordset3['show_payment']) { ?>
|
<?php if($row_Recordset3['show_payment']) { ?>
|
||||||
<tr id="payment_type">
|
<tr id="payment_type">
|
||||||
@ -522,8 +531,9 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
|
|||||||
?>
|
?>
|
||||||
<span id="check_number_error"></span></td>
|
<span id="check_number_error"></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } // end if show_payment ?>
|
||||||
<?php } // end if show_payment
|
|
||||||
|
<?php
|
||||||
|
|
||||||
// Patron
|
// Patron
|
||||||
if($row_Recordset3['show_soldto_signed_in'] ||$row_Recordset3['show_soldto_not_signed_in'] ){ // if location show row?> <tr><td> </td>
|
if($row_Recordset3['show_soldto_signed_in'] ||$row_Recordset3['show_soldto_not_signed_in'] ){ // if location show row?> <tr><td> </td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user