Concatenate fields when UPDATING mysql with php
I have managed to concatenate 2 form inputs (firstName +
lastName = fullName) when Inserting a record by altering the
Dreamweaver code thus:
$insertSQL = sprintf("INSERT INTO personnel (id, firstName,
lastName, fullName) VALUES (%s, %s, %s, ('$_POST[firstName]
$_POST[lastName]'))".......
Not sure how correct this is but it works.
So I tried doing the same thing with an UPDATE page and it
doesn't work
$updateSQL = sprintf("UPDATE personnel SET firstName=%s,
lastName=%s, fullName=('$_POST[firstName]
$_POST[lastName]'))".......,
Does anyone have a clue why this will not work or a better
way of Concatenating these form fields.
thanks
.oO(MickWarnes)
>I have managed to concatenate 2 form inputs (firstName +
lastName = fullName)
>when Inserting a record by altering the Dreamweaver code
thus:
>
> $insertSQL = sprintf("INSERT INTO personnel (id,
firstName, lastName,
>fullName) VALUES (%s, %s, %s, ('$_POST[firstName]
$_POST[lastName]'))".......
Why do you store redundant data? If you already have the
firstName and
lastName, there's no real need to also store the
concatenation of both.
If you need the fullName in your application like I do for
example, then
"create" it on the fly when you query the DB:
SELECT
firstName,
lastName,
CONCAT_WS(' ', firstName, lastName) AS fullName
FROM
With the same method I even include an optional birth name if
available:
SELECT
IF(birthname IS NULL OR birthname = '',
lastname,
CONCAT(lastname, ' (', birthname, ')')
) AS fullLastname,
Another thing: Never(!) use $_GET or $_POST data directly in
a DB query
without validation and escaping. Read about SQL injection and
how to
prevent it, for example with calling
mysql_real_escape_string() before
the data goes into the DB. DW inserts its own function to
solve this,
but your addition in the code above doesn't make use of it,
hence your
code is vulnerable.
Micha
Similar Messages
-
Looking for a class or suggestions to be able to upload pdf file, save pdf file on server repository, convert the pdf to plain text, and store plain text in mysql text field so it's search friendly. Simple right!
any suggestions? any known classes? Thanks in advance.
forgot to mention, docs are on average 100 pages long, so i don't think blobbing it is the right approach.There are many classes / ways to put text. HTML or record set results into a PDF, but to extract content out of a PDF and convert it into plane text that could then be written to a database... To my knowledge, there isn't any. You're only option may be to store the PDF docs on the server then catalog them in the database with the URL location of the docs. For searchability you could add a field that could could contain keywords sample text of what is in the doc - this could be cut and pasted into a field when adding the PDF to you "catalog".
Lawrence *Adobe Community Expert*
www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in ASP, PHP and CF
www.twitter.com/LawrenceCramer
www.facebook.com/LawrenceCramer -
Fatal error when updating Payload with Java hw Worklist API
Hi all,
I am receiving an error when I want to update some non-String-type fields
of a task payload. I access the fields in the payload with facade-classes, generated by Schemac.
The fact is that I can read all the payload fields, but when I try to set values in non-String typed fields of the payload I'm getting a run-time error:
java.lang.NullPointerException at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.hash(ConcurrentReaderHashMap.java:308) at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.get(ConcurrentReaderHashMap.java:427) at org.collaxa.thirdparty.dom4j.tree.NamespaceCache.get(NamespaceCache.java:82) at org.collaxa.thirdparty.dom4j.Namespace.get(Namespace.java:60) at com.collaxa.cube.xml.dom.DOMUtil.createElement(DOMUtil.java:382) at com.collaxa.cube.xml.dom.DOMUtil.createElement(DOMUtil.java:350) at com.collaxa.cube.xml.BaseFacade.setChildElementValue(BaseFacade.java:323) at nl.nak.www.ns.vocht.Userpayload.setAge(Userpayload.java:327) at nl.nak.gui.action.ProcessTaskAction.execute(ProcessTaskAction.java:107) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at nl.nak.gui.custom.CustomActionServlet.process(CustomActionServlet.java:35) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
My XSD file for the payload looks like this:
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.comp.nl/ns/vocht"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.comp.nl/ns/vocht">
<element name="userpayload">
<complexType>
<sequence>
<element name="name" type="xsd:string" />
<element name="lastname" type="xsd:string" />
<element name="age" type="xsd:int" />
<element name="amount" type="xsd:decimal"
</complexType>
</element>
</schema>
The code where I make a connection to the
WorkList service and how I retrieve the payload is listed below.
Note that a specific task is set in the Session at in a previous step:
try{
String user="jcooper";
String password="welcome";
//maak een verbinding
RemoteWorklistServiceClient client = new RemoteWorklistServiceClient();
client.init();
out.println("connectie geinitialiseerd");
//authenticatie
IWorklistContext ctx = client.authenticateUser(user, password);
Userpayload ut = (Userpayload) UserpayloadFactory.createFacade(payload);
ut.setName("tom");
ut.setLastname("Cooper");
//EXCEPTION THROWN HERE
ut.setAge(1);
ut.setAmount(new BigDecimal(2));
taak.setPayload(ut.getRootElement());
String action = "DONE";
client.customTaskOperation(ctx, taak.getTaskId(), action);
out.println("taak geapproved :: "+payload.toString())
return null;
catch(Exception e)
//PRINT DEBUG INFORMATIE
e.printStackTrace(new PrintWriter(out));
sp.addActionError(errors,"nl.nak.view.standaard.errors.system",null);
saveErrors(request,errors);
return null; //mapping.findForward("failure");
At run-time the null-pointer exception is thrown when the Age field is set.
Can anynone help me with this problem?
Thanks in advance!
Tom Hofte
Message was edited by:
[email protected]If it is a stored procedure, the action should be EXECUTE and not UPDATE and the structure should be similar to this:
<StatementName5>
<storedProcedureName action=u201D EXECUTEu201D>
<table>realStoredProcedureeName</table>
<param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
</storedProcedureName >
</StatementName5>
From help.sap
Regards,
Prateek -
Do we need to stop DPM backups when updating SP2013 with CU
Hi - planning to install the Dec14 CU and want to know if it is required to Stop DPM protection when running PSConfig?
Our DPM guy says DPM protection cannot be paused - only stopped and this would remove the Protection group completely and we would need to reconfigure afterwards. He thinks that because DPM bacup is different to SQL in that it only reads the T Logs to synchronize
every 15min after the daly full backup at 8PM - so as long as we avoid running PSConfig when the full backup runs it should be no problem
I have always had SQL backups stopped when updating SharePoint - is the DPM guy right that I don't need to worry about DPM syncs?
Thanks
JHi,
As my understanding, your DPM guy is correct. DPM utilize VSS to protect your database, so there should be no impact when you upgrade SharePoint with DPM up. If you are not assured to do this, I suggest you set up an all in one test environment to test it.
Meanwhile, I would like to share the DPM Application Data Synchronization Process
for your reference.
https://technet.microsoft.com/en-us/library/ff399014.aspx
Thanks,
Reken Liu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to return all fields when updating?
When I update a lead, it only returns fields that are modified but not all fields in the XML.
I noticed the LeadID and LeadFullname values are still being returned when updating which is good.
How can I make it so it will return ALL fields that have values and not just the modified ones when updating?
ThanksI have to query it after getting it back from the queue.
-
I currently have apache/php/mysql installed.
[root@gaboo /]# pacman -Qi | grep apa
apache 2.0.53-2
[root@gaboo /]# pacman -Qi | grep mysql
mysql 4.1.10-1
[root@gaboo /]# pacman -Qi | grep php
php 5.0.3-5
But when I tried to make a mysql connection, I get
Fatal error: Call to undefined function mysql_connect() in /home/httpd/gg/pageprincipale.php on line 16
Moreover, when I display this php page :
<?php phpinfo(); exit(); ?>
I don't have a mysql section, displaying its settings.
The mysql extension is built-in into php5, everything seems at the right place, I can't find why it doesn't work.
Any ideas ? :?:usedtire wrote:
THis is just plain dumb. I had to create this link
ln -s /usr/lib/php/extensions/no-debug-non-zts-20041030/mysql.so /usr/lib/php/mysql.so
to get it to work.
WHY??
It works, but how often do I need to this? Everytime Pacman upgrades?
Instead, you can change the line:
extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20041030/"
of your /etc/php.ini file -
Retrieving Images from Mysql with PHP
Hi I have been trying to work this out with no success so some help would be really appreciated.
I have two tables in Mysql,
IMAGES AND EXHIBITORS
IMAGES
`image_id` INT(5) UNSIGNED NOT NULL AUTO_INCREMENT ,
`filename` VARCHAR(255) CHARACTER SET 'latin1' COLLATE 'latin1_bin' NOT NULL ,
`mime_type` VARCHAR(255) CHARACTER SET 'latin1' COLLATE 'latin1_bin' NOT NULL ,
`file_size` INT(11) NOT NULL ,
`file_data` LONGBLOB NOT NULL ,
`user_id` VARCHAR(50) CHARACTER SET 'latin1' COLLATE 'latin1_bin' NOT NULL ,
`accom_id` INT(5) NOT NULL ,
`exhibitors_exhib_id1` INT(5) NOT NULL ,
PRIMARY KEY (`image_id`, `exhibitors_exhib_id1`) ,
INDEX `user_id` (`user_id` ASC) ,
INDEX `accom_id` (`accom_id` ASC) ,
INDEX `fk_images_exhibitors2` (`exhibitors_exhib_id1` ASC) ,
CONSTRAINT `fk_images_exhibitors2`
FOREIGN KEY (`exhibitors_exhib_id1` )
REFERENCES `christmas_shopping`.`exhibitors` (`exhib_id` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 7
DEFAULT CHARACTER SET = latin1
COLLATE = latin1_bin
EXHIBITORS
`exhib_id` INT(5) NOT NULL AUTO_INCREMENT ,
`exhib_name` VARCHAR(50) CHARACTER SET 'latin1' COLLATE 'latin1_bin' NOT NULL ,
`exhib_years` SET('2010', '2009') NULL ,
PRIMARY KEY (`exhib_id`) )
ENGINE = InnoDB
AUTO_INCREMENT = 3
DEFAULT CHARACTER SET = latin1
COLLATE = latin1_bin
PACK_KEYS = DEFAULT
I think I am happy with the Mysql, and I have read the various arguments about storing images in mysql but for my purpose I wanted to store the image in the database.
I have already created the upload and the images have uploaded correctly and I can see the data in the database, however I just have been able to retrieve the images back into a webpage.
I have a .php file which is merging these to tables correctly but the image is displayed as
o¿9®áŸÇ½G_ŒÁ%×Úoíø$M©7ûiè Óµ|Mn.˨â=Ž2Z ¥<º½Hs/¸úfŠÇðïˆ-üE`· ¯üq÷C[ öTªÂ´ Jnéžl¢âÜdµ (¢µ$(¢Š�(¢Š�(¢Š�(¢Š�(¢Š�(¢Š�CÅ Š:šZ�(¢Š�(¢Š�) -! ¢Š(�¢Š(�¢Š(�¢Š(�¢Š(�¢Š(�¢Š(�¢Š(�¢Š(�¢Š(�¯ ý¤Z_ x^óÐK2ZJ»¦ò>ô»NJ ûç¥{6½©.‘£ÝÞ ÆZ¼*-Sûz"$pÌ]$þ%5ù¿ æ•0˜xa©;9êý O›=¼³ ªÍÔžÈøžþ t·[c*¦À T?wøQ·/?ίøWÅ×z]Ü r츌þæLôoâVþð¯jøÍð¶O Y½Îœ¨Œ›–k4OšWþê·mß1÷/ Abž<[Þ¢þþÕŠþ÷û۝}nCžÏ*š¡]Þ“ü?¯ëÏ‹ …X¨óÇIþgÔÔVf‹¬Ûë¶)snÙVê½Á:ý¶ H©ÁÝ=–iÅÙî QEh ¢Š(�¢Š(�¢Š(�¢Š(�¤4´‚€ Š( Š( Š( Š( qKHh Ð ÑE �QE �QE �QE �V^½ª¦‡¥^²ï .í¾µ©^kñÿ�Z Ã]NmÛY“
The code I have in the page is as follows. After many hours of trying to work it out I just cant see what I am missing and would really appreciate some help. I have highlighted where the echo is that relates to my image.
<?php require_once('../Connections/christmas.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
mysql_select_db($database_christmas, $christmas);
$query_Recordset1 = "SELECT exhibitors.exhib_name, images.file_size, images.file_data FROM images, exhibitors WHERE images.exhib_id = exhibitors.exhib_id";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $christmas) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
if (isset($_GET['totalRows_Recordset1'])) {
$totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php $pagetitle="The Christmas Shopping Fayre"?>
<html xmlns="http://www.w3.org/1999/xhtml" >
<meta http-equiv="Content-Type" content="; charset=" />
<link href="../public/CSSFiles/oneColElsCtrHdr.css" rel="stylesheet" type="text/css" />
<link href="../public/CSSFiles/whitebackground.css" rel="stylesheet" type="text/css"/>
<link href="../public/CSSFiles/shoppingonline.css" rel="stylesheet" type="text/css"/>
<link rel="icon" type="image/x-icon" href="http://www.gravatar.com/avatar/c4dac336c5be729fc542c12bfbb50099.png" />
<!--[if IE]>
<style type="text/css">
a { zoom: 1;}
</style>
<![endif]-->
<script type="text/javascript">
<!--
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
//-->
</script>
</head>
<body id="shoppingonline" class="oneColElsCtrHdr">
<p> </p>
<?php include("includes/header.php"); ?>
<br />
<br />
<div id="bannersp"> </div>
<h1>Welcome to <?php echo $pagetitle?></h1>
<p>
</p>
<form method="post" name="form1" id="form1">
<p> </p>
<table border="1" cellpadding="5" cellspacing="5">
<tr>
<td>exhib_name</td>
<td>file_size</td>
<td>file_data</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['exhib_name']; ?></td>
<td><?php echo $row_Recordset1['file_size']; ?></td>
<td><?php echo $row_Recordset1['file_data']; ?></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<?php include("includes/footer.php"); ?>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>Hi Murray
You must despair with beginers like me, attachments showed as having been
sent so lets try again.
I have been able to find a tutorial that works well all the way through, I
can even see the images in the browser!! but only shows images individually
on a page.
http://www.phpriot.com/articles/storing-images-in-mysql/7
However, what I want to do is to have a page that links my images table and
another table, all of which I have set up and is working other then showing
the images. All was very straight forward until sorting out the image. If
I can work out what to take from the above tutorial that works into my page,
I am sure all will be fab.
Storing them in the mysql was my preferred method as there are not alot and
they can be low resolution and I thought it would be fairly straight
forward!! however finding out that I am having to adapt code as dreamweaver
doesn't support the blob attribute is getting me out of my knowledge.
All the best
Gilly
Attachments inserted
show_image.php
<?php require_once('../Connections/getImage.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$colname_Recordset1 = "-1";
if (isset($_GET['image_id'])) {
$colname_Recordset1 = $_GET['image_id'];
mysql_select_db($database_getImage, $getImage);
$query_Recordset1 = sprintf("SELECT image_id, mime_type, file_data FROM images WHERE image_id = %s", GetSQLValueString($colname_Recordset1, "int"));
$Recordset1 = mysql_query($query_Recordset1, $getImage) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
header('Content-type: ' . $row_getImage['mime_type']);
echo $row_getImage['file_data'];
mysql_free_result($Recordset1);
?>
view.php
<?php require_once('../Connections/getImage.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
mysql_select_db($database_getImage, $getImage);
$query_Recordset1 = "SELECT * FROM images";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $getImage) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
if (isset($_GET['totalRows_Recordset1'])) {
$totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
?>
<!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=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table border="1" cellpadding="5" cellspacing="5">
<tr>
<td>image_id</td>
<td>filename</td>
<td>mime_type</td>
<td>file_size</td>
<td>file_data</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['image_id']; ?></td>
<td><?php echo $row_Recordset1['filename']; ?></td>
<td><?php echo $row_Recordset1['mime_type']; ?></td>
<td><?php echo $row_Recordset1['file_size']; ?></td>
<td><?php echo $row_Recordset1['file_data']; ?></td>
<td><img src="show_image.php?image_id=<?php echo
$row_getdetails['image_id']; ?>" alt="Image from DB" />
</td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?> -
I have a problem when update tables with a database link (APEX)
Hi, I search answers for my problem and I not found a solution. My problem start when I open page with database link statement in APEX. I drop tables and execute this for update the tables in APEX.
EXECUTE IMMEDIATE 'CREATE TABLE XXXXXXX
AS
SELECT A1,A2,A3
FROM AAA@BBB';
I use Mozilla Firefox and isn't always updated the tables because it shows dialog for downloading file "f". I rename the file to txt and I see the text "IBMPC/WIN_NT-8.1.0"...
In the explorer always show a window only the text "IBMPC/WIN_NT-8.1.0"...
What is the solution for my problem? I need update this tables.
Thanks. John.It's easy. It doesn't work a database link, on apex, with a pl/sql code or store procedure.
I saw that many people had the same problem but I don't see a solution.
As I put up, I want to remove my tables on APEX and copy the table of my Oracle database with the update dates.
The posts are from the same problem as my English is very bad, it got to help explain the problem.
I have a page with a pl/sql code. This code in Oracle is correctly.
For example, with this code I update the table PRUEBAS with the data of TABLEX.
BEGIN
BEGIN
EXECUTE IMMEDIATE 'DROP TABLE "PRUEBAS"';
EXCEPTION WHEN OTHERS THEN NULL;
END;
EXECUTE IMMEDIATE 'CREATE TABLE "PRUEBAS"
AS
SELECT AAA,
BBB,
CCC
FROM TABLEX';
END;
But, in this code, I have the problem.
BEGIN
BEGIN
EXECUTE IMMEDIATE 'DROP TABLE "PRUEBAS"';
EXCEPTION WHEN OTHERS THEN NULL;
END;
EXECUTE IMMEDIATE 'CREATE TABLE "PRUEBAS"
AS
SELECT AAA,
BBB,
CCC
FROM TABLEX@DB_LINK';
END;
I sometimes get an error. Sometimes it works fine, but half of the tries Apex returns "IBMPC/WIN_NT-8.1.0" in the browser and I am not using an IBM PC or Win NT...
And i read that In the alert_xe.log file there are a error of core dump... ... :S or that the application return corrupt headers.... Is a problem of versions?
I used a synonym and I have the same problem.
Even if I run the code on SQL COMMANDS (SQL WORKSHOP) it shows dialog for downloading file "f". I rename the file to txt and I see the text "IBMPC/WIN_NT-8.1.0"...
The problem is in Mozilla Firefox and in IE.
I have the OracleXE 10g (Application Express 3.0.1.00.08).
And the question is.. ... ... ... ... What is the solution? :)
Thanks.
John. -
Clearing contents of a field when updating using an XML document.
When trying to update a document using XML and the DI API, how can you clear the contents of a field in the document? This in particularly is a nvarchar field.
>
Michaela Pfeifer wrote:
> Hi,
>
> we are using the XIF-Adapter to receive business partners from a third party system. The third party system send the data in xml via http.
>
> My question is now. Is there any possibility to do a mapping of the data before processing. As i understand I can use the LSMW to do the mapping when receiving iDoc-Files. Is that also possible for XML?
>
> Thanks
> Michaela
Hi Michael,
I have to migrate third party data in XML format, pls provide me the configuration guide regarding that.
Thanks a lot.
#shobhit(DOT)techy(AT)(gmail).com -
Modification Date changes when updating Open With?!?!
Forgive me if this is mentioned elsewhere. I have been searching these forums and not seen this problem.
If I do a 'Get Info' on a file in the Finder and change the application it opens with, the Modification Date changes to 'now'. Why in the world would this happen? This is not how 10.3.x worked, and certainly doesn't make any sense since I am not actually modifying the file. I am simply changing the OS's metadata about which app to use. This info isn't even stored in the file itself, as evidenced by burning such an document to a CD or moving it through a network server then opening it on a machine with different default apps for certain extensions.
Is this just another wacky step backwards in the world of the Apple OS X Finder, or am I missing a way to avoid this?
PowerMac G5 2.5DP Mac OS X (10.4.3)This is not how 10.3.x worked, and certainly doesn't make any sense since I am not actually modifying the file.
Actually, I am using "Panther" now, and can confirm that changing the application to be used to open an individual file through "Get Info" does in fact change the modification date.
When the "Change all" button is used, the modification date of other files of that type won't be affected by this change since that modification is presumably made somewhere in the "Launch Services" database to set the "default" application to be used for that file type. Perhaps this is what you were thinking of.
However, for that first file (or any file changed individually), the file is in fact modified, and the "Open with" information is stored with the file, in its "resource fork". Usually, a 'usro' resource (specifying the application) and an 'icns' resource (for the app's custom icon for that file type) are added. You can try this yourself - drag any image from Safari.app to the "Desktop" and open the info window for that image - such images usually don't have a "resource fork". Make note of the file's size, then change the "Open with" application. You should immediately see an increase in the file's size (to account for the addition of the "resource fork") accompanied by an update of the file's modification date to reflect this modification. -
Missing field when printing labels with Address Book
I am would like to print the labels for my clients Christmas Cards, using AddressBook. When doing print > label, I get all their names and addresses on the labal formt that I want but the company name is missing. How do I get AddressBook to include the field "company" into the label ?
Thanks for help.If you need to include the company's and individual's name, here's a work-around:
1) for each such card, you put the individual's name and leave the Company field empty.
2) Put the company name in the field for "Street"
3) Put the street address, including Apt. # in the field for "City"
4) Now, put the City, State, and Postal Code all in one field: the field for "Country".
5) save the card.
When printing labels, proceed as follows:
1) Print>File>choose your Avery label under "Layout" and then click "Label."
2) Here, you make sure to check the box so it will "Print country." Don't forget this step, or the whole plan is a failure.
This works, but it only works if the card is in-putted as described above. It won't work if your cards are already set-up with the "company" field and the "name" field. -
Dreamweaver CS3 for MAC bug / MySQL with PHP
I am using DW for Windows for over 4 years, this time I have
to change my desktop to a MACBookPro because of the long run time
on battery and best 17" laptop screen. But DW CS3 cannot connection
to my MySQL database on my remote server like Windows version.
After talking to Adobe tech support, they acknowledge that it is a
software bug and there is no fix nor work around. I paid a lot of
money for the CS3 Design premium suite and it is frustrating that
Adobe does event test this basic function and all tech support can
give me with my premium support contract is they submitted bug
report and there is no ETA or anyone will alert me when a fix is
available!!!!!
I just like to share this so any one is thinking about using
Dreamweaver for MAC and need MySQL, you should check with Adobe
before pulling you credit out.I've been a Mac convert for about 2 years now. Right now, I'm
running DW CS3 on an Intel iMac and it runs beautifully. On my
Powerbook G4 (1.33 GHz PPC G4 and 2 GB of ram) the performance is
slightly lacking. One thing to be wary of with adobe products -
they can be memory hogs. Photoshop is especially notorious for
this.
Also, the more you have installed on a Mac laptop, the slower
it will run. Mine used to take a few minutes to boot because of all
the programs I had installed, and nothing was starting up with the
machine. After a format and clean install it runs like new.
That is something for you to consider, if you have all the
necessary software to reinstall everything you want. I never turn
off any features in DW and I have only had a few buggy problems.
Nothing major though. -
Data with "," overflows to the next field when importing data with DTW
Dear all,
When I tried to import data with DTW, for the data that includes ",", the data after "," all jumps into the next field after import.
E.g. Column A(memo): bank, United state
Column B(project code): blank
Result in SBO: Memo field : bank
Project code: United state
I have tried 2 ways.
1. Save the file as csv, and adding double quote(") at the beginning and ending of the data. However, it didn't work. It didn't work with single quote as well.
2. Save the file as txt, without amending the data at all.
It worked, however, in SBO, double quote is auto added, it becomes "bank, United state".
Please kindly advise how to handle such case.
Thank you.
Regards,
JulieHi,
Check this if it is useful :
Upload of BP Data using DTW
Rgds,
Jitin -
Firefox 1.0.7 crash when HMTL generated with PHP is more large.
With Firefox 1.0.7 when PHP generate a more large HTML Firefox 1.0.7 crash.
For example:
I generate the line:
HI WORLD "292 times" -> Works
HI WORLD "293 times" -> CrashMake sure that the Windows page file is large enough in case the build-in physical memory isn't sufficient.
* http://support.microsoft.com/kb/2160852 RAM, virtual memory, pagefile, and memory management in Windows
Make sure that you have at least 1 GB or the recommended setting for the Virtual Memory.
If you have less than 1 GB physical memory installed on your computer then if possible add more memory. -
Quits when updating pages with new template
I have DW MX 6.1 on Mac OS X (10.39). It's a large site, over
300 pages. DW quits everytime I try to update the pages based on
the changed template. HELP! I don't want to update them all
individually. That will take forever.
StokesyThat's a good workaround, good idea.
With the BLOG and 'new entries' I can just duplicate a given entry and use that as a 'template' so that should work.
Still... it seems incredibly cumbersome to me.
In Illustrator, if I modify any images that I'm using in a document it lets me know as soon as I open that document and I can automatically update those images and see how they work without altering any of that documents layout etc.
In iWeb... even if I modify an image by a pixel I have to create a new page, and replicate any layout modifications I'd made to actually see how those new images are working in my design.
Incredibly cumbersome and anti-iterative process, especially for those trying to slightly modify a given template with custom imagery. This type of work should be a snap to do... here, it's more like a crack over the head with an iron girder.
...sigh...
Maybe you are looking for
-
Is it possible to Use Views in place of Queries?
Lets say that 10 broadcasted reports all could use the same query but each in a different navigational state. 1. Can you navigate the query and save as a view and then set up a brodacast rule for that view? 2. Can a DataProvider in a web template be
-
How to fire a schema trigger from outside the schema
A user is using an ad hoc tool similar to SQL Developer called PeopleSoft Application Designer. He creates a connection to the db, then issues an alter session set current_schema = 'restricted_schema'. The connected user does not have direct privileg
-
All pages in merged file blank?
Has anyone had problems in Pro X where all pages in a merged file of all .pdfs are blank?
-
I need some help connecting to LDAP please.
I've been working on this problem for a few days now and I'm really frustrated. I'm going to search through these message boards and hope some topics are of any use. If anyone knows of any please post the links in this thread that would be very helpf
-
Sap function used in crystal- date parameter issue
have a function developed in sap and it is using date parameters in the function i can run the function in sap and retrieve records when i create a report from the function and create my date parameter to use in the record selection and i enter my pa