Changing order of a php echo
okay I've figured out to create a blog on my site but, the
date is showing oldest first. How can I change the order to Newest
firts?
I'm using a repeat region echoing info from a database.
Here is the code:
<?php $HTTP_POST_VARS[<?php echo
$row_blog['BLOG_DATE']; ?>
any ideas?
5jays wrote:
> okay I've figured out to create a blog on my site but,
the date is showing
> oldest first. How can I change the order to Newest
firts?
In the recordset dialog box, sort by BLOG_DATE, and set the
sort order
to Descending.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Similar Messages
-
Can't find the file ?php echo $editFormAction; ? in XAMPP
I used the insert record function in CS4 on a page I'm working on. I'm running XAMPP in win XP.
Whenever I load the page into firefox, fill out the forms with random data, and click the submit button, I get the following error:
can't find the file at /C:/xampp/htdocs/MySite.com/<?php echo $editFormAction; ?>
I have been trying to research this a bit myself, and I think the problem may simply be that the editFormAction script is not in the root folder of my site. But I am not sure where it is, and so, what to change the reference to.
Or perhaps I'm completely wrong about this???
Please Help Me!!Well, I have to chuckle a bit because the article on how to set up a php testing server that you wrote is the exact one I read to set up my testing server! It is very well written and probably the most helpful and straight foreward article on setting up dreamweaver with XAMPP on the web. I followed all of the instructions exactly, so I imagine the problem must be elsewhere? It's pointing to the C drive because that's where XAMPP is installed. This is how is it supposed to be setup, correct? Apache and MySQL are running, or at least it says so on the XAMPP control panel.
Also, I apologize for not posting this in the right forum. That was my first post on the adobe boards and I didn't really consider inserting records to a database to be an "application." So thanks for pointing me in the right direction.
for those who want to see my code, here it is. Except for the exact names of the fields, it's exactly what dreamweaver creates when youc click on the "insert record" button in the insert menu. I don't see any option for pasting the code as "code" like in most code devolpoer forums. I know some poeple get upset if you paste code without doing it right, so I hope I'm not making anybody mad.
the following is inserted in the head:
<?php require_once('Connections/GiftListConnection.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
$updateSQL = sprintf("UPDATE ff SET EmailAddress=%s, Relationship=%s WHERE FirstName=%s",
GetSQLValueString($_POST['EmailAddress'], "text"),
GetSQLValueString($_POST['Relationship'], "text"),
GetSQLValueString($_POST['FirstName'], "text"));
mysql_select_db($database_GiftListConnection, $GiftListConnection);
$Result1 = mysql_query($updateSQL, $GiftListConnection) or die(mysql_error());
$updateGoTo = "ManageFF.php";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $updateGoTo));
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form2")) {
$insertSQL = sprintf("INSERT INTO ff (FirstName, EmailAddress, Relationship) VALUES (%s, %s, %s)",
GetSQLValueString($_POST['FirstName'], "text"),
GetSQLValueString($_POST['EmailAddress'], "text"),
GetSQLValueString($_POST['Relationship'], "text"));
mysql_select_db($database_GiftListConnection, $GiftListConnection);
$Result1 = mysql_query($insertSQL, $GiftListConnection) or die(mysql_error());
$insertGoTo = "ManageFF.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
mysql_select_db($database_GiftListConnection, $GiftListConnection);
$query_Recordset1 = "SELECT * FROM ff";
$Recordset1 = mysql_query($query_Recordset1, $GiftListConnection) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
and then this is the actual form code in the body:
<p class="Bold">  Add new family member or friend...</p>
<form action="<?php echo $editFormAction; ?>" method="post" name="form2" id="form2">
<table align="left">
<tr valign="baseline">
<td nowrap="nowrap" align="right">FirstName:</td>
<td><input type="text" name="FirstName" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">EmailAddress:</td>
<td><input type="text" name="EmailAddress" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Relationship:</td>
<td><input type="text" name="Relationship" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" value="add" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form2" />
</form>
Thanks for trying to help out this noob, everybody!
BTW, this is Inkexit posting. For some reason when I logged in this morning, I was made to pick a new screenname, as inkexit was already in use. But I knew that though, as I was the one using it, lol. Kinda bizzarre. Perhaps the Mods should know about this? -
Change order address (iw32)
I have created custom tcode similar to that of Iw32 and i need to add functionality to change of address button.
I should be able to change the address and post back ..
Please let me know if there is any bapi/ fm to change the addressTransaction Code - IW32 CHANGE ORDER
Exit Name Description
IWO10012 Maintenance order: Priority handling on central header
No of Exits: 1
BAPI-step by step procedure
http://www.sapgenie.com/abap/bapi/example.htm
list of all BAPI's
http://www.planetsap.com/LIST_ALL_BAPIs.htm
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
FUNCTION MODULES
http://www.erpgenie.com/abap/functions.htm
http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
http://www.erpgenie.com/abap/index.htm
http://www.geocities.com/victorav15/sapr3/abapfun.html
Rewards if useful.........
Minal -
Change order of key figure is not working in Web report output (using WAD)
Hi,
We are using BI 7.0, release 701 and level 008. We are facing problem in WAD (web report output). When ever we do 'Select filter' for key figures and 'change the order' of key figures, it does not get reflected in new order. Though drag and drop of key figures is working.
Though same change order is working fine in Bex Analyser.
Kindly suggest some inputs.
Thanks.Hi,
On Which Service Pack are you on?WAD has this feature of re arranging the keyfigures in BI 7.0 for SPS 14...
Regards,
Bhagyarekha. -
Change order of line items in a financial document
Hello,
Is it possible to define the order of the line items in a financial document?
For example, I have always a discount line with a discount account in the first place and after this line, the customer line, and the bank account and I need to have the customer line in the fist place, is it possible to customize this order?Or is this standard?
Thank you very much!!Hi,
You can change orders in FInancial Document. Just open the document from Menu select Settings-> Layout--> Current.
change the position numbers as desired.
Regards,
JA -
Changing Order of Songs in Album-iTunes 12
Like the title says, how do I change the order of songs in a album? Before you could use get info and sort by track number.
ThanksHey Lando25,
I understand that you want to change order of songs that are playing in iTunes. This functionality should still be available to you, as confirmed in this article:
iTunes 12 for Mac: Edit song and CD information
https://support.apple.com/kb/PH19618
You may need to simply scroll in the information field in order to find the fields that you wish to edit. Thanks for coming to the Apple Support Communities!
Cheers,
Braden -
HT201317 change order of photos in photo stream album
How do I change order of photos posted in photo stream album?
Send a feature request to Apple via
http://www.apple.com/feedback/iphoto.html
and
http://www.apple.com/feedback/icloud.html
OT -
Help with fuzzy search (doesn't work if change order of certain 2 letters)
Hi,
need some help with fuzzy search. It's pretty simple - we use fuzzy search on varchar2 columns that contain first name and last_name. The problem is that i don't really understand why it can't find name in some cases.
Say i want to search for 'Taekpaul'. Then
where CONTAINS(first_name,'fuzzy(TAEKPAUL)',1) > 0 - works
where CONTAINS(first_name,'fuzzy(TAEKPALU)',1) > 0 - works (changed order of the 2 last letters)
where CONTAINS(first_name,'fuzzy(TEAKPAUL)',1) > 0 - doesn't work, finds 'Tejpaul' that is completely unrelated (changed 2nd, 3rd order)
How can i make it find 'Taekpaul' even if i search for TEAKPAUL? Is it related to index? Like Text index should be created with some different parameters?
Thanks!
Edited by: Maitreya2 on Mar 3, 2010 2:08 PMThanks, adding '!' worked :)
Do you know where i can read more about '!' and other special characters? I think i didn't see anything like that here: http://download.oracle.com/docs/cd/B14117_01/text.101/b10730/cqoper.htm#BABBJGFJ
I also started using JARO_WINKLER_SIMILARITY function that is actually better i think for what i do. But it's very buggy - sometimes Oracle crashes and kills connection when you try to use it.
Ahha, it's here: http://download.oracle.com/docs/cd/B19306_01/text.102/b14218/cqspcl.htm
So, ! is soundex. Whatever it means..
Edited by: Maitreya2 on Mar 5, 2010 12:14 PM -
How to look for SAP provided rules while changing orders ?
Hi:
we have a requirement to check for order type when the change order request ( in form of IDOC via EDI) is passed to SAP and the requirement is such that we can only accept certain order types like TA and reject order order type........from a very high level though process the idea is to check if SAP has certain pre build code that can be called before the va02 is called.....
I am new to sap and was told that we need to first look if SAP has a existing functionality if not then find user exit and customize it .....
my question is where does one look in SAP for such code ...or out of the box feature..........which can be called ....I understand if nothing is found we can write ABAP program to do this.....but I am puzzled as I do not now where to look and eliminate that such feature is not already provide ......
Thankscheck which FM you use to post your IDOC (like IDOC_INOUT_ORDCHG) and then check in this FM ... you'll find exits like 'call customer-function'.... I'm sure you'll find one which is called to validate data passed in your segment (where actual order type is passed).... or just use the one which works always after the order number is known and then just check your order type & raise error to fail IDOC so it will not even try to update your order.
-
How to change order data in APO
Hi,
I am keen to know on ways to change order data in APO say order category BI.....we want to change date by taking input from cif user exit APOCF006.We need this information for the ongoing project.
I know two options...1) using BAPIs 2) Not very sure about this option ...Function Module:/SAPAPO/OMORDER*CHANGE.
Could you please help to have better understanding on ways to change orders in APO?
Thank you
Best Regards
Nilesh PatilHello Rishi,
Thanks for your reply.
Demand node ofr purchase Ordre( BF) in SNP is Conrel( BI category). We want to change date( start date) at this demand node . We will get this date from R3 using say non cif method.
There are few ways to do it....
1) If we ignore Menas of Transport( so essentially transit time or lead time in tlane) in that purchase order and change this requirement date directly using purchase order save BAPI( requirement node) ......Question will system allow us to do so and even if it allows us to do so will it casue some problem( inconsistencies) later?
2) Second option I am thinking is...
For one product we maiantain GR processing time in product location master and this is considered while determining strat date of BI (Start date= Delivery date -GR procesisng time- means of Transport lead time - some other times ....). For this product let's say we have 100 Purchase Orders (BF). We have requirement that each of these POs should get separate treatment while calculating Start date. It means start date can be different for different POs and once we change it forcibly then it shoulkd not change unless we again change it forcibly.
We are thinking to change GR processing time at runtime wheneveer Purchase Order is changed. So if GR time in product location master is 1 day ....for different Purchase Orders different GR processing time can be considered. Say for Po1...its 2 day...for P2 its 4 day.
Or similar way we can change transit time as given in means of transport in tlanes.
Will appreciate your or anyone's comment
Thank you
Nilesh -
Change order of list items in sealed MP
Hi,
I have a MP that is sealed. It includes a list, but also list items exist in that sealed MP. I need to reorder the list. I have the unsealed MP and the seal used. Can i just edit the unsealed version, changing order in the XML code and increase ver. nr.
and if yes then how?Hi,
I did a test in my lab and just edited the xml version of the MP. I changed the numbers in ordinal to rearrange, incremented the version # plus resealed and imported.
<EnumerationTypes>
<EnumerationValue ID="IncidentPriorityList" Accessibility="Public" />
<EnumerationValue ID="Enum.cd7c7616b19745ffb646e0320ba85bb4" Accessibility="Public" Parent="IncidentPriorityList" Ordinal="0" />
<EnumerationValue ID="Enum.8ae91ca8f3a7439eb2941c4a1547908c" Accessibility="Public" Parent="IncidentPriorityList" Ordinal="2" />
<EnumerationValue ID="Enum.0d5e33cc41504a4eaf66b64b2dff3a2d" Accessibility="Public" Parent="IncidentPriorityList" Ordinal="1" />
</EnumerationTypes> -
Hi friends,
If i want to make some changes in existing purchase order before GR, i want to make it using a different change order number for the existing PO number so that i can review the history of changes being made.
Plz help out!
regardsHi,
You can use version management functionality , which will give you record of changes with Reason as well as Text . This functionality will be applicable once you take print out of PO and after that you are doing any changes to PO.
Spro - Materials Management -Purchasing -Version Management - Set Up Version Management for External Purchasing Documents Activate Version management for your PO doc type and Pur Org
Define Reasons for Change
Set Up Change Displays
Regards,
Vikas -
Oracle i Supplier Portal Workflows - Supplier Change Order Workflow
Hi Friends,
Oracle iSupplier Portal uses the following workflows:
■ Supplier Change Order Workflow
■ Update Capacity Workflow
■ Order Modifiers Workflow
■ Advance Shipment Notice (ASN) Workflow
■ Purchase Order Acknowledgement (handled by PO Approval Workflow)
My problem is related to - 'Supplier Change Order workflow'
I would like know is there are any changes in the work Flow - 'Supplier change order Work flow' in 11.5.10 to 11.5.8
If yes,kindly list the changes.
Thanks in advance!
Thanks & Regards
Dilip NomulaThe best way to determine this would be to download the workflow into a wft file from 11.5.8 and 11.5.10 instances and run a simple Unix diff command on these two wft files. I do not believe you will find any documentation that will list differences at this level of detail.
HTH
Srini -
I'm new to P3. I need to manage a large 2 year public
works building construction schedule in downtown Los
Angeles, with numerous and frequent changes to the
schedule due to change orders, RFI's etc. Of course, these
changes result in increases/decreases to cost and time,
which need to be monitored and dealt with as part of the
overall project. Some say that fragnets are the best way
to insert these changes into the schedule. Some say
fragnets are problematic. I have no experience with
fragnets and I want to get off on the right foot. What
have you project managers and project engineers found most
effective for inserting and managing change order and RFI
items?Nat:
Thank you very much for
your response.
Your
explanation of fragnets was very useful. I will make a
point of saving and reusing repetitive groups of
activities. In my case, SOMD (slab-on-metal-deck) is
very repetitive. Also, exterior building finishes such
as plaster (exterior sheathing, lath, scratch coat,
brown coat, cure, finish coat, cleanup). Interior
finishes activities are also often identical from
floor to floor.
The issue with
RFI's is usually not so critical. I mentioned 1200
RFI's but relatively few impact the schedule and must
be coded in. But it is more than 48. In my case, the
most common reason for entering an RFI into the
schedule is when the
consultant/Architect/Engineer/State Agency exceeds the
contractually agreed upon time limit for response to a
design-related RFI, or his response is irrelevant
requiring a second round of RFI's to resolve the
problem (revise and resubmit for title-block
exceptions, for example, happens frequently). <br
/>
It is easy to ignore these delays,
and recording them in the schedule can really irritate
the consultant, but when they become a habit, the
cumulative impact on the schedule can be significant.
Therefore, I need to be able to track these RFI delays
effectively within the schedule. Of course, an RFI
always has a number that is tracked inside Expedition
as well.
The bigger problem is
Change Orders. As you know, when the Owner wants
something added to the work, or a problem in the
design results in an increase in the scope of work
(there are many other possible reasons of course) a CO
is requested. As a general rule, most change orders
contain both a cost increase as well as a time
extension. This time extension is the problem,
because, especially on public works projects, the
Owner/CM does not want to grant time an extension, and
even when they do, they will only grant it when it
impacts the critical path, and only after there is no
float remaining (you will see why this distinction is
important as you read further). The critical path
condition makes sense, but the idea that my float is
the Owner's to eat for his CO work is grating,
especially when facing potential LD's. <br
/>
To top it off, some Owners/CMs insist
that all time delays be dealt with at the end of the
project, when the actual time delay resulting from a
CO can be calculated, instead of simply estimated, as
is common practice (corresponding language is inserted
into the CO to that effect instead of a defined time
extension). My position is that if they refuse to
grant a time extension based on an estimate, then the
cost given in the CO, which is nothing more than an
estimate, should also be replaced with T&M, and
the budget be damned. Needless to say, that position
has not won me many friends in the trailer across the
way.
You might suggest that we
should refuse the extra work if a time extension is
not granted up front. If we did that, they would hit
our bond in a heartbeat. A contractor's lot in life
seems to be to make lawyers (Deo volente, may the burn
in hell) wealthy.
In the case
of the Owner/CM refusing to grant time for
non-critical path CO's, my position is that, while the
CO work may not be on the critical path this instant,
in many cases, the critical path can change
dramatically, sucking CO work into it that was
previously separated from it by weeks. That very thing
has happened on a school project located in a major
city we are doing.
The project
has extensive tubular secondary steel at the exterior
of the two buildings. This tube steel, ranging in size
from 4" diameter to 20" diameter curves around, and up
and down, the exterior of the structure. I do not
exaggerate when I say that it is more complicated than
a roller coaster. I will send pictures if you are
interested. It supports curvilinear LG framing, which
in turn supports a combination of plaster, brick
veneer and metal panels. Very phantasmagorical stuff.
Being a complicated 3-D arrangement of rigid steel,
the architect's drawings were incomplete, (we should
have expected that) and changed frequently (4 times)
during fabrication, resulting in detailing problems
and a two month delay in erection. Lots of unforeseen,
fit-scribe-cut-repeat of long, heavy, curved, twisting
pieces of long steel hanging from crane hooks has been
required.
We have recovered
most of that time, but only by doing a great deal of
out-of-sequence work.
As you
can imagine, this mess generated a ton of CO's, but
the Owner would not agree to grant time extensions
until the end of the project, and even then, only on
CO's that are provably on the critical path. When
combined with electrical changes impacting utility
buildings, cable pulls, elevators, manlift and even
exterior finishes, and then with added off-site work,
topped off by submittal-review delays by State
agencies, the critical path has flapped around like a
flag in the wind, with CO's going in and out of it. In
many cases, this means that a particular item of
ongoing CO work has delayed the critical path for a
period of time, but not for the entire duration of the
CO work. So calculating the exact impact of the CO
during the period it was on the critical path has not
been easy.
I anticipate there
will be huge disagreement about these calculations at
the end of the project when we have the "come to
Jesus" time/money resolution meeting with the
Owner/CM.
BTW, the CM always
insists that CO's be dealt with as fragnets, but that
doesn't always make sense because the nature of CO
work is often one-of-a kind, not repetitive stuff. But
he has fragnets on the brain, it seems, so we call
them fragnets to humor him.
<br
/>Anyway, as you can imagine, tracking the dynamic
(vs. static) effect of CO's on the schedule has been
difficult. I am almost tempted to try calculus methods
to calculate time consumed over time (if you get my
meaning). Any experience analyzing schedules using
differential equations? Someone must have done it
before....
Right now I am
using activity codes to track them, but I am wondering
if there is a better way.
<br
/>
I have other projects, without the
same delays, but similar Owner/CM mindset regarding
CO's
Now you know the long
story. Any suggestions?
<br
/>Stan -
Requisition change order workflow - custom wf not being picked
Oracle Standard Requisition change order workflow doesnt meet the client requirement.
so we had to customize the poreqcha workflow.
Steps
1. Changed poreqcha.wft and complied using another name.
2. Associated the workflow in document types. ( Purchasing Super user>>setup>>purchasing>>document types)
Attached the new item-type to "Change Order Request Requisition"
3. Create a req approve it, auto create a PO and approve it. Now log in as requester and change the requisition
It still follows the standard workflow and not the custom workflow.
Please assist is there are any settings which i'm missing.See "How to Change the Top-Level Process for the POREQCHA - Requestor Change Order Approval? [ID 423078.1]" for Oracle's opinion on this. We have modified the top-level process directly. Neither solution is ideal.
Thanks,
Nic
Maybe you are looking for
-
We are having a problem where we get the ORA-01000 error after a while on our servers. We are using wl7.0 sp1 and Oracle 9.2.0.1 with the thin driver. We are connecting to the db with the weblogic.jdbc.pool.Driver class. I've looked in this group and
-
How do I install photoshop 7 on windows 8.1
Microsoft says Photoshop 7 is compatible with Windows 8.1. How do I install it?
-
** DRM - Hierarchy maintenance
Hello Friends, We are planning to use DRM (Data Relationship Management) for our hierarchy setup and Maintenance. One of the main usage of this would be to have alternate hierarchy populate for Hyperion planning/Essbase with version controls etc... L
-
I have some movies I've ripped and would like to sync to my iPad. I've set up Home Sharing on iTunes, add the movies to the library and turned on Home Sharing on the iPad. When I launch the Videos App, I have an option for Sharing and can then acces
-
Uhh please Help me install packages =[ [SOLVED]
ok im running arch 2007, the newest, and im basically an arch n00b. I've been using linux for years, but never came across this error ....(while trying to install banshee, amarok,totem....) [anthony@Barton ~]$ sudo pacman -S totem warning: current lo