[DW MX 2004] insertar fecha
Hola
Hay alguna manera de insertar la fecha en una base de datos
mysql (bien
en campo date o bien timedate) desde dreamweaver sin hacer
muchas
virguerias con el codigo?
Con un campo oculto de formulario mete la fecha en cero todo,
retocando
a mano el value (sustituyendo el VALUE date por NOW() me da
error
Alguna idea o tutorial donde poder insertar la hora-fecha en
la base de
datos?
Gracias
Aqui pongo el codigo que me genera dreamweaver de uno de los
ejemplos
que he intentado hacer
Saludos
<?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;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" .
htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) &&
($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO noticias (autor, titulo,
categoria,
fecha, noticia) VALUES (%s, %s, %s, %s, %s)",
GetSQLValueString($_POST['autor'], "text"),
GetSQLValueString($_POST['titulo'], "text"),
GetSQLValueString($_POST['categoria'], "text"),
GetSQLValueString($_POST['fecha'], "date"),
GetSQLValueString($_POST['noticia'], "text"));
mysql_select_db($database_noticias, $noticias);
$Result1 = mysql_query($insertSQL, $noticias) or
die(mysql_error());
$insertGoTo = "index.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
mysql_select_db($database_noticias, $noticias);
$query_Recordset1 = "SELECT * FROM noticias ORDER BY
id_noticia DESC";
$Recordset1 = mysql_query($query_Recordset1, $noticias) or
die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
This is a multi-part message in MIME format.
------=_NextPart_000_0058_01C687F0.03709B10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
A la hora meter la fecha en una base de datos desde PHP se
pueden =
presentar muchos problemas si no se tienen las ideas claras.
Por eso =
siempre recomiendo meterla en un campo del tipo int(11) el
timestamp =
UNIX actual, esto es, los segundos pasados desde el 1 de
enero de 1970. =
=BFPor qu=E9 usamos esto y no los campos espec=EDficos para
fechas que =
tiene MySQL?... muy sencillo, por comodidad.
Es muy sencillo darle formato a un timestamp con la funci=F3n
date(), =
que a un campo recuperado de la base de datos guardado como
DATE =
(AAA-MM-DD) o como TIMESTAMP (desde AAAMMDDHHMMSS a solo AA
de acuerdo =
al valor que se le aplique al campo al crearlo). Por ejemplo,
TIMESTAMP =
(12) --> AAMMDDHHMMSS, mientras que con TIMESTAMP (6)
--> AAMMDD.
Como puedes ver es un poco lioso trabajar con los campos de
fechas de =
MySQL, por eso es preferible trabajar con un INT(11) que
guarde =
directamente el valor proporcionado por time().
Como ventaja adicional a la hora de trabajar con el timestamp
UNIX de =
una fecha es que es muy sencillo hacer c=E1lculo entre
fechas. Por =
ejemplo, si quieres saber cuantos d=EDas hay entre dos fechas
concretas =
es tan sencillo como restar los timestamp y el resultado
dividirlo por =
86400 (segundos que tiene un d=EDa).
Otra funci=F3n muy interesante de usar el algunos c=E1lculos
con fechas =
o validaciones de =E9stas es mktime(). Yo suelo usarla para
pasar las =
fechas recogidas en un formulario (02/06/2006) al timestamp
UNIX antes =
de guardarlo en una base de datos. Algo que te puede ayudar
es:
$datos_fecha=3D explode('/', $_POST['fecha']);
$dia=3D$datos_fecha[0];
$mes=3D$datos_fecha[1];
$ano=3D$datos_fecha[2];
$timestamp =3D mktime(0,0,0,$mes,$dia,$ano);
Con =E9sto pasamos de una fecha recogida en un formulario a
trav=E9s de =
POST con el formato DD/MM/AAAA a su correspondiente timestamp
UNIX que =
almacenamos en la variable $timestamp para poder usarla
posteriormente a =
la hora de guardar la fecha en la base de datos.
Saludos,
Julio Barroso
------=_NextPart_000_0058_01C687F0.03709B10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2180"
name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>A la hora meter
la fecha en una base de =
datos desde=20
PHP se pueden presentar muchos problemas si no se tienen las
ideas =
claras. Por=20
eso siempre recomiendo meterla en un campo del
tipo int(11) el =
timestamp=20
UNIX actual, esto es, los segundos pasados desde el 1 de
enero de 1970. =
=BFPor qu=E9=20
usamos esto y no los campos espec=EDficos para fechas que
tiene =
MySQL?... muy=20
sencillo, por comodidad.</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Es muy sencillo
darle formato a un =
timestamp con la=20
funci=F3n date(), que a un campo recuperado de la base de
datos guardado =
como DATE=20
(AAA-MM-DD) o como TIMESTAMP (desde AAAMMDDHHMMSS a solo AA
de acuerdo =
al valor=20
que se le aplique al campo al crearlo). Por ejemplo,
TIMESTAMP (12) =
-->=20
AAMMDDHHMMSS, mientras que con TIMESTAMP (6) -->
AAMMDD.</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Como puedes ver
es un poco lioso =
trabajar con los=20
campos de fechas de MySQL, por eso es preferible trabajar con
un INT(11) =
que=20
guarde directamente el valor proporcionado por
time().</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Como ventaja
adicional a la hora de =
trabajar con el=20
timestamp UNIX de una fecha es que es muy sencillo hacer
c=E1lculo entre =
fechas.=20
Por ejemplo, si quieres saber cuantos d=EDas hay entre dos
fechas =
concretas es tan=20
sencillo como restar los timestamp y el resultado dividirlo
por 86400 =
(segundos=20
que tiene un d=EDa).</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Otra funci=F3n
muy interesante de usar =
el algunos=20
c=E1lculos con fechas o validaciones de =E9stas es mktime().
Yo suelo =
usarla para=20
pasar las fechas recogidas en un formulario (02/06/2006) al
timestamp =
UNIX antes=20
de guardarlo en una base de datos. Algo que te puede ayudar =
es:</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff
size=3D2>$datos_fecha=3D =
explode('/',=20
$_POST['fecha']);<BR>$dia=3D$datos_fecha[0];<BR>$mes=3D$datos_fecha[1];<B=
R>$ano=3D$datos_fecha[2];<BR>$timestamp=20
=3D mktime(0,0,0,$mes,$dia,$ano);</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Con =E9sto
pasamos de una fecha =
recogida en un=20
formulario a trav=E9s de POST con el formato DD/MM/AAAA a su
=
correspondiente=20
timestamp UNIX que almacenamos en la variable $timestamp para
poder =
usarla=20
posteriormente a la hora de guardar la fecha en la base de =
datos.</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial
size=3D2>Saludos,</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Julio =
Barroso</FONT></DIV></BODY></HTML>
------=_NextPart_000_0058_01C687F0.03709B10--
Similar Messages
-
Insertar fecha automáticamente
Saludos a todos.
Necesito conseguir que se inserte la fecha automáticamente al cargar un pdf en internet explorer.
El formato que necesito es algo así:
En Madrid a 34 de Abril de 2005.
Lo tengo casi conseguido, pero no hay manera para que muestre el año.
Si pongo: var fecha=new Date()
t=fecha.getYear();
t=t+1900;
this.rawValue=t;
El resultado es: 01-ene-2005 20:05 Cuando yo lo que necesito es solamente 2005.
Con: $=date() me sale: 38747 y no consigo divir entre 365 y redondear para que me salga 2005.
He probado con getFullYear, con getYear a secas, etc.
Alguien me puede echar un cable?.
Un saludo y gracias.Saludos a todos.
Necesito conseguir que se inserte la fecha automáticamente al cargar un pdf en internet explorer.
El formato que necesito es algo así:
En Madrid a 34 de Abril de 2005.
Lo tengo casi conseguido, pero no hay manera para que muestre el año.
Si pongo: var fecha=new Date()
t=fecha.getYear();
t=t+1900;
this.rawValue=t;
El resultado es: 01-ene-2005 20:05 Cuando yo lo que necesito es solamente 2005.
Con: $=date() me sale: 38747 y no consigo divir entre 365 y redondear para que me salga 2005.
He probado con getFullYear, con getYear a secas, etc.
Alguien me puede echar un cable?.
Un saludo y gracias. -
Como agrego una fecha que cambie automaticamente, necesito insertar una fecha en todas las hojas, para cuando se imprima un documento, aparezca la fecha de impresión en todas las hojas, no importa si se ve o no esa fecha al abrir el documento, solo la quiero al imprimir
gracias
Tengo el Acrobat Pro XIbueno, en lo que encuento si se puede o no, voy a quitar el encabezado que había puesto, ayer le puse de texto fecha de impresión: (y le puse insertar fecha)
todo bien, hasta que hoy al revisar los documentos se quedó la misma fecha de ayer
saludos -
Buenas tardes he realizado una aplicacion web enteramente con
fireworks8, quisiera saber si es posible introducir a esa pagina q
he creado la funcion de fecha y hora atual del sistema, con el fin
de hacer dinamica la pagina, se que en activos hay un icono para
guardar fecha y hora actual, pero lo q quiero lograr es poder
insertar una funcion me imagino debe ser javascript q no manejo
mucho para obtener el efecto deseado.Pues si, efectivamente, es una funcion javascript. Si haces
una busqueda
en Google podras encontrar muchas.
Se trata solamente de bajar el codigo y ponerlo en la pagina.
alejandro
jwruiz7 wrote:
> Buenas tardes he realizado una aplicacion web
enteramente con fireworks8,
> quisiera saber si es posible introducir a esa pagina q
he creado la funcion de
> fecha y hora atual del sistema, con el fin de hacer
dinamica la pagina, se que
> en activos hay un icono para guardar fecha y hora
actual, pero lo q quiero
> lograr es poder insertar una funcion me imagino debe ser
javascript q no manejo
> mucho para obtener el efecto deseado.
> -
[FLASH MX 2004] Validar una fecha en AS
Buenos días,
Como puedo validar si una fecha que me han metido en un
formulario hecho en
AS es correcta?
Muchas gracias por la ayuda.
SaludosMuchas gracias Juan, voy a probarlo.
Saludos
"Juan Muro `8¬}" <[email protected]>
escribió en el mensaje
news:etmga4$m5r$[email protected]..
> Este truco es de www.gamarod.com.ar. Personalizalo, el
código lo dice
todo,
> fíjate en el formato de la fecha y en la fecha de
inicio de validación.:
> //This validates a date inputted by a user to be in the
format dd/mm/yyyy
> //It doesn't use the Date Object but there's no misc or
form input
category!
> function dateVal (input) {
> if (input.length != 10) {
> return false;
> }
> for (j=0; j<input.length; j++) {
> //all figures and spacers in place?
> if ((j == 2) || (j == 5)) {
>
> if (input.charAt(j) != "/") {
> return false;
> }
> } else if ((input.charAt(j)<"0") ||
(input.charAt(j)>"9")) {
>
> return false;
>
> }
> }
> //using right format dd/mm/yyyy and year 2002 or more?
Change this for
diff
> formats...
>
> bits = input.split("/");
> days = Number(bits[0]);
> month = Number(bits[1]);
> year=Number(bits[2]);
> if (days > 31) { return false;}
> else if (month > 12) { return false;}
> else if (year < 2002) { return false;}
>
> return true;
> }
> /*Salu2
> `8¬}
> Juan Muro*/
>
> "Virginia Salgado" <[email protected]> escribió en
el mensaje
> news:etm1ep$35o$[email protected]..
> > Buenos días,
> >
> > Como puedo validar si una fecha que me han metido
en un formulario hecho
> > en
> > AS es correcta?
> >
> > Muchas gracias por la ayuda.
> >
> > Saludos
> >
> >
>
> -
Tengo una tabla que contiene una columna que es varchar. Si la fila tiene como tipo_dato=4 indica que fecha solo va a contener fechas del tipo 12-02-2004
Si tipo_dato es distinto de 4 no contiene fechas puede contener numeros, cadenas,....
Lo que pretendo hacer es:
Obtener todas las filas que tengan tipo_dato=4 y fecha >=12-02-2005
Formato de la tabla es:
table fecha{
fecha varchar2;
tipo_dato number ;
Tipo_dato=4 es de tipo fecha
Sentencia select a ejecutar
select fecha from (select fecha from tabla where tipo_dato=4) where to_date(fecha,'dd/mm/yyyy')>=to_date('12-02-2005','dd/mm/yyyy');
Al hacer esta select me indica :
The following error has occurred:
ORA-01858: se ha encontrado un carácter no numérico donde se esperaba uno numérico
Espero su pronta respuestaHola,
?estas seguro que todas las filas con tipo_dato=4 tienen una fecha del tipo dd-mm-yyyy?
create table FECHA
data varchar2(10), tipo number
insert into fecha values ('12-12-2005',4);
insert into fecha values ('13-12-2005',4);
insert into fecha values ('AAA',1);
insert into fecha values ('32332323',2);
select * from (select * from fecha where tipo=4) where
to_date(data,'dd/mm/yyyy')>to_date('12/07/2005','dd-mm-yyyy');
DATA TIPO
12-12-2005 4
13-12-2005 4
Hasta pronto.
Sam -
Tengo una tabla que contiene una columna que es varchar. Si la fila tiene como tipo_dato=4 indica que fecha solo va a contener fechas del tipo 12-02-2004
Si tipo_dato es distinto de 4 no contiene fechas puede contener numeros, cadenas,....
Lo que pretendo hacer es:
Obtener todas las filas que tengan tipo_dato=4 y fecha >=12-02-2005
Formato de la tabla es:
table fecha{
fecha varchar2;
tipo_dato number ;
Tipo_dato=4 es de tipo fecha
Sentencia select a ejecutar
select fecha from (select fecha from tabla where tipo_dato=4) where to_date(fecha,'dd/mm/yyyy')>=to_date(12-02-2005,'dd/mm/yyyy');
Al hacer esta select me indica :
The following error has occurred:
ORA-01858: se ha encontrado un carácter no numérico donde se esperaba uno numérico
Espero su pronta respuestaProvar
select fecha from (select fecha from tabla where tipo_dato=4) where to_date(fecha,'dd/mm/yyyy')>=to_date('12-02-2005','dd-mm-yyyy');
o
select fecha from (select fecha from tabla where tipo_dato=4) where to_date(fecha,'dd/mm/yyyy')>=to_date('12/02/2005','dd/mm/yyyy');
James -
What is new in Broadcaster 2004s
Anyone have a simple overview with some details why we should change from reporting agent to Broadcaster (we are on 3.5.3
Reporting Agent will be only supported in the 3.X runtime in 2004s.
All the new functionalities like Bursting, PDF etc will be implemented in Broadcaster only.
See attached documentation for new functionalities in Broadcaster.
https://websmp203.sap-ag.de/~sapdownload/011000358700004219392005E/ERQA_INFOBROADCASTING.PDF -
Hello
I have been reading forums and forums and after days of research l gave up.
Unfortunately it seems that nobody has provided a name of a brand yet.
Although the effort is very admirable, l am still at the point of finding myself back at square one, with an unanswered question:
Which portable external HD 500GB should l purchase for my iMac 10.4.11 (Power PC 2004)?
I know there are many different ones, but l hope at least somebody can suggest one.
A clear Name of a Product that matches the compatibility.
I am not an expert of computer and so all the theoretical explanations of technical characteristics mean next to nothing to me :(
I hope that someone kind enough to halo me out with this will be able to let me know.
My most greatefull thank you to you all in advance :)
And1001Try http://eshop.macsales.com/shop/hard-drives/External-Enclosures/
If you have question about any items on their page, MacSales has an extremely god technical support staff.
Allan -
I need to load an InfoCube from an InfoSet - Is this possible in 2004s?
Greetings,
<b>This question looks long, but it's really not. I'm just trying to give a lot of detail about the screens that I am seeing. Anyway, here goes:</b>
I am in 2004s. I want to load an InfoCube from an InfoSet. I know that an InfoSet is just a view and does not physically store data, but recent documentation published by SAP seems to indicate that this is
possible in 2004s (There is a document called "Developer Guide - 2004s" that says the following:
"InfoSets are an additional, easily manageable data source for generic data extraction. They allow you to use logical databases of all SAP applications, table
joins, and further datasets as data sources for BI". )
So... that led me to believe an InfoSet could load an InfoCube. In other words, the InfoSet would be the source and the InfoCube would be the target. I am in RSA1, and I right-click on the cube that I want to be the target. I select the "Create Transformation" option from the context menu. In the "Create Transformation" screen that pops up, I enter "InfoCube" in the target object type field and the name of the InfoCube in the target name field. I enter "InfoSet" in the source object type field and the name of the InfoSet in the source name field.
I get a pop-up that says "Cannot generate proposal". I click the green arrow, and then I get an error message
that says "Transformation does not exist (see long text)".
When I click on the error message, I get the following information in the Performance Assistant:
"Transformation does not exist (see long text)
Message no. RSTRAN010
Diagnosis
The transformation specified by transformation ID , source and target , does not exist.
System Response
The system terminates processing."
Any help would be much appreciated! It seems like it must be possible to use an InfoSet as a source in a data load, or else it would not be an option in the "Create Transformation" screen. ????
I've also tried right-clicking on the cube and selecting "Create Data Transfer Process". I enter the same information on this screen: the types and names of the source and target. Then I get a pop-up that says "Source and target have not been linked with a transformationDo you want to generate a default transformation?". There are two buttons I can click: one labeled "Yes" and one labeled "Abbrechen". I choose "Yes", because I have no idea what "Abbrechen" means.
Then I get the same pop-up from before: "Cannot generate proposal". I hit the green arrow, and I'm back in the
"Create Data Transfer Process" screen. So... I'm stuck in an infinite loop of screens that I can't get out of.
If someone could help, I would be grateful! THANK YOU VERY MUCH!Thank you so much, Ram! I REALLY APPRECIATE YOUR HELP!
I am wondering if it possible to manually create a node in RSA6 for the InfoSet. I tried it by doing the following:
I went to RSA6 and clicked on the white icon for "Create Node". I then entered the number "8", followed by the name of the InfoSet. (I entered an "8", because all our DataSources seem to start with an "8". I'm not sure why.)
The DataSource now shows up, but when I double-click on it, nothing happens. When I select it in the hierarchy and then click the icons for "Display" or "Change" or "Check", I just get an error message that says, "You have not selected any DataSources."
Also, do you know where I can get my hands on the white paper?
Thanks again!
Regards,
Sarah-Jane -
Can I restore Office 2004 from Time machine backup
Hi Guys,
I have managed to delete office 2004 when I was trying to install office 2008 using a friend's copy. Office 2008 will not work for me as it needs online registration.
I no longer have the office 2004 install disk. Is it possible to re-install office 2004 from my time machine backup. I can see it is available in the backup from before yesterday but not sure if I try to restore what will happen.
Any advice appreciated.
Thanks,
PaulHi PaulieHK,
Open Finder on you original view desktop.
No go to Application folder and select the Office 2004.
NOW, select the Time Machine icon in the dock and it will bring you back in history.
You can go back before you tried to install Office 2008.
Select IN Time Machine the application Office 2004 and click on PUT BACK.
Time machine will now put back the situation as it was before the installing Office 2008.
When you see your original desktop again try to open Office 2004.
Good luck ...
Dimaxum -
Dreamweaver MX 2004 - "An Unidentifed Error has occorred." - Please help!!
Hi folks. I have scoured the internet for a fix to this problem. Most of the posts I read are unanswered or the solution does not work. I am hoping a guru reads mine and has the magic answer - I am ready to chuck the project altogether if I can't find a solution. Although I am not a newbie to simple page design, I have never really tackled data access (dynamic content) before, like I am about to. I am ready and willing to learn but this obstacle may hinder my interest if it is going to be this big a pain in the keester.
Let's start with my system config:
Windows XP Pro w/ SP3
Dreamweaver MX 2004
IIS 5.1 - configured with FTP support
PHP 5.2.11
MySQL 5.0 - For now I am using the Test DB that comes with MySQL. Using "root" account.
I have verified that all is running properly to the best of my knowledge. Certainly Dreamweaver up until this issue has worked for years. I have not used DW for data access before on this machine but have successfully on others.
IIS > Loads web content from http://localhost just fine. Including PHP test page. And IIS help stuff that comes pre-installed.
MySQL > I can build DB's and Schemas just fine. I can even import data from external sources so I have to assume it's running fine.
Dreamweaver > The site I am building has the following config:
Local Info
Site Name: medimj
Local Root: C:\medimj *set to refresh
Images: C:\medimj\images
HTTP: blank
Remote Info
Access: Local/Network
Remote Folder: C:\inetpub\wwwroot\medimj\ *set to refresh auto
Testing Server
Server Model: PHP MySQL
This site contains: Dreamweaver MX Pages Only (default)
Access: Local/Network
Testing Server Folder: C:\indetpub\wwwroot\medimj\ *set to refresh auto
URL Prefix: http://localhost/medimj
<<<Everything else I believe is irrelevant to the topic and left to defaults>>>
SO HERE IS WHAT IS HAPPENING:
When I go to make a data connection (Step 4 under the Database tab of Applications section in DW), I click the "+" button and select "MySQL Connection". The dialogue window appears and I input:
Connection Name: medimj
MySql Server: localhost
User Name: root
Password: <password>
I click "Select" button and get an error window that says "An Unidentified error has occurred." and I am taken back to the MySQL Connection dialogue box. I have tried adding http:, slashes, \medimj, IP address, and pipe name to the Server name to make the connection and none of it works. If I put a DB name and click "ok" the binding will appear but no table ever come into view. If I click on "Test" I get the same error.
Here is the mysql area of the test.php. From what I see, I should be able to make a connection; but I'm not expert. Should I be seeing more information?:
mysql
MySQL Support
enabled
Active Persistent Links
0
Active Links
0
Client API version
5.0.51a
Directive
Local Value
Master Value
mysql.allow_persistent
On
On
mysql.connect_timeout
60
60
mysql.default_host
localhost
localhost
mysql.default_password
no value
no value
mysql.default_port
3306
3306
mysql.default_socket
no value
no value
mysql.default_user
no value
no value
mysql.max_links
Unlimited
Unlimited
mysql.max_persistent
Unlimited
Unlimited
mysql.trace_mode
Off
Off
I just don't see what's wrong at this point. I really hope somebody here can help.
I've been at this for 4 days and uninstalled and reinstalled everything to no avail. I hope I have given enough information for someone to make a suggestion that will help. I thank anyone for their time in advance.
prdreamweaverI would like to share with everyone a fix for this problem. I wish I could say I found it here but I did not. After continuing to search the Internet, while eagerly awaiting an answer here, I stumbled upon the answer deep in a thread in the MySQL website forums.
If someone should find this topic before the supposed Adobe fix, please do not waste your time with what Adobe suggests. It has been know cause more problems than help - as was the case with me. Applying their "fix" forced me to reinstall MySQL and a fresh version of PHP. I am also providing OS information and versions of all components I am using as well as settings within Dreamweaver. I cannot speak as to whether this fix transitions across other versions of Dreamweaver but it's worth looking at if yours does not match mine.
NOTE: ALWAYS MAKE A RECORD OF WHAT YOU CHANGE. THIS IS BASIC TROUBLESHOOTING AND WILL MINIMIZE THE NEED TO REINSTALL IF THINGS GET WORSE. BEING ABLE TO REVERSE WHAT YOU'VE CHANGED IS IMPORTANT.
System Info
OS: Windows XP Pro w/ SP3 (patched to the hilt)
IIS: 5.1 (installed from XP Pro CD - additional windows components)
PHP: v5.2.11 (installer version)
MySQL: v5.0.87 (installer version)
Dreamweaver: MX 2004
Install IIS, PHP, and MySQL per their individual instructions.
IIS Tweaks
Note: This tweak assumes you haven't already created your website virtual directory under IIS. If you have, you can delete it and follow these steps. You don't have to but I like this recommendation I found on another site as it tricks DW into thinking its attaching to an "outside" server. You'll see what I mean when you see the DW confg options later in this topic.
1. Create a folder under c:\inetpub\wwwroot that matches the local folder in DW for the site you are designing. Make sure they are spelled the same. If you have pages and images already in your local folder for DW, you don't have to re-create them here. You can sync them to the "server" much like you would when you FTP your pages up to a live server. Just make sure the root folders are named the same.
2. Right click your localhost site select "properties". Click the "Home Directory" tab. Click on the "Configuration" button. Under "Application Mappings", click the "Add" button. A new dialogue box appears > In the "Executable" area, browse to the root PHP folder and select file "php5isapi.dll" and click ok to return to the dialogue box. In the "Extension" box type ".php" without the quotes. Make sure "Script Engine" and "Check that file exists" are checked. Click ok.
NOTE: A DIALOGUE BOX MAY APPEAR ASKING IF YOU WANT TO PROPOGATE THE CHANGES ACROSS ALL OTHER SITES. YOU CAN SAY YES BUT IT DOESN'T ALWAYS WORK. (IT'S AN IIS THING) TO SEE IF IT DID, CHECK THE PROPERTIES OF YOUR VIRTUAL DIRECTORY AND FOLLOW STEP TWO IF YOU DON'T SEE THE PHP MAPPING THERE.
PHP Tweaks
1. extension_dir = c:\php\ext ~ change folder to match your install
2. cgi.force_redirect = 0 ~ required for IIS
3. register_globals = On
4. register_long_arrays = On
5. extension=php_mysql.dll ~ removed the ;
6. extension=php_mysqli.dll ~ removed the ;
7. include_path = "."
8. mysql.default_host = localhost
9. mysql.default_port = 3306
**NOTE: IF I DIDN'T PUT QUOTES - NEITHER SHOULD YOU.
10. Save and Close
copy the file libmysql.dll
to c:\windows & c:\windows\system32 ~ this file is in the root of PHP 5 folder
XP Environment Variables: Add the following at the end of Paths> c:\<php folder>;c:\<php folder>\ext ~ change php folder for your install
NOTE: ANY CHANGES TO ENVIRONMENT VARIABLES HAS THE POTENTIAL TO CAUSE SYSTEM PROBLEMS IF NOT DONE CORRECTLY. MAKE SURE YOU HAVE A ";" AT THE END OF THE PATH BEFORE YOU ADD THE CHANGES.
REBOOT!!!! THESE CHANGES WILL NOT TAKE EFFECT UNTIL YOU DO SO.
DW - edit current site or create it new
Local Info:
Should be left however you have it now OR if creating new, just do it like you always have.
Remote Info:
Access : Local/Network
Remote Folder: C:\inetpub\wwwroot\<your virtual directory>
* Check Refresh Automatically
Testing Server:
Server Model: PHP MySQL
Access: Local/ Network
Testing Server Folder: C:\inetpub\wwwroot\<your virtual directory>
URL Prefix: http://localhost/<your site name>
* Check Refresh Automatically
** I don't make changes to anything else under site editing so I stop there. Click OK and you're done.
At this point, you should see under the "Application" section on the "Database" tab, steps 1,2,3 checked. Now create a connection by clicking the "+" button. Enter the following:
Connection Name: <whatever you want>
MySQL Server: localhost
User Name: root (or another account you have created with sufficient privileges)
Password:
Database: enter a DB name you wish to connect to or click select if you wish to browse for it.
You shouldn't get the "Unidentified Error..." message anymore. I know I don't.
I hope this helps the next poor sap this happens to. I'm sorry for the long post but I hate, hate, hate, when people post half assed instructions because they are too lazy to type.
Good luck everyone and happy designing!!!
prdreamweaver
email: [email protected]
(you can email me with questions but remember, I am not an expert with dynamic content. however, I am willing to assist if I can) -
O Firefox no Android fecha do nada. Eu gosto muito, mas muito mesmo do Firefox, o melhor navegador de todos sem sombra de dúvida. No PC o Firefox não tem problema algum, mas quando acesso ele pelo Moto G começa os problemas. To acessando algum site pesado ou abro mais de 2 abas o navegador simplesmente fecha do nada sem explicação e eu perco tudo que estava aberto. Se não haver como resolver isso, o jeito será migrar pro Chrome e consequentemente usar o Chrome também no PC pois eu uso Sync. Gosto de ver meu histórico de sites acessados no PC no meu Moto G. Ou seja teria como eu sincronizar o Chrome no Moto G com o Firefox do PC? Como? Caso não há algum jeito de fazer essa sincronização entre dois navegadores diferentes e em plataformas diferentes, tudo bem. O jeito é tentar aprender a gosta do Chrome no PC.
Att
Emerson Liandro de PaulaMuitos problemas, podem ser causados por cache ou cookies corrompidos. A fim de tentar resolver estes problemas, o primeiro passo é limpar a cache e os cookies.
A cache do Firefox armazena temporariamente imagens, scripts e outros elementos enquanto você está navegando.<br>
Nota: ''Você será desconectado de todos os sites que estiver conectado''.
Para limpar a cache e os cookies, faça o seguinte:
# Toque no ícone com três barras localizado no canto superior direito. Em aparelhos Android antigos será necessário pressionar a tecla física de menu, depois em Mais.
# Toque em '''Configurações'''.
# Você será levado para a tela de configurações. Na seção '''''Privacidade e Segurança''''', selecione '''Limpar dados de navegação'''.
# Em seguida, você será levado para uma lista do que pode ser apagado. Selecione os 2 itens seguintes:
#*Cookies e logins ativos
#*Cache
# Após seleciona-los, toque em '''Limpar dados'''. -
O Firefox sempre demorou para abrir, quando usado pela primeira vez após ligar o computador, mas depois funcionava normalmente. De um mês pra cá, simplesmente parou de funcionar. Se não me engano, foi depois que atualizou para a versão 24.0.
Como utilizo o Malwarebytes para proteção do PC, o mesmo indicou arquivo malicioso na versão baixada através DESTE SITE. Opto sempre por corrigir os problemas encontrados e não sei se devido a isso, o programa não funciona mais. Ontem à noite desinstalei novamente o programa e fiz um novo download pela décima vez. Começou a funcionar normalmente e a navegar sem travamento. Hoje rodei o MALWAREBYTES, que acusou um arquivo malicioso no Firefox, no arquivo baixado ontem. Mandei corrigir o problema e o navegador não funcionou mais. Ele fica tão travado que a tela só fecha se eu for para o Gerenciador de Tarefas e mandar fechar o programa!
Demora minutos para abrir uma página de qualquer site e fica só rodando, rodando... Quando finalmente abre, dá o alerta SCRIPT NÃO ESTÁ RESPONDENDO - Um script desta página pode estar em execução ou parado de responder. Você pode interrompê-lo agora ou continuar para verificar se ele termina a execução. Aí tanto faz eu INTERROMPER O SCRIPT ou CONTINUAR que o resultado é sempre o mesmo: TRAVAMENTO GERAL. Só fecha com o Crtl+Alt+Del!!
Preciso usar o Firefox para resolver problemas de trabalho, pois o site de um determinado órgão funciona apenas com o Firefox!
Agradeço muito se alguém puder me ajudar.Olá CelinaBrasil, boa noite!
O recurso '''Restaurar Firefox''' pode resolver muitos problemas, restaurando o Firefox para seu estado padrão, salvando suas informações essenciais.
Note:'' Isso fará com que você perca todas as extensões, sites abertos, e algumas preferências''.
Para Restaurar o Firefox faça o seguinte:
# Vá para o menu Firefox> Ajuda> Dados para Suporte.
# Clique no botão "Restaurar o Firefox".
# Firefox irá fechar e reiniciar. Quando o Firefox estiver pronto, uma janela com as informações importadas será exibida. Clique em Concluir.
# Firefox abrirá com todos os padrões de fábrica aplicados.
Para mais informações entre no artigo [[Reset Firefox – easily fix most problems]].
Espero que essas informações sejam úteis! Por favor, nos informe se isso resolver seu problema. -
SAP NetWeaver 2004s SR 1 SP9 INSTALL
I spent last week trying to install SAP Netweaver 2004s SR 1 SP9 in XP SP2 with no success.
The JDK version is 1.4.2_09 and the install process fail in step "Import Java Dump", the <i>sapinst.log</i> indicates the error:
14-dic-2007 11:55:30 com.sap.inst.jload.Jload dbImport
GRAVE: <b>DB Error during import of J2EE_CONFIGENTRY</b>
14-dic-2007 11:55:30 com.sap.inst.jload.Jload printSQLException
GRAVE: Message: Cannot assign NULL to host variable 2. setNull() can only be used if the corresponding column is nullable. The statement is "INSERT INTO J2EE_CONFIGENTRY( CID , NAMEHASH , ISFILE , NAME , DTYPE , VBIGINT , VDOUBLE , VSTR , VBYTES , FBLOB ) VALUES ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )".
14-dic-2007 11:55:30 com.sap.inst.jload.Jload printSQLException
GRAVE: SQLState: SAP06
14-dic-2007 11:55:30 com.sap.inst.jload.Jload printSQLException
GRAVE: ErrorCode: 1001142
14-dic-2007 11:55:31 com.sap.inst.jload.db.DBConnection disconnect
INFO: disconnected
ERROR 2007-12-14 11:55:31
CJS-30049 Execution of JLoad tool 'C:\j2sdk1.4.2_09\bin\java.exe -classpath "C:\Archivos de programa\sapinst_instdir\NW04S\SNEAK_PREVIEW\FULL\INSTALL\install\sltools\sharedlib\launcher.jar" -showversion -Xmx512m com.sap.engine.offline.OfflineToolStart com.sap.inst.jload.Jload "C:/Archivos de programa/sapinst_instdir/NW04S/SNEAK_PREVIEW/FULL/INSTALL/install/lib/iaik_jce.jar;C:/Archivos de programa/sapinst_instdir/NW04S/SNEAK_PREVIEW/FULL/INSTALL/install/sltools/sharedlib/jload.jar;C:/Archivos de programa/sapinst_instdir/NW04S/SNEAK_PREVIEW/FULL/INSTALL/install/sltools/sharedlib/antlr.jar;C:/Archivos de programa/sapinst_instdir/NW04S/SNEAK_PREVIEW/FULL/INSTALL/install/sltools/sharedlib/exception.jar;C:/Archivos de programa/sapinst_instdir/NW04S/SNEAK_PREVIEW/FULL/INSTALL/install/sltools/sharedlib/jddi.jar;C:/Archivos de programa/sapinst_instdir/NW04S/SNEAK_PREVIEW/FULL/INSTALL/install/sltools/sharedlib/logging.jar;C:/Archivos de programa/sapinst_instdir/NW04S/SNEAK_PREVIEW/FULL/INSTALL/install/sltools/sharedlib/offlineconfiguration.jar;C:/Archivos de programa/sapinst_instdir/NW04S/SNEAK_PREVIEW/FULL/INSTALL/install/sltools/sharedlib/opensqlsta.jar;C:/Archivos de programa/sapinst_instdir/NW04S/SNEAK_PREVIEW/FULL/INSTALL/install/sltools/sharedlib/tc_sec_secstorefs.jar;C:\sapdb\programs\runtime\jar\sapdbc.jar" -sec J2E,jdbc/pool/J2E,
MX3506DC0976/sapmnt/J2E/SYS/global/security/data/SecStore.properties,
MX3506DC0976/sapmnt/J2E/SYS/global/security/data/SecStore.key -dataDir C:/Programas/SAPNW2004sJavaSP9_Trial/SAP_NetWeaver_2004s_SR_1_Installation_Master_DVD__ID__NW05SR1_IM1\../Sneak_Preview_Content\JAVA\JDMP -job "C:\Archivos de programa\sapinst_instdir\NW04S\SNEAK_PREVIEW\FULL\INSTALL\IMPORT.XML" -log jload.log' aborts with return code 1.<br>SOLUTION: Check 'jload.log' and 'C:/Archivos de programa/sapinst_instdir/NW04S/SNEAK_PREVIEW/FULL/INSTALL/jload.java.log' for more information.
ERROR 2007-12-14 11:55:31
FCO-00011 The step importJavaDump with step key |NW_Java_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|9|0|NW_Jload|ind|ind|ind|ind|9|0|importJavaDump was executed with status ERROR .
INFO 2007-12-14 11:55:38
An error occured and the user decide to stop.\n Current step "|NW_Java_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|9|0|NW_Jload|ind|ind|ind|ind|9|0|importJavaDump".
I have read many posts in many forums and there are some posts about the same problem of the table J2EE_CONFIGENTRY, but never clear answers (or answers for Linux OS). I really appreciate any help about it.
PD: No, it's not the timezone configuration (I have GMT+1 and daylight saving enabled).Hi Friends!
This is Anand Here
I am totally new to SAP
I was trying to install SAP on 2003Server
while installing the ABAP System-Central Instance
I Got this error message
An error occurred during the installation of component SAP ERP 2004 SR1>ABAP System>Oracle> Non-Unicode>Central Instance Installation. Press the log View Button to get extended error information or press OK to terminate the installation. Log Files are written to SAP ERP 2004 SR1>ABAP System>Oracle> Non-Unicode>Central Instance Installation
The following error occured and the installation could not proceed
ERROR 2007-12-27 20:33:33
- FSL-00001 System Call Failed. Error 5 (Access is denied.) in execution of system call 'FindFirstVolumeMountPoint' with parameter (
?\Volume{c682cb5b-b31d-11dc-be09-806e6f6e6963}\), line (77) in file (synxcfsmit.cpp).
ERROR 2007-12-27 20:33:33
MOS-01235 Module function getInfo of module CIa0sMount Failed,
Can Somebody help me with this
Maybe you are looking for
-
Error while creating the Connector in PRD - Trex in Talent Management
Dear Luke, Greetings. We are in ECC 6, Eph4. While setting up the TREX in Production we are encountring an error as below. But we dont have any issue in Development and Quality system. TREX related to Talent Management is working fine. Would be great
-
How to create database from scratch using user input
what I am trying to do is to create database via my java code (using hibernate and my sql) and based on user input. The details like the name of table.... or the number of columns in it are all supposed to be determined from user input (only the firs
-
Web.xml file problem in tomcat
Hi i need help in this... its urgent currently i just subscribe to a web hosting site and i need to start the private tomcat in the web server.. The followings are the instructions and i have follow them but i do not know how to create a web.xml file
-
hi all, i need your help. im having a problem with my program, is there a table which can display the the function module's description? pls this is urgent..i hope you can help me with this... thanks, mau
-
This is the code of my document class: public class FirstMask extends Sprite private var maskedShape:Shape; public function FirstMask() { init(); private function init():void { maskedShape = new Shape(); addChild(maskedShape); maske