CMS wont write to database

I currently manage / maintain my own photography website.
At the moment I can create new galleries on my site via a content management system and in that new gallery I then upload images. On the database the gallery info goes into the row "galcat" and various data into fields and the same for images into the row "photos" and various fields for image code / image link etc
What I have done is duplicated the pages that make the gallery and also the images and created new rows / fields for the info to get written into. galcatsurf and surf (for the images) I have changed all the corresponding info correctly in the duplicated CMS admin pages but for some reason the info isnt writing into the database. The image uploads to the right file but no data concerning the image is added.
for example the original code looks like this for the image add page     $result=MYSQL_QUERY("INSERT INTO photos (prodId..... etc etc and in the duplicated pages all I have changed is things like this   $result=MYSQL_QUERY("INSERT INTO surf (prodId..... etc etc
I use the same structure on a new database for a different stock images site and I have the same problem. But the original gallery and image admin pages work and write fine to the database. It is just the duplicated ones that dont and have problems. I have gone over and over the code and also the database rows and fields text / code and everything marries up.
When the images upload they get allocated their own number via "prodId" field on MYSQL it is an INT(11) auto_increment and is marked as primary key
Am I missing something.
Cheers
Matt

Thanks for the quick reply David.
Will the globals turned on or off, wouldnt that effect the whole database?
I have checked my forms and code and they all POST.
I have also checked the names and they are all correct with whats on the database.
Not sure if posting the code would matter as it is the same in all duplicated pages. Just the row names are changed.
When I hand type the field data into the row that wont allow itself to be added via the admin page the edit pages will pull the data out fine, but again they wont update and write to the database.

Similar Messages

  • Query Database - Write to Database

    I am querying a SQL DB which has 10 results in total with 15 fields each. The run book will filter out 2 eventually based on some rules.
    Once all the activities are complete as per the runbook, I want to write back to the database as 'Complete' under Field called Status
    The write works, however it creates a new item completely. I want to update the existing request
    Regards, Vik Singh "If this thread answered your question, please click on "Mark as Answer"

    So if I understand correctly you are querying a database and based on the response you do some activities and then you want to update the records you queried in order to indicate that the activities have been completed?
    If you just want to update the existing records then I would probably just do an Update query based on the primary-key of the record you queried using the "Query Database" activity instead of the "Write to Database" (which always writes
    a new record).
    Something like: Update [Table Name] set Status = 'Completed' where PrimaryKey = 'xxx'
    You will probably need to cut up the Query Result from your first query first in order to get the Primary Key.
    Usually I do this by reading Published Data "Full Line as String Seperated by ;" with a PowerShell Script (Run .NET Activity).
    For example:
    $Query = <Full Line as String >   //Published Data from the Query activity
    $All_Records = $Query.Split(";") //this creates an array where every record is a column from the query result
    $PrimaryKey = $All_Records[0]  (if the primarykey is found in the first record of the array of course)
    Then use that $PrimaryKey value in your new query.

  • Managed Metadata (Failed to read from or write to database. Refresh and try again. If the problem persists, please contact the administrator)

    When creating a new site column of the managed meta data type in SharePoint2010, and you select "customize your term set", you are presented with one of the following errors:
    - This operation cannot be completed. The term store may be unavailable.
    - Failed to read from or write to database. Refresh and try again. If the problem persists, please contact the administrator

    Hi,
    I have been facing the same issue, however managed to resolve it.
    This is due to the uncommitted statements. From Powershell try running the following script
    #Connect to Central Admin, Replace the url with the environment specific URL
    $taxonomySite = get-SPSite http://centraladmin:40000
    #Connect to Term Store in the Managed Metadata Service Application, Ensure you put the right Metadate service application name
    $taxonomySession = Get-SPTaxonomySession -site $taxonomySite
    $termStore = $taxonomySession.TermStores["Managed Metadata Service"]
    write-host "Connection made with term store -"$termStore.Name
    #Connect to the Group and Term Set
    $termStore.RollbackAll()
    Hope it would help

  • How to open MSWORD using JAVA/JNI and write the database entries into WORD

    Hi..
    I am searching for java codes that uses JAVA NATIVE INTERFACE (JNI) for opening MSWORD 2003.
    To be brief.
    I created HTML form called Employee_data.
    if i click on Submit button a word document should be opened.This should be using JNI.
    I have also created a servlet in jsp to process the form data and store it into database(mysql).;
    Please help me to find the codes to open MSWORD on submit click and to write the database entries into word file.Can i get the full code for that.This is so urgent.
    Thanks in advance.

    Hi Suresh,
    The easest solution I can think of is to copy the math equation from the PowerPoint then paste in the Word document directly, there's actually no way to convert it to plain text, some equation is very complext, String variable is not suitable in this case.
    For example, this code works fine:
    var powerPoint = new Application { WindowState = PpWindowState.ppWindowMinimized };
    var oPresSet = powerPoint.Presentations;
    Microsoft.Office.Interop.PowerPoint._Presentation oPres = oPresSet.Open(@"C:\test.pptx", MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);
    var strObj = oPres.Slides[1].NotesPage.Shapes[2].TextFrame2.TextRange.MathZones.get_MathZones();
    strObj.Copy();
    Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
    wordApp.Visible = true;
    Microsoft.Office.Interop.Word.Document doc = wordApp.Documents.Add();
    doc.Range(0, 0).Paste();
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to write from database to XML file using JAVA and back..

    Hi....
    I am strugling for a code to write from database to xml output instead of what i have written in flat file....could anyone please help me out...to do this and again read the same back to the database using java...

    Hi,
    In java world, there is a tutorial on what you are looking for :
    http://www.javaworld.com/javaworld/jw-01-2000/jw-01-dbxml_p.html
    It uses SAX/DOM parsers to translate XML data into the appropriate fields of the database and visa-versa.
    Hope it helps.

  • I Can't Write in Database with firmware 4.3.5 ?

    HI
    I have an Iphone with 4.3.5, and in my app, i write on Database, but with this Iphone dosrn't write.
    i have another iphone with 4.1, and i write on Databse without problems... the code is the Same!
    if i Debug the iphone with 4.3.5, with app.debug, i have the trace with this error:
    3122
    Attempt to write a readonly database.
    and i read:
    Indicates that an operation could not be completed because the database is read only. This can occur if the database file is designated as read only in the operating system, if the database is opened in read-only mode, or if an older version of Adobe AIR accesses a database file created with a newer version of the runtime.
    Please Help Me
    Thank You!

    You've tried what's mentioned on this page : http://support.apple.com/kb/TS3694#error3194 ?

  • Can Read but Can't Write to Database

    hi...i'm fairly new to java and have a problem w/ a database program i have written...i'm running windows xp along w/ access xp...the program i wrote works fine on my computer, however, the program is for my brother and on his computer it only reads from the database but can't write to it...unfortunately i packed the program in a jar file so when u run the program no console comes up to display the exceptions...he is running windows 98 (first edition) and doesn't have any version of access on his computer...i figure his odbc driver is out of date or something like that but i wouldn't know where to start to tackle this problem...any help w/ be very much appreciated...thank you...

    First, don't cross-post:
    http://forum.java.sun.com/thread.jsp?forum=54&thread=440288&tstart=0&trange=15
    Submit your question to the forum that best suits its contents. Don't try to increase your chances of getting a response by posting the same question here, there, and everywhere. It's considered rude.
    Second, if you've written a Java app that runs fine on XP, then your Java is okay. That's a good start.
    I think Windows 98 is the problem. It's rather old technology now. I would say that Windows 9x really isn't an application platform worth thinking about. You might be correct - the ODBC driver might be out of date.
    Is the version of Access you're running the same on both machines?

  • Changing CMS and Audit Repository databases from Oracle to SQl server 2008

    Hi guys,
      We have a Business Objects Dev environment which was installed with Oracle 10g database for CMS and Audit Repository.
    Our database team now decided to change the CMS and Audit databases of Dev BOE from Oracle to  SQL server 2008.
    What is the ideal way to achieve this? I'm concerned because the old DB is Oracle and the new one would be SQL server.
    Earlier, I have changed CMS database from one to another by stopping SIA , taking the backup of old DB into new and changing it in the Update Databse option. But in that case both old and new CMS databses were on SQL server 2005.
    Thanks,
    Ganga

    Denise,
      Thanks for the solution.
    We have done Windows AD and SAP integration on the Dev BOE. Will there be any issue with those after the DB change. I am guessing there won't be, but just want to confirm. Please reply.
      Also, we need to stop the old SIA and start using the new SIA after the step two is done right?

  • Write/Read Database with "Jeffrey"-VIs

    Hello,
    i want to write/read a sql-database without-the NI-Toolkit.
    I found while searching here the Tools from Jeffrey which are available here: http://jeffreytravis.com/lost/index.html
    Now i unocked the files and wanted to try t he example "Example - Fetch a Table.vi".
    There is also a demo-database included called: "SampleDatabase.mdb"
    My current problem is that i dont know what to set to the parameter "connection-string" (somehow the filename, but how?)
    Does someone know how to use these files?
    Thx for your help
    Attached the downloaded zip-file with all the data
    Attachments:
    LabSQL-1.1a.zip ‏1132 KB

    I tried to do what the readme says, but i think there is a problem with my windows-installation or something is missing.
    a. Go to
    your Windows Control Panels, and open "ODBC Data Sources"
    b. Click on the "System DSN" tab
    c. Click on the "Add..." button.
    d. From the list of drivers, choose
    "Microsoft Access Driver"
    No problem up to this point, but after i selected the "Microsoft Access Driver" and press "Fertig stellen" the window closes and it look like before, there is nothing like a dialog box (see attached screenshot), so i can´t continue with th points e..g.
    e. At the dialog box, type in
    "myDB" for the Data Source Name. Then click on "Select..."
    button, and find the file "Sample Database.mdb" included with the
    LabSQL examples. Leave everything else as it is, and hit OK.
    f. Close the ODBC control panel
    g. Test the connection by running one of
    the examples provided.
    Is there a way to re-install this part of windows?
    Thanks for your help
    Attachments:
    empty.jpg ‏76 KB

  • Trying to configure syslog process,to write the database audit logs

    Folks,
    Running Oracle 10g R2 on Sun Solaris v 10.
    I am trying to configure my database environment, so it will write all the database audit logs to a location, where Oracle userid on unix cannot modify/delete it.
    To accomplish my goal, so far I have done the following:
    I have set the following parameter with these values
    audit_file_dest /flood/u01/app/oracle/product/10.2.0/db_1/rdbms/audit
    audit_sys_operations TRUE
    audit_trail OS
    Also I asked my system administrator , to make an entry in the syslog.conf file at location /etc
    He made the following entry
    local3.notice /var/log/oraaudit.log
    and restarted the syslog process
    I also made the following entry
    alter system set audit_syslog_level='LOCAL3.NOTICE' scope=spfile and bounced the database.
    But after starting the database, i will don't see any oraaudit.log file at the location /var/log
    Any help will be much appreciated.
    Regards
    Ashish

    Hello Srini,
    I mentioned in my posting , that I already set AUDIT_SYSLOG_LEVEL=LEVEL3.NOTICE value.
    Also the permission on /var/log is such the Oracle unix userid cannot write to it and that is what I want. Since if Oracle userid can write, it can modify/delete the audit log also , which we are trying to prevent.
    Thanks
    Ashish

  • Write Back - Database update logs user out

    Hi All,
    I have implemented write back functionality on a single varchar field in one of my reports. Everything appears to be setup correctly (permissions are set at the presentation and rpd layer to allow for the write back and the write back template appears to have no issues). When a user logs in they are able to see the editable fields and the Update button is enabled. When a user then changes a field value and hits the update button, everything again appears to complete without any error and checking the database side the update shows up correctly.
    The issue is that after the Update button is pressed and the database changes are committed successfully, the users session keeps getting logged out. Once they hit the update button and then try to click anywhere else within OBIEE, they are automatically hit with the logged out page and need to log back in. This happens everytime and the changes do take to the database.
    Has anyone ever seen this before? I have tried shutting down all windows and clearing browser cache and then coming in fresh but keeps happening.
    Thanks,
    k

    Hi,
    though this thread is closed i just want to put some note.
    try playing with the Isolation Levels.
    If you used Toad, you might have come across a functionality when your logging off...which is to commit your transactions before logging off.
    Envisioning this functionality i presume there should be some db level property that might be causing this in that particular environment.
    thanks
    -nag
    http://www.obinotes.com

  • 48/16/48 cdrw wont write above 12x

    my cdrw used to work fine at 48x but then decided it didn't like that. the maximum allowable speed now shown in nero is 24x but if you try to write at this speed is makes a stupid sound for a bit then spits out the cd unwritten. it will only work if the write speed is reduced to 12x. tried cleaning the lense and updating the bios, still wont have it. someone please help me before it becomes an expensive shot put.  :D

    by default, windows disables DMA transfers on all drives. go to device manager, click on 'ide ata/atapi controllers', for both ide channels go to 'advanced settings' where it says 'pio' change to 'DMA if available' and bish bash bosh writes like new!! on my system there were conflicts between my hard drive and cdrw when i tried to enable this option, a bit of jiggling of devices so that they were on different channels and sorted!! must have been when i re-arranged stuff in my comuter and not used the writer for a while, then when i came to use it thought it had died. DOH!!  :D

  • CMS Wont start after install of CR XI R2

    I have installed CR XI R2 and try to login but I get an error message stating that the CMS server has not started.  I go to start the CMS server from the Business Objects folder I just downloaded onto my Windows 2003 server and I right click on the CMS server to start and it blinks a couple of times then doesnt do anything.  Anybody have any suggestions?

    Which kind of repository database do you use?
    Does your server use more that one network cards?
    Regards,
    Stratos

  • How write to database?

    Hi,
    if I have an input text form, where the user entry is stored in a variable of a bean, how could i write the value of this variable to the database?
    I don't know how to code this. Is this realized within the bean or in the class of an entity object?
    I would be very grateful, if someone could post a code example of this.

    Read this section in the Fusion Developer Guide:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcvalidation.htm#insertedID4
    7.4.1 How to Ensure That Key Values Are Unique
    The Unique Key validator ensures that primary key values for an entity object are always unique. The Unique Key validator can also be used for a non-primary-key attribute, as long as the attribute is defined as an alternate key.
    But in general you can either write code in your managed bean that access an AM and work with it - or you can use an AM Service method and write the logic you want at the ADF BC layer.
    Both approaches are explained in the Fusion Developer Guide:
    See sections 9.7 and 9.8 : Customizing an Application Module with Service Methods
    or 9.10.3:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcservices.htm#sthref794

  • Testand write to database only with 'On the Fly'

    I'm writing all results to an Access database.
    But results are written only if 'On the Fly' is set.
    Why?
    Ofer

    Hi Ofer,
    When writing to a database, as I'm sure you know, on the fly will write all of your results during sequence execution. That said, all of your results should be written at the end of the execution at the LogToDatabase callback if you do not have on the fly checked. This behavior is built-in to TestStand, so if it is not working, it generally means that something on your TestStand system was changed.
    Have you altered your sequence file or added any callbacks to your sequence file? What process model are you using?
    I would suggest setting a breakpoint at the LogToDatabase callback and stepping through the code to see what is called. I believe this will put us on the track towards a solution.
    Regards,
    Matt M.
    NI

Maybe you are looking for

  • Lenovo ideapad Z710

    Hallo ich habe im Novenber 2014 das Laptop gekauft,jetzt ist das laptop laufend abgestürtzt.Und weil ich 100% Behindert binn hat mein freund aus versehen die HDD Komplett mit einem Festplattenprogramm gelöscht.das Lenovo Z710 Läuft mit win.8.1.jetzt

  • Is Creative Audigy 2ZS Platinum Sound Cardcompatible with Yamaha Keyboards? (XG sound

    Hi, I have an Yamaha PSR -550 keyboard that can generate Yamaha XG sound forms in addition to General Midi. Now I want to buy a sound card that is 00% compatible with this key board so that I can connect it to computer. Are Creative Audigy 2ZS Platin

  • Error Code 8450 when download app use paypal for unipay debit card in China

    I tried both desktop or smartphone when i buy speed limit alarm for 0.75$, there is a valid preproved payment  at my paypal account, of course my us account deposite is 0 ,for  i use a debit card for payment.  i have learned that paypal said he will

  • Can't update the Nike + iPod voice kit

    Every time my nano (4Gb, second generation, software version 1.1.3) is connected to my iMac, iTunes 7.2 pop the message that a new Nike + iPod voice kit is available. When I click Install, nothing happens, no download or installation process begins.

  • Confusion in KeySet

    Hi, I'm confused about the semantics of KeySet(filter)... If you read the docs, it says: public Set KeySet(filter) Return a set view of the keys contained in this map for entries that satisfy the criteria expressed by the filter. Unlike the Map.keySe