Input in one formfield go to two different fields in a MySQL tablerow?
Hi, I hope you can help me with this.
How can I have input in one formfield go to two different fields in a MySQL tablerow without having the visitor to type out his input out twice?
With the second one I would like to use md5.
Any help is greatly appreciated.
How can I have input in one formfield go to two different fields in a
MySQL tablerow without having the visitor to type out his input out
twice?
You would need to write your query with the WHERE clause when you update to say "WHERE user=$userid". That's the most basic way. The $userid variable would need to come from either a session or a cookie if the user is logged in and you don't want them to enter the information again. Or if this is from a previous page, the $userid could just be equal to the $_POST variable after sanitization.
With the second one I would like to use md5.
That's even simpler. Before submitting the form, just do $md5_pass = md5($pass);
http://us.php.net/manual/en/function.md5.php
Similar Messages
-
F4 HELP ON TWO DIFFERENT FIELDS OF A SCREEN .
Hi Experts ,
I have a screen in which i have to aply f4 help on two different fields .
1. Bussiness unit
2. SAP GL Account .
I have applied for Bussiness unit. by :
PROCESS BEFORE OUTPUT.
MODULE STATUS_1013.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1013.
PROCESS ON VALUE-REQUEST.
field B_UNIT MODULE SEARCHHELP_F4.
But how i can apply on SAP GL Account ,i have to use one more POV module or i can do it by using the same pov which i used for Bussiness unit.
Please tell me how i can do with little bit code example.
Regards,
PremrajHi,
use one more FIELD statement and create one more module for GL a/c in same POV event.
ex
FIELD <GL a/c fld name> MODULE <Module name>. -
Dataload - Evaluate two different fields
Hi, I need to evaluate two different fields in a dataload rule and apply condition if true. for instance if field 1 is 600 and field 2 is 30 the change field 1 to 650.
Hi ,
I don't want to concatenate two fields nor display it in a single field, but I want to diplay two fields 1 below the other...
ie..If I am using write statement I would prefer,
loop at itab.
wirte: /2 itab-abcd,
/2 itab-1234.
endloop.
my output will be:
abcd
1234.
If need to use da same logic in ALV how would I use ?? hope I am little more clear now..
Please advice
Karthik. -
How can I use one gmail address on two different macbooks in 'mail'?
I'm using one business gmail address. Me and my girlfriend both have a macbook. Now the gmail address is linked to my macbook. But she wants to use it as well. Unfortunately the 'mail' system won't allow her to sync with the gmail address. And I get messages from gmail saying that someone tried to log in to my account. Which is something I certainly want, but can't change. Does anyone now how I can use 1 gmail address on two different mac's? Thanks
You may be able to change the suspicious account activity message alerts
in your Gmail settings, and check that side of it, since I can use several
means of accessing my Gmail and Google Accounts; and in the past had
shared an account (not google) with another party half a world away when
her email server went down for a month.
The Mail software should not know the difference, unless the setup in there
is not correct; if this is so, then more than what she says would be wrong.
The Google mail Support help site pages should cover this adequately.
Gmail Help - Google Help
https://support.google.com/mail/?hl=en -
One MIRO document with two different vendors for two different line items
Can it possible to make MIRO for a PO which is having two conditions(Basic price+Freight) with two different vendors.
MIRO document needs:
GR/IR Clearing Dr.
Freight Clearing Dr.
Vendor RM(X) Cr.
Vendor Freight(Y) Cr.
Is it possible to post the above document at a time not individually for each condition.Hi,
Yes, It is possible to post Material and delivery cost in one document.where in material supplier is different than the Frieght vendor.
Itm PK BusA Acct no. Description Tx Amount in USD
001 89 130001 Stock-Ingredients 244 0 880.00
002 96 320001 GR/IR Account - Ing. 244 0 1,200.00-
003 86 520002 Ingredients - PPV 244 0 3,297.87
004 50 320008 GR/IR Account - Duty 244 0 797.87-
005 50 320009 GR/IR Account - Fre. 244 0 2,180.00-
Thanks
Dinabandhu -
How to define namespace with one XSD using in two different DB-Locations ?
I'm not clear,How to define namespace, targetnamespace, schemaLocation or NoNamespaceSchemaLocation
when using one common schema.xsd-definition
in two different database-locations for exchange xml-documents?
when insert xml-document I've got an error ORA-30937
do you have an good exsample ?
thanks
Norbert
schema :
<xs:schema
xmlns="http://sourcehost.com/namespace"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:oraxdb="http://xmlns.oracle.com/xdb"
targetNamespace="http://sourcehost.com/namespace"
xml-document :
xmlns="http://Sourcehost.com/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:SchemaLocation="http://sourcehost.com/namespace http://desthost:8080/sys/schemas/PUBLIC/ADRESSEN.XSD">
SQL> insert into ADRESSEN values
(XMLType
(bfilename ( 'XMLIMPORT_DIR', 'adressen.xml')
, 0 )
--> error :
ORA-30937: No Schemadefinition for "SchemaLocation" (Namespace "http://www.w3.org/2001/XMLSchema-instance") in übergeordnetem Knoten "/ADRESSEN"Norbert
The schema location used to register the XML schema with XML DB does not need to be a valid URL for accessing the XML Schema
I can use the same URL , for instance
http://xmlns.example.scom/xsd/myXMLSchema.xsd
on machines dbserver1, and dbserver2. The only reason some people choose to use the hostname / portnumber convention is that this makes it possible to validate the XML Instance documents against the copy of the XML schema stored in the XML DB repository using an external tool like XMLSpy without have to add entries to XMLSpy's OASIS catalog files.
I am concerned about the message you are getting. That's not correct AFAICT but I'd need to see the complete XML Schema and Instance to be sure. -
Hi Experts,
I have on stored procedure which returns mote than one resultset i want that to store in two different temp table how can achieve this in SQL server.
following is the stored procedure and table that i need to create.
create procedure GetData as begin select * from Empselect * from Deptend
create table #tmp1 (Ddeptid int, deptname varchar(500),Location varchar(100))
Insert into #tmp1 (Ddeptid , deptname ,Location )
exec GetData
create table #tmp (empid int , ename varchar(500),DeptId int , salary int)
Insert into #tmp (empId,ename,deptId,salary)
exec GetData
Niraj SevalkarYou cant get two resultsets out of SP like this. The workaround is to merge and bring the resultsets.
For this number of columns as well as corresponding datatypes have to be compatible. Also you will need one additional column which indicates resultset value. Then use this as filter to get your desired resultset out
create procedure GetData as
begin
select 'resultset1' as Cat,*,.. N columns from Emp
union all
select 'resultset2' as Cat,*,.. N columns from Dept
end
create table #tmp1 (Ddeptid int, deptname varchar(500),Location varchar(100))
Insert into #tmp1 (Ddeptid , deptname ,Location )
Select column1,column2,column3
from OPENROWSET('SQLOLEDB','Data Source=Server_name;Trusted_Connection=yes;
Integrated Security=SSPI','Execute yourdb..GetData')
WHERE Cat = 'resultset1'
create table #tmp (empid int , ename varchar(500),DeptId int , salary int)
Insert into #tmp (empId,ename,deptId,salary)
Select column1,column2,column3, column4
from OPENROWSET('SQLOLEDB','Data Source=Server_name;Trusted_Connection=yes;
Integrated Security=SSPI','Execute yourdb..GetData')
WHERE Cat = 'resultset2'
also see
http://sqlblogcasts.com/blogs/madhivanan/archive/2007/11/26/select-columns-from-exec-procedure-name-is-this-possible.aspx
Another method is to populate table with relevant resultset within procedure itself and then select from the table directly outside.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Map one source elements to two different target elements
Hi Gurus,
In our scenario, we have single source. and we are mapping this single source to two different structures, based on condition in the source records on one field, we are mapping to either X structure or Y structure. in my case i have to generate only one file at a time based on condition.
If condition is true, i have to mapp it for X structure, if its false i have to mapp it for Y structure. but in my case i getting a blank file for another mapping. i should stop this blank file.
any suggestions and solutions will be rewarded. this is an urgent issue, please help me.
Thanks in advance....
Thanks & Regards,
Anuj..I have already used an if-then construct and an enhanced ID.Thanks anyway.
Let me explain using a source interface (s1) and target interfaces t1 and t2.
Based on the condition, only one interface(lets say t1) will be selected, target mapping is done for this.
But the problem is that the other interface (t2) also executes(having only the root node) and the end result is i have two files - one with the mapped payload and another empty one with only the root node.
My requirement is to remove this empty file at the mapping stage itself , as -
1) i only need a single file at the receiver.
2) i do not want an extra payload for every record i send, creating unnecessary load on my IE.
Also due to performance issues i do not want to move this to a BPM.
I have attached the o/p screenshot at http://www.flickr.com/photos/14210232@N03/1550768802/
In window 1 i have the correct output .i.e of the interface t1 which was mapped.
In window 2 i have the unwanted output. i.e the interface t2 which is creating another file at the receiver.
<b><b>Ques</b></b>: When using enhanced ID/multi-mapping, under Messages tab, if i set my target message type to 0..1, should it not work? I have tried this but it doesn't.
Do let me know a way out! Thanks.
Anuj. -
How can I get one link to open two different PDFs?
Even though I'm only the hardware support guy where I work, I've been asked to maintain the web site. The latest request is that they want to get one link to open two PDFs. I know you can do something like that with web pages, but I'm not sure if you can do the same with PDFs. I only know the basics of Dreamweaver, so, if it can be done, please explain it to me like I'm a 5-year-old. However, I'm not afraid of code. Thanks, in advance, for any assistance.
Hi
You can do this by using the javascript onClick event to load the 2 pdf's, but if I was to see such action when clicking a link I would suspect that it was trying to open multiple pages, (as per spam sites) and immediately close the tabs/windows and never visit the site again.
If you do require two pdf's then merge both pdf files into one, and link to the single file as normal.
PZ -
Stores in one banner owned by two different companies (Retail)
Hi All,
We have a scenario where one of our retail chains (banners) has stores that can be owned by one of two legal entities - one of the legal entities is a wholly owned subsidiary, whereas the other is a joint venture. We want pricing, promotions, etc. across all of our stores within the banner to be the same, however the stores need to be attached to one of two separate company codes.
It isn't possible to assign one Sales Organisation to two Company Codes (which would solve our requirement) - does anyone have any ideas on how to best handle the above requirements given the challenges with org structure assignment?
Many thanks,
SteveYes, you can refer in a query to other database. The syntax is simple: DatabaseName..TableName
So assuming you use the query in database A you and the UDF in database B is U_POnum,
you can try this:
SELECT
T0.DocStatus 'Status',
T0.DocNum'Purchase Order No.',
T0.CardCode 'Supplier No.',
T0.CardName'Supplier Name',
DATEPART(ww,T0.DocDuedate)'Week',
DATEPART(mm,T0.DocDuedate) 'Month',
T1.TrnspName 'Delivery Method',
T2.Country 'Country',
T0.JrnlMemo 'Method',
T3.SlpName 'Rep.',
S0.DocStatus 'Status',
S2.SlpName 'Rep.',
S0.DocNum 'Sales Order No.',
S0.CardCode 'Customer No.',
S0.CardName 'Customer Name',
S0.NumAtCard 'Customer Order no.',
S0.DocDueDate 'Cust. Delivery date',
S0.DocTotal ' Doc total',
S1.TrnspName ' Delivery Method',
B0.DocStatus 'Status',
B2.SlpName 'Rep.',
B0.DocNum 'Sales Order No.',
B0.CardCode 'Customer No.',
B0.CardName 'Customer Name',
B0.NumAtCard 'Customer Order no.',
B0.DocDueDate 'Cust. Delivery date',
B0.DocTotal ' Doc total',
B1.TrnspName ' Delivery Method'
FROM OPOR T0
INNER JOIN OSHP T1 ON T0.TrnspCode = T1.TrnspCode
INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode
INNER JOIN OSLP T3 ON T0.SlpCode = T3.SlpCode
INNER JOIN POR1 T ON T0.DocEntry = T.DocEntry and T.VisOrder=0
left join ORDR S0 on T.[BaseType]=17 and T.[BaseEntry]=S0.DocEntry
left JOIN OSHP S1 ON S0.TrnspCode = S1.TrnspCode
left JOIN OSLP S2 ON S0.SlpCode = S2.SlpCode
left join DbaseB..ORDR B0 on B0.U_POnum=T0.DocNum
left JOIN DbaseB..OSHP B1 ON B0.TrnspCode = B1.TrnspCode
left JOIN DbaseB..OSLP B2 ON B0.SlpCode = B2.SlpCode-- -
How to fetch the data into one out parameter from two different queries
Hi,
I have an a problem how to implement condition in above procedure,and scenario is
i have to get the output into one out parameter from two queries.i.e if one query data is null
then i have to pick out data from another query into same out parameter.
CREATE OR REPLACE PROCEDURE GET_POLICIESMAP_BASEDON_GHPLID(I_COMPANYID IN NUMBER,
I_CARDID IN VARCHAR2,
PR_RESULTSET OUT SYS_REFCURSOR) IS
/* LOC_INSUREDID VARCHAR2(200);
LOC_RELATIONCODE VARCHAR2(200);
LOC_CURRENTPOLICYID VARCHAR2(4000);*/
BEGIN
OPEN PR_RESULTSET FOR
WITH A AS
(SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
id INSUREDID,
RELATIONCODE,
CURRENTPOLICYID
from INSUREDPERSONS IP
LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
ON PM.POLICYID = IP.Currentpolicyid
where EIN IN (SELECT EIN
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)
AND IP.CURRENTPOLICYID in
(SELECT ID
from policies
where companyid = I_COMPANYID
and dead = 0
AND POLICYTO > SYSDATE - 1))
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE = 0
AND (A.MAINPOLICYID is null or
RELATIONCODE = 0 AND CURRENTPOLICYID = MAINPOLICYID)
UNION
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE > 0;
/* HERE I NEED TO GET THE DATA FROM THIS BELOW QUERY INTO SAME OUT PARAMETER
WHEN ABOVE QUERY DATA CONTAINS NULLS */
/* IF PR_RESULTSET IS NULL THEN*/
OPEN PR_RESULTSET FOR
WITH A AS
(SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
id INSUREDID,
RELATIONCODE,
CURRENTPOLICYID
from INSUREDPERSONS IP
LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
ON PM.POLICYID = IP.Currentpolicyid
where FAMILYID IN (SELECT FAMILYID
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)
AND IP.CURRENTPOLICYID in
(SELECT ID
from policies
where companyid = I_COMPANYID
and dead = 0
AND POLICYTO > SYSDATE - 1))
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE = 0
AND (A.MAINPOLICYID is null or
RELATIONCODE = 0 AND CURRENTPOLICYID = MAINPOLICYID)
UNION
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE > 0;
/* END IF;*/
END GET_POLICIESMAP_BASEDON_GHPLID;
Thanks in Advance,
vvr.SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
id INSUREDID,
RELATIONCODE,
CURRENTPOLICYID
from INSUREDPERSONS IP
LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
ON PM.POLICYID = IP.Currentpolicyid
where EIN IN (SELECT EIN
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)In this code
where EINEIN is a column in INSUREDPERSONS?
and in the sub query below
(SELECT EIN
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)EIN belongs to INSUREDPERSONS or VW_INSUREDINFO?
Please use Alias as we dont know your table structure. -
Formula that looks at two different fields
Hi,
I posted this request for help not too long ago but didn't clearly explain what is needed.
When text is entered into a field (currentgoal1, currentgoal2 - each equaling 1), the formula needs to look at a different field (point1, point 2 - each holds a list box of with points 1, 3, 5, or NA) to see if "NA" was chosen. If NA was chosen (rather than a point, 1, 3, 5) then the goalcount (total number of populated currentgoal fields) needs to subtract 1 from goalcount.
currentgoal 1 = 1 point
currentgoal 2 = 1 point
currentgoal 3 = NA
3 goals, 2 points, 1 point field with NA
Since one of the current goals is has a point of NA, the overall count of currentgoals in the goalcount field (total number of populated currentgoal fields) should state 2 with the totalpoints field (all points fields added together) stating 2.
How can the formula be adjusted to subtract a currentgoal with a chosen point of NA?
Formula used now for counting current goals:
goalcount = 0
!= null){
= goalcount + 1;
!= null){
= goalcount + 1;
(Table3.Row3.currentgoal3.rawValue!= null){
= goalcount + 1;
if(Table3.Row4.currentgoal4.rawValue!= null){
= goalcount + 1;
if(Table3.Row5.currentgoal5.rawValue!= null){
= goalcount + 1;
if(Table3.Row6.currentgoal6.rawValue!= null){
= goalcount + 1;
if(Table3.Row7.currentgoal7.rawValue!= null){
= goalcount + 1;
if(Table3.Row8.currentgoal8.rawValue!= null){
= goalcount + 1;
if(Table3.Row9.currentgoal9.rawValue!= null){
= goalcount + 1;
if(Table3.Row10.currentgoal10.rawValue!= null){
= goalcount + 1;
if(Table3.Row11.currentgoal11.rawValue!= null){
= goalcount + 1;
if(Table3.Row12.currentgoal12.rawValue!= null){
= goalcount + 1;
if(Table3.Row13.currentgoal13.rawValue!= null){
= goalcount + 1;
if(Table3.Row14.currentgoal14.rawValue!= null){
= goalcount + 1;
if(Table3.Row15.currentgoal15.rawValue!= null){
= goalcount + 1;
= goalcount;
this.rawValuegoalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
goalcount
if
goalcount
(Table3.Row2.currentgoal2.rawValue
if
goalcount
(Table3.Row1.currentgoal1.rawValue
if
varSorry, I was trying to edit. Is this better?
var
goalcount = 0
if
(Table3.Row1.currentgoal1.rawValue
!= null){goalcount
= goalcount + 1;}
if(Table3.Row2.currentgoal2.rawValue!= null){goalcount
= goalcount + 1;}
if(Table3.Row3.currentgoal3.rawValue!= null){goalcount
= goalcount + 1;}
this.rawValue= goalcount; -
Can you add one L3-class to two different policy maps ?
Hi Experts;
Requirement is to have requests from outside as well as inside from different vlan Server to our Production Servers.At present all requests are coming from inside vlan via policy-map multi-match L3_XYZ. See Example below
policy-map multi-match L3_XYZ
class L3_PROD
loadbalance vip inservice
loadbalance policy L7_PROD
loadbalance vip icmp-reply active
policy-map multi-match L3_OUTSIDE
class L3_PROD
loadbalance vip inservice
loadbalance policy L7_PROD
loadbalance vip icmp-reply active
Many thanks
RegardsHi Hidayat
yes, class map alone doesn't have any deep meaning and can be reused in many policy maps. Actually policy maps can be reused too, so in your particular example you can put the same policy map on 2 different interfaces. (Sometimes it's a good idea, if requirements are the same for traffic coming from both interfaces or if requirements are diffrent - it's better to create a new one, but class-map definitely can be reused.) -
How to work on one project but with two different computers
I'm editing a movie.
My computer might be overwhelmed with all the information - speed is slowed and it gets hot quickly.
I would like to use my second computer where I have cloud installed
to edit on the same timeline or in a different sequence to give my
main computer a rest.
Is that possible?
Thank you for your help!As well as the reply from Anish about using your program on 2 computers, you need to ask in the program forum for how to best use the programs to do what you want
http://forums.adobe.com/community/premiere_elements/content
http://forums.adobe.com/community/premiere/content -
One apple id on two different ipads at one time?
for my friend. owns an iPad 3, won an iPad Air. Can one itunes store account, aka apple id be used on both iPads?
Of course. Moreover, that's what your friend has to do if he is the owner of both devices, so he can have the same purchases and information in both iPads
Maybe you are looking for
-
Midi tempo/key Apple Loops
I tried working with Apple Loops and an extensive external midi rig the other day and came to an impasse at trying to do the following. Any suggestions? I used a ton of Jam pack loops with original loops in exs24 and external modules What I wanted to
-
Hi Folks, I have a few Solaris 10 production machines here at work and had a strange thing happen. I added a new route to these machines using the "add route <destination > <gateway>" command and my web applications running in the zones on these mach
-
hello .. can anyone help me.. my problem begin like this.. my program is about reading DNA sequence, which the file name is <<" hxk_yeast.fasta ">> before running my program , i've compile all classes inside my program so my ...question is : should i
-
IDOC to Flat file and Flat file to IDOC
Hello Experts, I have the following requirement in my current project: Third Party Sender sends the data in the in the below XML format via HTTP: <?xml version="1.0"?> <fxEnvelope> <header> <message> <exchangeID></exchangeID> <mes
-
How to know interfaces connected to BI system
Dear Experts, I want to know how many interfaces my BI SYSTEM in connected to. How can I find that. Thanks