Problems with Serv.Behav. Restrict Access Level

Hi,
I hope you can help - can't find an answer to this one. Been
going nuts on this! Thank you very much for anything help you can
provide.
1) Using DW 8.0, PHP 4.4.7, MySQL 4.1.22
2) Set up log in page, everything works if the LogIn Server
Behavior is set to "Restrict Access" to only Username &
Password. If set to Username, Password & Access Level get a
MySQL error page:
"You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to
use near 'Privileges FROM tbl_users WHERE Username=%s AND
Password=%s' at line 1"
3) Here's the code:
<?php require_once('Connections/conn_MemberList.php');
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
$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;
?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
if (isset($_POST['textfield'])) {
$loginUsername=$_POST['textfield'];
$password=$_POST['textfield2'];
$MM_fldUserAuthorization = "Privileges";
$MM_redirectLoginSuccess = "MemberList.php";
$MM_redirectLoginFailed = "MemberDeny.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_conn_MemberList, $conn_MemberList);
$LoginRS__query=sprintf("SELECT Username, Password,
Privileges FROM tbl_users WHERE Username=%s AND Password=%s",
GetSQLValueString($loginUsername, "text"),
GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $conn_MemberList) or
die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = mysql_result($LoginRS,0,'Privileges');
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
header("Location: " . $MM_redirectLoginSuccess );
else {
header("Location: ". $MM_redirectLoginFailed );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: small; }
-->
</style>
</head>
<body>
<p> </p>
<form id="LogOn" name="LogOn" method="POST"
action="<?php echo $loginFormAction; ?>">
<table width="100%" border="0" cellspacing="2"
cellpadding="2">
<tr>
<th scope="col"><div align="right"><span
class="style3">User:</span></div></th>
<th scope="col"><label>
<div align="left">
<input type="text" name="textfield" />
</div>
</label></th>
</tr>
<tr>
<td><div align="right"><span
class="style3">Password:</span></div></td>
<td><label>
<div align="left">
<input type="text" name="textfield2" />
</div>
</label></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="submit" name="Submit" value="Submit" />
</label></td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>
Thank you

I tried this and get the same error message.
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from ALPACWOBF
listener.ora:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = spruce)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = alpacwobf)
(ORACLE_HOME = C:\oracle\ora92)
(PROGRAM = hsodbc)
tnsnames.ora
alpacwobf.3LOG.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SPRUCE)(PORT = 1521))
(CONNECT_DATA =
(SID_NAME = alpacwobf)
(HS=ok)
initalpacwobf.ora:
HS_FDS_CONNECT_INFO = AlpacWOBF
HS_FDS_TRACE_LEVEL = 4
HS_FDS_TRACE_FILE_NAME = alpacwobf.log
ODBC setting is ok. odbc name is alpacwobf, db is access 2000.
restart the listener.
tnsping alpacwobf is ok.
database link creating is ok.
but when query,I got error.
alpac > create database link alpacwobf using 'alpacwobf';
Database link created.
alpac > select count(*) from test@alpacwobf;
select count(*) from test@alpacwobf
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from ALPACWOBF
Any help will be appreciated.
Thanks a lot.
Richard

Similar Messages

  • Problem with switching tabs in top level navigation for Roles

    Hi,
    I've created two tabs (based on two roles) in the portal top level navigation menu. When clicking the first one it opens as it should. Then when clicking on the second tab it will not open, instead the first tab open up again, it sort of switches back automatically.These  two roles  are  basically consists of worksets and iviews(accessing to r/3).
    Does anyone have any expericene with this type of problem?
    please  suggest me
    Thanks
    Aravinda

    Hi Aravinda
    Please check this link
    Re: Problem with switching tabs in top level navigation
    Regards
    Geogi

  • Tried opening Firefox and got error code 502 - problem with server - how do i fix please

    i tried to open internet through Firefox as usual and got repeated error message 502 (problem with server - try again in 30 seconds) - but no joy. is there a problem with the server or is there a problem at my end somehow?
    tks Paul

    Thanks for the suggestion Rhonda. You're correct in saying this is impractical though. The fact is, I can't open a tab to keep it open. After doing some online research, I was able to locate a site where I could download a previous Firefox version (6.0). Problem solved! Google: "''How can I find a previous version of Firefox''. As I stated in my original question, Mozilla should not update w/o making certain it doesn't create these issues. I spent hours on this. I also turned off auto updates. I appreciate your suggestion. Thank you!

  • I cannot sign in to icloud because of problems with server

    I have Lost It All!
    I cannot find all of my iTunes info.
    I tried signing into iCloud due to a message "problem with server".

    I have used the solution below to fix mine and others that have run into this issue.
    Start --> Programs --> Accessories (Right Click on Command Prompt) --> Run as Administrator
    then type in:  "Netsh winsock reset"  (-without the quotes-)
    Hit enter, restart PC, iCloud For PC should now connect without any server errors
    (This solutions will work in some instances when trying to fix errors associated when you are unable to connect to iTunes also.)

  • Why my Ipod send a message like "a problem with server bloq connection of ID Apple"

    Hi i just buy an Ipod Touch 8GB is my second one the last one have lost in the street, i Know my Apple ID and my password but when Itry to setup the new one send that message i am from mexico and my message is in spanish more less like this Impossible start session A problem with server is bloking the connection with the ID Apple . Try to connect again.

    What is the error message you are receiving and it is from iTunes or your iPod Touch?
    B-rock

  • Export Release Build - Problem with Server Settings

    Hello, i have a big problem and i searched the whole day yesterday but didnt found an answer...
    I started a Flex Mobile and PHP Project. The Project has a Data/Services included wich loads some customer from a database (sql)... for the first a
    used Zend and try it local (http://localhost and used the htdocs Folder of Zend)... EVERYTHING WORKS PRETTY FINE... so NOW my problem
    I wanted to export this project to a release build for my android phone... so the first warning of Flash Builder ist that the project ist currently configured to access data services from a local url. Before exporting the application, you may need to deploy your services to a remote server, then change the server root URL for your project. Click here to change server settings.
    When i click the button i get the server setting.
    Web root: C:\Program Files (x86)\Zend\Apache2\htdocs
    Root URL: http://localhost
    whe i change it now i get an eror:"The selected web root folder does not exist (i attached i screenshot of it).
    i entered de domain of my server (i also tried the ip) at Root URL. And i think there ist a problem with the Web root...? i get scary

    i know WHY Flashbuilder tells me that i have to change the setting when i deploy on the device
    my problem ist that i got this error...
    and the domain wich i have in the screenshot should only explain how i tried it...
    i entered my server url (the real domain) and i entered the folder "app" wich i have created via ftp on my server...
    BUT i also get this error (lik in the screenshot)
    i think at ROOT URL i cant make lot mistakes .... http://myserver.de or the ip
    but i think maybe my web root ist incorrect? i entered here the folder wich is directliy on my server...?
    i dont know exactly but i got an error like in the screen

  • IPhone problem with server applications...

    I have been having problems recently using applications that access a "server." Apps such as "maps" and "sportacular" both tell me they have problems connecting to the server. It doesn't matter on my location or availability of a network, the apps still don't work.
    Any help?

    Does the same occur after powering your iPhone off and on, and/or after doing a reset, which is done by pressing and holding the Home button and the sleep/wake or on/off button simultaneously until you see the Apple logo and then release - ignoring the slide to turn off prompt when doing so?
    I haven't experienced the same with the Maps application - not once, but I have experienced this with Sportacular on occasion but only on weekends when there are more sports and more people accessing Sportaculars' servers.

  • WS2012 Standard R2 with Essentials sudden problem with Server Manager, Essential Dashboard and other services

    Hi all,
    I have a problem with my Windows Server 2012 R2 with Essential installed. When I try to run Server Manager the server manager window doesn't appear and the same thing applies for starting the essentials dashboard. This leads to that some of the features doesn't
    work properly like remote web access, client backup and so on. When I check the Services a lot of services haven't even started. Trying to manually start for example Windows Server Essentials Management Services gives me following error message: 
    "Windows could not start the Windows Server Essentials Management Services on Local Computer. Error 1068: The dependency service or group failed to start"
    What can be wrong here? I haven't done anything to the server that could start these problems. This started all of a sudden. 
    Thank you all in advance for any help.
    EDIT:
    I rebooted my server in safe mode and I tried to run SFC /Scannow which stops at 84% and gives me following message:
    "Windows Resource Protection could not perform the requested operation."
    I also tried to run "DISM.exe /Online /Cleanup-Image /RestoreHealth". This did not help either. It completes the operation but nothing changes. The problem is still there.
    I thought that my server backups were OK and that this problem would be gone by restoring the C: drive with backup image. The problem is that all my good backups was rewritten with new backups that could not take backup of the C: drive for some reason. Now
    I need to solve this problem without reinstalling the whole operating system.
    EDIT:
    I have also completed the chkdsk C: /r command and now the SFC /Scannow command can be completed, with notification that some files could not be fixed. I have attached the sfcdetail.txt file which points out that
    "tsgclean.exe" cannot be repaired. What has that file to do with my WS2012 problems...
    2015-01-04 03:12:54, Info                  CSI    00000477 [SR] Cannot repair member file [l:24{12}]"tsgclean.exe" of Microsoft-Windows-TSProxy-EdgeAdapter,
    Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch

    Hi,
    Did you remember any operation which you had done before this issue occurred? For examples, install any update,
    install any third-party application or any other? Just a confirmation, thanks for your understanding.
    For those problematic services, please open services’ Properties and navigate to
    Dependencies tab, then check if all system components which this service depends on run as normal.
    In addition, please open Event Viewer and check if find relevant events. Meanwhile, please follow the path:
    %programdata%\Microsoft\Windows Server\Logs and check Dashboard log file if find more clues.
    By the way, when you run
    sfc /scannow command completely, did you open Server Manager or Dashboard again? Any difference?
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected].
    Hello Justin,
    Regarding the third-party applications:
    I have not installed any third-party application that could cause this problem. All my third-party applications that are installed on the WS2012 R2 are confirmed working well with the operative system and are installed at the time when I hadn't these problems.
    I cannot say anything about windows update because that is something that I update once in a week after checking that no user is reporting any issues. I have learned my leason with windows update when I had Surface Pro 2, that was a dissaster.
    Regarding the Windows Updates:
    Anyway, I tried to remove all the windows updates before as well (not the security updates) down to 5th December which is the time when I know that my server worked well. Only two updates could not be removed (KB3012199 and KB2989647). I don't
    know if these two updates can cause any problem?
    Regarding the problematic services:
    For example: Checking the properties for "Windows Server Essentials Management Service" -> It is dependable on
    "1. Active Directory Domain Services" and "2. Windows Server Essentials Provider Registry Service".
    No 1 is running but not no 2. If I try to start no 2 service it will give me the same message as before:
    "Windows could not start the Windows Server Essentials Management Services on Local Computer. Error 1068: The dependency service or group failed to start"
    Regarding the Logs:
    I have uploaded Dashboard log files which are created after 5th December to my dropbox account: Link
    Regarding the SFC command:
    Of course, when the SFC command was completed but with error that it could not repair
    tsgclean.exe I tried to start the essentials dashboard and WS2012 server manager with no luck.
    What about the error message? I looked up that file in the explorer and it is located in folder "C:\Windows\WinSxS\amd64_microsoft-windows-tsproxy-edgeadapter_31bf3856ad364e35_6.3.9600.16384_none_2ec8d374a0ac5606"
    Why can't it be repaired and what kind of file is that?
    Best regards

  • Problem with server admin connectio

    Hi,
    Im using Snow leopard server.
    I have a problem with connection to server via server admin app. It just says could not connect to server.
    At server console there is:
    2/27/10 2:58:30 AM com.apple.launchd[1] (com.apple.servermgrd[414]) Job appears to have crashed: Trace/BPT trap
    2/27/10 2:58:30 AM com.apple.launchd[1] (com.apple.servermgrd) Throttling respawn: Will start in 10 seconds
    2/27/10 2:58:30 AM com.apple.ReportCrash.Root[410] 2010-02-27 02:58:30.829 ReportCrash[410:390b] Saved crash report for servermgrd[414] version ??? (???) to /Library/Logs/DiagnosticReports/servermgrd2010-02-27-025830localhost.crash
    And that repeats.
    Any ideas how to fix this ?

    Yes it did work before. Made some changes to DNS and then server admin lost connection. Server works correctly (dns,mail,ssh access) only server admin connection is lost.
    servermgrd is running:
    bash-3.2# ps aux | grep servermgrd
    root 298 0.0 0.7 2494120 28748 ?? Ss 1:49PM 0:22.16 servermgrd -x
    root 1588 0.0 0.0 2425708 276 s001 R+ 2:29PM 0:00.00 grep servermgrd
    Is there any way to reset/reinstall servermgrd and its settings to default

  • ODBC compatibility problem with server 7.1.5

    Hi all,
    I am suffering from Windows ODBC driver desasters and hope I am not alone with my problem:
    I am developing a client app with Visual Foxpro 5.0a (maybe not relevant to the problem) on Win NT 4.0 SP 6,
    which accesses a Oracle 7.1.5 Server (on Alpha VMS) through ODBC.
    I used for several years the Version 2.0.x of the Oracle ODBC driver with satisfying results.
    Now I have to extent the app to run on Win 95 (sorry, but thats true) and also Win 2000. I am working in a large company
    network and have to take as environment what is provided by the systems group, which is SQL-Net8 and Oracle drivers
    from the 8.x series (8.1.7x for Win 2000 and some 8.0.x for Win 95).
    My problem: While DML commands are just fine with the 8.x drivers on the 7.1 server, I cannot call any stored
    procedures on the driver. I am using "ODBC" syntax, i.e. send strings like
    "{Call Schema1.Package1.ProcedureA(?Variable1, ?@Variable2)}" to the ODBC driver.
    I get the error message "Table/View does not exist", which is garbage, since the same calls work just fine, when
    using the 2.x driver.
    However, with the 2.x drivers, also the procedures get called ok and IN parameters are passed correctly,
    I cannot receive IN OUT parameters! What I get back is what I passed into the procedure plus one arbitrary character.
    Needless to say, that the 8.x drivers work just perfect against an 8i Server. However, I cannot migrate my productive
    database anytime soon.
    Does anybody have an idea which drivers are able to support calling stored procedures on a 7.1.5 server or can point
    me to resources here, which handle the problem?
    Thanks a lot,
    Peter
    PS: Yes I have seen the previous thread stating that, 7.1x servers are no certified for new drivers. But I simply hope, some
    body recognizes my problem and has a solution. :-)

    Thanks for the tip, might well be that this solves my problem (standards always should, or).
    But how do I bind the variables in a separate step the standard way? I never saw that in any docs -neither Foxpro nor VB which of course now moved to ADO.
    Thanks for an example or a pointer to the literature,
    Peter
    The standard ODBC syntax for executing a stored procedure is
    "{Call Schema1.Package1.ProcedureA(?, ?)}"
    The syntax you describe
    "{Call Schema1.Package1.ProcedureA(?Variable1, ?@Variable2)}"
    isn't familiar to me. I assume it's something Microsoft cooked up for pass-through queries (may be something special for FoxPro) that combines a few steps. You may want to try using the standard syntax and doing the variable binding as a separate step.
    I suppose that there might be a problem with the 7.1.5 database and how it handles IN OUT parameters, but that seems unlikely...
    Justin

  • Problem with Exporter for MS Access 3.2 in SQL Developer

    Hi,
    I have problem with exporting tables and data from MS Access to XML with Exporter for MS Access 2000.
    This error ocurr: 'Error #5 - XML Exporter'
    When I use Exporter for MS Access 2002 this error ocurr: 'Error #3478 - XML Exporter'
    Any leads how to solve this problem ?

    Thread moved to Forum Home » Database » SQL Developer
    SQL Developer
    Please, stay tune there.
    Nicolas.

  • Problem with a BAPI collecting dunning levels

    Hello all experts,
    I am having a problem with BAPI “DebtorCreditAccount” (called from a VB program), collecting dunning levels.
    The BAPIs is called like follows (only the essential code is shown):
    The first function (GetCustomerCurrentBalance) works fine but the second (GetCustomerHighestDunningLevel) doesn’t work.
        Public Function GetCustomerCurrentBalance(ByVal strCustomerID As String) As Decimal
            Dim objARAccount, objReturn, objActualBalance As Object
            Try
                objARAccount = Me.p_sapBapi.GetSAPObject("ARAccount", "1000", Me.ConvertCustomerID(strCustomerID))
                objARAccount.GetCurrentBalance(Return:=objReturn, ActualBalance:=objActualBalance)
                Return CType(objActualBalance.Value("TOTAL_BAL"), Decimal)
            Catch ex As Exception
                Return 0
            Finally
                objARAccount = Nothing : objReturn = Nothing : objActualBalance = Nothing
            End Try
        End Function
        Public Function GetCustomerHighestDunningLevel(ByVal strCustomerID As String) As Integer
            Dim objDebtorCreditAccount, objReturn, objHighestDunningLevelD As Object
            Dim objTEST1 As Object
            Try
                objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount", Me.ConvertCustomerID(strCustomerID), "0001")
                objDebtorCreditAccount.GetHighestDunningLevel(Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD)
                Return CType(objHighestDunningLevelD.Value("DUNN_LEVEL"), Integer)
            Catch ex As Exception
                Return 0
            Finally
                objDebtorCreditAccount = Nothing : objReturn = Nothing : objHighestDunningLevelD = Nothing
            End Try
        End Function
    The error message I get is:
    Message: The runtime object of type DebtorCreditAccount with the persistent key 00000480060001 could not be created in the Business Object Repository.
    Message-Nr: 826
    Workarea: OL
    R/3 error message: Object does not exist
    Please give me some input on how to proceed!
    Best Regards,
    Niklas

    Thanks Vijaya for your fast reply. The parameters that I am giving as input are however correct.
    I have investigated the problem a bit further and tried some other calls.
    If I just chose to create an object of the type “DebtorCreditAccount” (without submitting any parameters) and then use the same method call as before (se code in topic above) I get the following error: “Mandatory parameter HIGHESTDUNNINGLEVELA missing.” This must mean that it knows that something is missing.
    objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount")
    objDebtorCreditAccount.GetHighestDunningLevel(Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD) 
    If if add the mandatory parameter “HIGHESTDUNNINGLEVELA” I get the error message "The persistent key for an business object instance of type DebtorCreditAccount has not been set. Cannot invoke method GETHIGHESTDUNNINGLEVEL”. This I interpret as the object has not been right instantiated. This brings me back to square one.
    objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount")
    objDebtorCreditAccount.GetHighestDunningLevel(HIGHESTDUNNINGLEVELA:="0", Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD)
    Grateful for a response!
    Regards,
    Niklas

  • Another problem with updating in ms access

    Hello there,
    Me too has a problem with the update statement and ms access (using 2003).
    I've read many other problems, but a way to the solution that worked for I didn't found :S
    The strange thing with my problem is that i'm able to update integer fields in the database, but not varchar/text fields.
    I'm not getting any exception back, the database is closed (i'm very sure), so HELP! :)
    I'll show you the code i'm connecting with the database:
    public void openDatabaseConnection() {
            // Eerst controleren of de DatabaseDriver wel aanwezig is.
            try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            catch (Exception e) {
                System.out.println("Looking for Class: " + e.toString());
            // Nu kan de connectie met de database opgezet worden.       
            try {
                theDatabaseConnection = DriverManager.getConnection("jdbc:odbc:Shawa","","ShaBaMa");           
            catch (SQLException ex) {
                System.out.println("openDatabaseConnection: SQLException: " + ex.getMessage());
                System.out.println("openDatabaseConnection: SQLState: " + ex.getSQLState());
                System.out.println("openDatabaseConnection: VendorError: " + ex.getErrorCode());        
        }The code for updating an integer field (wich is working!) is like this:
        public Customer cashCustomer(Customer aCustomer){
            PreparedStatement pstmt;
            ResultSet result;
            try{
                openDatabaseConnection();
                pstmt = theDatabaseConnection.prepareStatement("UPDATE customer SET aantal_bier = aantal_bier + ?, aantal_fris = aantal_fris + ? WHERE id=?");
                pstmt.setInt(1, aCustomer.getCashBeer());
                pstmt.setInt(2, aCustomer.getCashSoda());
                pstmt.setInt(3, aCustomer.getId());
                theDatabaseConnection.setAutoCommit(false);
                pstmt.executeUpdate();
                theDatabaseConnection.commit();
                pstmt.close();
                theDatabaseConnection.close();
            catch (SQLException eSql){
                System.out.println("Cash Customer: " + eSql.toString());
                System.out.println("Cash Customer: SQLException: " + eSql.getMessage());
                System.out.println("Cash Customer: SQLState: " + eSql.getSQLState());
                System.out.println("Cash Customer: VendorError: " + eSql.getErrorCode());
            return aCustomer;
        }Now the code for updating Varchar/text fields (wich is not working):
        public Customer editCustomer(Customer aCustomer){
            PreparedStatement pstmt;
            ResultSet result;
            try{
                openDatabaseConnection();
                pstmt = theDatabaseConnection.prepareStatement("UPDATE customer SET name=? , lastname=?, onderdeel=?, aantal_bier=?, aantal_fris=?, op_kaart=? WHERE id=?");
                pstmt.setString(1, aCustomer.getName());
                pstmt.setString(2, aCustomer.getLastname());
                pstmt.setString(3, aCustomer.getSection());
                pstmt.setInt(4, aCustomer.getBeer());
                pstmt.setInt(5, aCustomer.getSoda());
                pstmt.setInt(6, aCustomer.getId());
                pstmt.setString(7, aCustomer.getAddCash());
                theDatabaseConnection.setAutoCommit(false);
                pstmt.executeUpdate();
                theDatabaseConnection.commit();
                pstmt.close();
                theDatabaseConnection.close();
            catch (SQLException eSql){
                System.out.println("Updating Customer: " + eSql.toString());
                System.out.println("Updating Customer: SQLException: " + eSql.getMessage());
                System.out.println("Updating Customer: SQLState: " + eSql.getSQLState());
                System.out.println("Updating Customer: VendorError: " + eSql.getErrorCode());
            return aCustomer;
        }I can add and delete from the database. The thing with the ' ' didn't work for me too.
    Anybody a solution for me??? plz plz plz!

    You are updating zero records. Because you are filling in the parameter ofWHERE id=?with this code:pstmt.setString(7, aCustomer.getAddCash());The executeUpdate() method returns the number of records affected, if you wish to check that.

  • Problem with Back button in Top Level Navigation

    Hi all,
    We are facing a minor problem with the Back button in the Top Level Navigation in Portal. This button is present under the Roles and Worksets menu along with the History, Forward, and Add to Portal Favorites links.
    The problem is faced when we have some worksets under a single role. While browsing accross these worksets by randomly clicking on them, we wish to use the Back button as well to go back to the previous workset. But when we use the Back button, the Detailed Navigation panel in the last workset is not retrieved.
    I will explain with the System Administration Role. I open the worksets under this role in the following manner:
    First I open Transport;
    Next I open Portal Display;
    Next I open System Configuration;
    Now I wish to go back to Portal Display workset by clicking on the Back button. But when I do this, although the Portal Display workset opens up, but I cannot see the Detailed Navigation Panel. See the screenshot below:
    http://img399.imageshack.us/my.php?image=backbuttonkg6.jpg
    Please help me in solving this issue.
    Regards,
    Ankur

    I think I have found a resolution, although not very pleasant:
    [Note 950426 - Portal Back button not working correctly|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_ep_pi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393530343236%7d]
    Regards,
    Ankur

  • Safari 4.0.3 problems with MS Outlook Web Access

    I am constantly prompted for my password in MS Outlook Web Access since I upgraded to 4.0.3. This was a minimal problem previously; each time I logged in I would have to enter my password a few times and then be done with it. Now, almost any time I click on ANYTHING I am prompted for my password. Checking the box for 'Remember this password in my keychain' has never had any affect. I'm rather computer illiterate, but I'm willing to try any suggestions! Thanks!

    I have a feeling it's a problem with Apple's javascript. I've also posted a thread here showing that it doesn't work properly with javascript if multiple tabs are open.
    This wouldn't be a "fix"... but it might be worth a try to close all other tabs and see if it works when only one tab is open & then try it again with multiple tabs open and see if that breaks it.
    At least then we'll know we've got a pattern here similar to my issue. I have a feeling the only way this'll get fixed is if Apple gets a head's up and fixes it themselves in Safari.

Maybe you are looking for