Problem with update record, then link to file

Environment:
Dreamweaver 8, MySQL, PHP.
I have a repeating record from my database. I added an Update
Record server behavior for each search result for the result table.
I added a button to the form and changed "submit" to "view".
Pressing "view" is supposed to allow the user to view the detailed
record information.
The Update Record server behavior is supposed to do two
things:
1) add 1 to the 'numViews' filed of the record's database
entry when the "view" button is pressed
2) After updating the numViews field, the form is supposed to
redirect the user to the detailed record
I found that depending on how I create the record, I an do
one of the above 2 behaviors, but not both. HELP!
To add 1 to the numViews field, I created a form variable
called incNumViews, which does the following:
<?php echo $row_rsSearchResults['recipeNumViews']+1; ?>
Very simple.
The Update Record ends up changing the form action to the
following:
<?php echo $editFormAction; ?>
Looking at the code for this, I ee the following:
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" .
htmlentities($_SERVER['QUERY_STRING']);
But when the "view" (ie: submit" button for the form is
pressed, I get redirected back to the same repeating record search
result page, not to the record detail page.
However, the numViews field in the record is getting properly
incremented.
I tried to get around this by changing the Update Record
behavior "After updating, go to:" field to point to the record
detail page, and tried passing a parameter tot he recordID I want
to see details of, as a URL parameter, but that does not work.
If I change the Update Record form action from
<?php echo $editFormAction; ?>
to
record_detail.php?recordID=<?php echo
$row_rsSearchResults['recordID']; ?>
Then I am able to link to the detail page, but NOT update the
numViews field.
HOW can I fix this to both update the record, then jump to
the detail page with a URL parameter being passed, when I click the
"view" (submit) button o the form??
Thanks in advance.

If the user's computer doesn't know what to do with a TIFF file, I guess that Open button would be missing.  Tiff is not a web normal file format, or even a common one for graphics applications....

Similar Messages

  • Problems with Update Record behavior

    I am sorry to ask this question again since I have not resolved the issue yet.
    When I am using the Dreamweaver Update Record behavior,  I am not able to get the form validation to work.  I implemented the form validation by inserting  onsubmit="return someFormValidation(this);" into the update form created by Dreamweaver.
    When I hit the submit button the JavaScript validation function is not even invoked.
    However when I use the same method for form validation with Insert Record behavior I have no problems.  Is this difference I am observing between the Insert and Update behaviors the way Dreamweaver supposed to work?  If yes how can I do my form validation during an Update Record?
    Note that the pages involved are all php pages, therefore we are talking about server side validation here.
    If anyone can help I will be grateful as I am really stuck...

    I am closing this even though I got no answers as the weird behaviour has disappeared....

  • Problem with updating records in database

    Hello everyone,
    I have a question, i have a database and in the database I want to update some records.
    Now, in my database I have refnr, vnr, etc� it is possible that I have 3 the same refnr (example)
    98765A     001     
    98765A     002
    98765B     003
    Now, the program must compare the records between 2 databases and than update al the records flag (example) after comparing
    98765A     001     A
    98765A     002     A
    98765B     003     A
    Now my question is, in the first code 1 example I search all the records and after a IF statement the program send the refnr and the vnr object to updateRecordsFlag(String refnr, String vnr) now In the example above you see I have for example 3 records and these 3 must updated with a A
    Sow, I have made a FOR statement that gets the highest vnr and count to 1 (Teller--), how can I make a FOR statement that send each time an object to updateRecordsFlag(String refnr, String vnr). Now it�s just the highest record that updates.
    I use preparedstatement. For read, etc�
    code 1
    try {
    rowBeheerRefvolgnrs = datasender.readBeheerRefvolgnrs();
    } catch (Exception ex) {
    ex.printStackTrace();
    String refnr = "";
    String vnr = "";
    String code = "";
    int i = 0;
    while (i < rowBeheerRefvolgnrs.length) {
    refnr = rowBeheerRefvolgnrs.substring(0,27);
    vnr = rowBeheerRefvolgnrs[i].substring(27,30);
    code = rowBeheerRefvolgnrs[i].substring(14,15);
    if (code.compareTo("A") == 0) {
         int Teller = Integer.parseInt(vnr);
         updateRecordPersonA(refnr, vnr);
              for (int j = 1; Teller >= j; Teller--) {
              updateRecordsFlag(refnr, vnr);
              vnr = new Integer(Teller).toString();
    if (code.compareTo("B") == 0) {
    //updateRecordPersonB(refnr, vnr);
    i++;
    logger.debug("update end ");
    private void updateRecordsFlag(String refnr, String vnr) {
    Here i have my code to update the flag

    declare @table nvarchar(128)
    declare @idcol nvarchar(128)
    declare @sql nvarchar(max)
    --initialize those two values
    set @table = 'Table_name'
    set @idcol = 'some id to recognize the row'
    set @sql = 'select ' + @idcol +' , (0'
    select @sql = @sql + ' + isnull(datalength(' + name + '), 1)'
    from sys.columns where object_id = object_id(@table)
    set @sql = @sql + ') as rowsize from ' + @table + ' order by rowsize desc'
    PRINT @sql
    exec (@sql)
    You can try this query. Too many varchar columns of big sizes can cause the row size to be bigger than what a row can hold, but its weird that it just went off in retry.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Problems with updating files in the cloud

    problems with updating files in the cloud

    What kind of problems?
    Have you recently upgraded to iCloud Drive on your iOS devices with iOS 8?
    Be aware, be careful, be prepared for iCloud Drive | TUAW: Apple news, reviews and how-tos since 2004

  • Problem with DMGs and error: "No Mountable File Systems"

    Problem with DMGs and error: "No Mountable File Systems"
    The files are not corrupt. The problem is occurring with all DMGs that are apparently formatted in MS-DOS FAT16. No the file will not mount with Disk utility or any other disk mounter programs I have found.
    This is now the second time this occurred and now effects my MBP and my iMac. First time i spent days with Apple support and the only solution was ultimately back up the data, reformat the HD, start over from scratch and reload everything. That lasted about a month before the problem resurfaced and is now an issue on both iMac and MBP.
    I tried to identify all the programs I installed immediately before the error, as I am convinced it is the result of a software conflict.
    Recent programs includes:
    1) upgrading from Parallels 5.5 to 6.0 on both machines.
    2) using an HP secure II usb drive and setting up a secure disk.
    3) installing new itunes 10
    4) new update to Flip For Mac.
    The files affected are downloaded dmgs, including personal brain and google earth, both which are formatted in FAT16.
    Any help or thoughts? Apple has now spent hours trying and they say i now have to reformat and wipe and start over. That is unacceptable and based on pasted experience the problem is likely to repeat itself. having to wipe and rebuild a HD ever month is not an solution. i need to fid the root problem.
    In the meantime, anyone got a real solution on how to extract the data for a DMG using a different method?
    Message was edited by: remaia

    Where you able to find the solution, i am having the same problem, all was fine till i install some programs only same one i saw did we both did was flip4mac i uninstalled it but the problem is still there, i also restored and erased the hardrive but im not up to doing that all over again. If you found anything out let me know i would greatly appreciate it

  • Problem with the EFI system partition's file system.

    I installed latest yosemite 10.10.2 update - did a verify disk on “WDC WD1001FALS-403AA0 Media” (internal HD on my iMac 21.5-inch, Mid 2011) and got
    Problems were found with the partition map which might prevent booting
    Error: The partition map needs to be repaired because there’s a problem with the EFI system partition’s file system.
    However a verify disk on the volume partition gets a clean bill of health!
    I haven't done a 'repair disk' yet. Thought I'd check if anybody else has same message first.
    Cheers

    I had issues where my MacPro 8-core would not boot after the 10.7.4 upgrade, but my MacBook Air 13" 2011 upgrade worked just fine.
    I had to restore my MacPro HD from my TimeMachine back up. Apparently, the Softraid raid drivers that I use on my MacPro are not compatible yet with 10.7.4. See here for more info:
    http://macperformanceguide.com/blog/2012/20120511_1-MacOSX-SoftRAID.html
    I contacted Softraid and they are already aware of the issues and are working with Apple for a fix.
    Cheers.
    Bud

  • MacBookPro SSD Error- ALERT: The partition map needs to be repaired because there's a problem with the EFI system partition's file system.

    MacBook Pro OS x Mavericks. I have Sandisk 256GB SSD and I am getting a below error message.
    ALERT: The partition map needs to be repaired because there's a problem with the EFI system partition's file system.
    Does anyone know how to resolve this error and fix it ? unfortunately I don't have a Time Machine backup. Thanks!

    Have you tried to run the verify/repair permissions and verify/repair disk through the recovery disk? If that didn't work then I would reinstall the OS after backing up. If that still doesn't work I would take it in.

  • HT201210 nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and somet

    nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and sometime just hear from other user that it 's difficult to use then force they change phone that use to handle to another.

    It is a feature to discourage the theft of iPhones by making them useless if resold. It's not going anywhere. It's simple: just don't buy a phone until you make sure that the activation lock has been disabled.

  • Problem with update MUSE CC 2014.2 (october 6). after upgrading to the new version of Muse crashes very often (out without notice).

    Problem with update MUSE CC 2014.2 (october 6). after upgrading to the new version of Muse crashes very often (out without notice).

    HELP! i can't get ANYTHING done in the new muse - keeps closing.  once it crashes - i can't get the file back open!
    i've lost all my work!
    from my desktop - when it stared happening was with the updated version:
    Logging in build 2014.2.1.10 started at: Mon Nov 03 13:36:38 2014
    ========================================
    [00:00:42.416] Opening file '\\D-LAPTOP\_websites\dsbees muse\dsbees.muse' with status:success size:9797632 mod Date:Tue Sep 23 15:51:42 GMT-0500 2014 highestUID: 3548
    [00:01:03.898] Preparing to Save As over "\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse" exists: true
    [00:01:17.516] SaveAs complete for file '\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse' file size:9830400 mod Date:Mon Nov 3 13:37:51 GMT-0600 2014 highest UID:3551
    Build 232: Mon Nov 3 19:41:03 2014 UTC: Error: CSI: OOBE: Serial Number: Error Code: O-10 Error Message: Unable to retrieve the serial number (Note: this may not be an error)
    Build 232: Mon Nov 3 19:41:03 2014 UTC: Error: CSI: OOBE: Serial Number: Error Code: O-10 Error Message: Unable to retrieve the serial number (Note: this may not be an error)
    Build 232: Mon Nov 3 19:41:07 2014 UTC: Error: CSI: OOBE: Serial Number: Error Code: O-10 Error Message: Unable to retrieve the serial number (Note: this may not be an error)
    Build 232: Mon Nov 3 19:41:21 2014 UTC: Error: CSI: IMS: Connect: Error Code: I-200 Error Message: No Account
    Build 232: Mon Nov 3 19:41:21 2014 UTC: Unknown IMS error 'SHARED_NOACCT_ERROR' has occurred when retrieving IMS token.
    Build 232: Mon Nov 3 19:41:57 2014 UTC: Opening file '\\D-LAPTOP\_websites\dsbees muse\dsbees.muse' with status:This Adobe Muse site file requires a newer version of Adobe Muse. Please update to the latest version. size:9797632 mod Date:Tue Sep 23 15:51:42 GMT-0500 2014
    Build 232: Mon Nov 3 19:41:57 2014 UTC: This Adobe Muse site file requires a newer version of Adobe Muse. Please update to the latest version.
    Logging in build 2014.2.1.10 started at: Mon Nov 03 13:43:17 2014
    ========================================
    [00:00:21.481] Opening file '\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse' with status:success size:9830400 mod Date:Mon Nov 3 13:37:51 GMT-0600 2014 highestUID: 3551
    [00:00:30.373] AssertInDebug: Unable to run recovery. User file remains locked after 5 second pause.-assertInDebugOnly+DataBase/recover+MuseSite$/recover+MethodInfo-2886+DataBase$/run Recovery+apply+UIComponent/callLaterDispatcher2+UIComponent/callLaterDispatcher+end stack
    [00:00:30.404] Failed to recover file:\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse
    [00:00:30.420] Calling openConnection for file that doesn't exist? C:\Users\Owner\AppData\Roaming\com.adobe.AdobeMuseCC.2014.2\Local Store\Recovery\JXRoDn335LE0UosOdoStnQ Parent folder exists.
    [00:00:34.429] open of SQL connection failed for C:\Users\Owner\AppData\Roaming\com.adobe.AdobeMuseCC.2014.2\Local Store\Recovery\JXRoDn335LE0UosOdoStnQ
    [00:00:34.429] Failed to open mini-save connection B "C:\Users\Owner\AppData\Roaming\com.adobe.AdobeMuseCC.2014.2\Local Store\Recovery\JXRoDn335LE0UosOdoStnQ" Doesn't exist. Folder exists. error:SQLError: 'Error #3125: Unable to open the database file.', details:'Connection closed.', operation:'open', detailID:'1001'
    [00:00:34.429] EXCEPTION:[SQLC/internalOpen] SQLError: 'Error #3125: Unable to open the database file.', details:'Connection closed.', operation:'open', detailID:'1001'-SQLConnection/internalOpen+SQLConnection/open+DataBaseConnectionWrapper/o penConnection+MethodInfo-28954+EventDispatcher/dispatchEventFunction+EventDispatcher/dispa tchEvent+MethodInfo-28938+end stack
    [00:00:34.445] AlertAndExit because of: [SQLC/internalOpen] SQLError: 'Error #3125: Unable to open the database file.', details:'Connection closed.', operation:'open', detailID:'1001'

  • Hello. i have a problem with updating illustrator CC 2014. i succeed updating indesign CC 2014

    hello. i have a problem with updating illustrator CC 2014. i succeed updating indesign CC 2014 & photoshop CC 2014, but every time i try to update illustrator CC 2014, its failed.
    how can i solve this problem?

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/

  • Y510p and problem with Update Nvidia Driver

    Hi everyonei have problem with updating my y510p lenovo laptop nvidia driver ,my current nvidia driver version is 327.62 which i download from lenovo website,Now for better performance in new games like gta v and witcher3 ,i decide to updating nvidia driver,first remove my nvidia graphic driver from add or remove then download nvidia ver 350 from nvidia official web site , which nvidia website confirm it support my graphic card which is Gt755m , then i install new ver and during install i check clean install , after successful install , restart laptop , then there was problem . when i try to open nvidia control panel it wont running and an error showed up and said "You are not currently using a display attached to an NVIDIA GPU" .i try to open a game , game running in really low fps and i find out game run on hd graphic of my laptop and my nvidia graphic wont run .The only way to repair was i install my last nvidia driver 327.62 and run a system restore .guys what is your suggestion and how i can update my y510p nvidia driver ?Thanks   

    Hi Y510Man,
         The video graphics installation order is important. You need to install the Intel Graphics first, and then do the Nvidia. IIRC you should un-install the Nvidia driver, then re-install (or upgrade) the Intel HD Graphics driver. Reboot, and install the new Nvidia driver.
         I don't know why, but every time I upgraded my Y470 Nvidia driver, I had to use this procedure. First install, or re-install, the Intel driver, then install the Nvidia. You can't just upgrade the Nvidia driver without a re-install of the Intel. I think it has to do with the Optimus setting, and the automatic switching.
        Let us know how it goes.
    Cheers
    DragonRider

  • Ipad will not start after problems with update to ios5

    Hi all,
    after some problems with update to ios 5 my ipad 2 will not start anymore...
    in itunes it is not visible - So restore is not possible... :-(((
    there are only "reboots" on the ipad screen...
    thank you for help....

    Nothing works...
    It is still the same since 7 hours :
    apple logo appears then an empty progress bar and after that the spinning wheel for about 5 minutes...
    apple logo appears then an empty progress bar and after that the spinning wheel for about 5 minutes...
    apple logo appears then an empty progress bar and after that the spinning wheel for about 5 minutes...
    and so on...
    No chance to switch of the ipad...
    No connection to itunes possible (Laptop and Dektop PC)
    after several resets it's the same problem..........
    ipad 2 | 32gb | WLan + GSM

  • Problem with updating the PC Updater software

    Good evening (from Germany). I have a problem with updating my Nokia Software Updater. I can download the setup and I can execute this. But when the installation starts (0%) a error message appears. It's a problem with Windows Installer but I don't know how to solve the problem. Here is a picture with the exactly error message:
    http://img-up.net/?up=Nokia_probES8HJXXg.jpg
    I hope somebody knows the anser with this software...
    Greetings
    OS: Windows XP SP2
    Phone: Nokia 3110 classic Firmware: V 5.50
    Message Edited by dernamenlose on 24-Apr-2008 08:56 PM

    Good morning (from Denmark).
    I hve the same problem.
    OS: WinXP SP2
    Phone: N73.
    Greetings.

  • I am trying to organize a zip file with a bunch of links and files. But when I drag an image file to a folder, it always "Snaps to grid" instead of just landing where I put it.

    I am trying to organize a zip file with a bunch of links and files. But when I drag an image file to a folder, it always "Snaps to grid" instead of just landing where I put it. All of the files are going into the same zip file but I want them visually in the space that I put them and not at the bottom of the snap to grid folder location they are looking like.  I am trying to  drag and drop files in groups so that I can group them for now, but image files always do their own "sort by" when I drag them from my web pages. Links don't do it though.  I tried resetting the folder, and deleting the DS files. No luck.

    You keep asking variants on this same question. You've had replies in all your other threads. If you can't find them, go here and click where it says Activity:
    Thomas Cannon Jr.

  • Problems with ECATT recording using SAPGUI Record

    Hello,
    I got a problem with my recording. All the prerequisites are  done. The problem is,  that when the recording is done i don't see the recording in SECATT testcase. Normally when you do a recording you see at the bottom right of the gui a red/white icon active. When i do a recording now, this red/white icon isn't  active.
    For my it's a very strange error. I hope somebody can give me a hint where i can look,
    Thanks in advance.
    Kind regards,
    Maarten.

    Maarten,
    First when you start the recording using SAPGUI, you will get the pop-up whether to record this new session. You need to select Yes before continuing your recording.
    Secondly check the scripting values in the target system whether it is enabled or disabled using the RZ11 transaction. Mostly SAP Basis team have authorization to change these values for us.
    Here is the parameter we need to check in RZ11 - sapgui/user_scripting. It should be TRUE.
    Let me know if this helps.

Maybe you are looking for

  • How to create a dyanamic query in PL/SQL from XML

    Hi Forum, I am having an XML file with tags. I am controlling my JSP page layout with these tags and it is working fine. But I need to send the Orange colour nodes to a pl/sql in the JSP page to construct the query as per the XML <?xml version="1.0"?

  • We accidently signed up to receive apps from our new printer-HP Officejet Pro 8600 Plus

    We accidently signed up for 2 apps that print daily.  How d I cancel these from coming? This question was solved. View Solution.

  • Purchased a TV show(Dragon's Den)but now it is not there....what's up?

    Well, .... i purchased the TV show Dragon's Den (season two and also season three) which I just love but as i was watching the download processing icons the season two downloaded into the iTunes library but season three did not.... this was because m

  • ICE produces invalid code

    Having defined two editable and one repeating regions in a page, I ran it through the W3C validator which reported this and similar errors: "Attribute "ice:repeating" is not a valid attribute", all errors generated by the ICE divs. I searched through

  • Uploading From Sony HD Camcorder

    I recently purchased a Sony camcorder HD the new 500.I use with a Sony shotgun mike and it is unbelievable for concerts.The problem is sharing. I don't want to post public like on youtube(plus I tried and it takes about 4 hr for a 5 min. video)The fi