Comunidad de diseño web y desarrollo en internet online

problema con AS2 + PHP + MYSQL + DataGrid

Citar            
MensajeEscrito el 02 Jun 2011 03:19 am
Hola:

Primero Dar Las gracias Por El Trabajo Que Hacen Aquí, tutoriales SUS Con y Respuestas.

El Problema Que Tengo Siguiente es el, Estoy Haciendo Una aplicacion párrafo Conectarse base de uña de Datos Por php y reflejarlo en las Naciones Unidas datagrid y Editar los Registros EL EN TEMA Que No Me Funciona y no PORQUE SE el, no soy Muy Avanzado en ESTO realmente.

Adjunto los PhP y El AS2

Cust_form_data.php

<? Php
incluyen "host.ini";
mysql_connect ($ host, $ user, $ pass);
mysql_select_db ($ db);
$ R = "SELECT
«Nombre» ». Cust_id_num»,
«Nombre». »Usuario»,
«Nombre». "Contraseña",
«Nombre». "Nombre",
«Nombre». »Apellido»,
«Nombre». »Empresa»,
«Nombre». »Dirección»,
«Nombre». »Telefono»,
«Nombre». "Rut",
`Nombre`. `Ciudad`,
«Nombre». "Comuna",
«Nombre». "Giro",
«Nombre». "Correo"
DE
«Nombre»
DONDE
«Nombre». Cust_id_num `` = '$ cust_id_num'
ORDER BY
`Nombre` Usuario `ASC."
$ Rr = mysql_query ("$ r") or die ("problema" mysql_error ().);
lista ($ cust_id_num, $ Usuario, $ Password, Nombre $, $ lido Apel, $ Empresa,
$ Dirección, Telefono $, $ Rut, $ Ciudad, Comuna $, $ Giro, $ orreo C) =
mysql_fetch_row ($ rr);
echo "y cust_id_num =". $ Cust_id_num;
echo "y use_ti =". $ Usuario;
echo "y pass_ti =". $ Contraseña;
echo "y nom_ti =". $ Nombre;
echo "y ape_ti =". $ Apellido;
echo "y emp_ti =". $ Empresa;
echo "y rut_ti =". $ Rut;
echo "y gir_ti =". $ Giro;
echo "y cui_ti =". $ Ciudad;
echo "y com_ti =". $ Comuna;
echo "y dir_ti =". $ Dirección;
echo "y cor_ti =". $ Correo;
echo "y tel_ti =". $ Telefono;
?>

Cust_datagrid.php

<? Php

incluyen "host.ini";
mysql_connect ($ host, $ user, $ pass);
mysql_select_db ($ db);
/ / Este es el QUERTY SQL - sólo una consulta de selección simple.
$ X = "SELECT
«Nombre» ». Cust_id_num»,
«Nombre». »Usuario»,
«Nombre». "Contraseña",
«Nombre». "Nombre",
«Nombre». »Apellido»,
«Nombre». »Empresa»,
«Nombre». »Dirección»,
«Nombre». »Telefono»,
«Nombre». "Rut",
«Nombre». `Ciudad`,
«Nombre». "Comuna",
«Nombre». "Giro",
«Nombre». "Correo"
DE
«Nombre»
ORDER BY
`Nombre` Usuario `ASC."
/ / PHP lee los datos mysql en una matriz
$ Xx = mysql_query ("$ x") or die (mysql_error () "problema".)
lista ($ cust_id_num, $ Usuario, $ Password, Nombre $, $ lido Apel, $ Empresa,
$ Dirección, Telefono $, $ Rut, $ Ciudad, Comuna $, $ Giro, $ orreo C) =
mysql_fetch_row ($ xx);
/ * El siguiente código PHP en formato de base de datos los resultados en una matriz legible por el Flash
cuadrícula de datos .* /
$ I = 0;
$ n = 0;
$ Resultados = mysql_query ("$ x");
$ N = mysql_num_rows ($ resultados);
while ($ fila = mysql_fetch_array ($ resultados)) {
while (list ($ key, $ val) = cada una ($ row)) {
$ R_string .= '&'. $ Clave. $ I. '='. stripslashes ($ val);
}
$ I + +;
}
echo "& i =". $ I;
echo "y" n "=". $ N;
$ R_string .='&';
echo "& $ r_string";
?>

AS2

/ * Esto define la ubicación de los archivos que se van
utilizar en este programa. * /
_global.mypath = "http://www.digitaldesing/JLS/"

/ / Esto define las columnas datagrid
importación mx.controls.DataGrid;
importación mx.controls.gridclasses.DataGridColumn;

var = columna DataGridColumn nueva ("J1");
column.headerText = "Usuario";
column.width = 80
mostrar_ti.addColumn (columna);

var = columna DataGridColumn nueva ("J2");
column.headerText = "Contraseña";
column.width = 80;
mostrar_ti.addColumn (columna);

var = columna DataGridColumn nueva ("J3");
column.headerText = "Nombre";
column.width = 100;
mostrar_ti.addColumn (columna);

var = columna DataGridColumn nueva ("j4");
column.headerText = "Apellido";
column.width = 120;
mostrar_ti.addColumn (columna);
mostrar_ti.addEventListener ("headerRelease", headerListener);
mostrar_ti.dataProvider = r_string;
mostrar_ti.scrollToTop ();
mostrar_ti.dataProvider = r_string;

/ / Esto lee los datos de la secuencia de comandos PHP y rellena la cuadrícula de datos.
var sendData LoadVars = new ();
var r_string LoadVars = new ();
r_string.onLoad = getResponse;

sendData.addr = propDgrid.selectedItem.j2
job_id_num = custDgrid.selectedItem.cust_id;
mypath89 _global.mypath + = "Cust_datagrid.php";
sendData.sendAndLoad (mypath89, r_string, "post");

getResponse función (resultado) {
if (resultado == true) {
r_string var = new Array ();
for (var i: Number = 0; i <this.n; i + +) {
r_string.push (
{Cust_id_num: este ["cust_id_num" + i],
J1: este ["use_ti" + i],
J2: este ["pass_ti" + i],
J3: este ["nom_ti" + i],
J4: este ["ape_ti" + i]
})};

}
mostrar_ti.dataProvider = r_string;
}

/ / Rellenar el formulario
//============== Mostrar detalles del cliente =========================
custf = function () {
var sendData LoadVars = new ();
var recData LoadVars = new ();
recData.onLoad = getResponse1;
sendData.cust_id_num = mostrar_ti.selectedItem.cust_id_num;
mypath81 _global.mypath + = "Cust_form_data.php";
sendData.sendAndLoad (mypath81, recData, "post");
}

función getResponse1 (resultado) {

if (resultado == true) {
use_ti.text = esta ['use_ti'];
pass_ti.text = esta ['use_ti'];
nom_ti.text = esta ['nom_ti'];
ape_ti.text = esta ['ape_ti'];
emp_ti.text = esta ['emp_ti'];
rut_ti.text = esta ['rut_ti'];
gir_ti.text = esta ['gir_ti'];
cui_ti.text = esta ['cui_ti'];
com_ti.text = esta ['com_ti'];
dir_ti.text = esta ['dir_ti'];
cor_ti.text = esta ['cor_ti'];
tel_ti.text = esta ['tel_ti'];
}
}

mostrar_ti.addEventListener ("cellPress", custf);

y la pagina where this El Modelo http://www.digitaldesing.cl/JLS/DataGrid.html

PHP:

http://www.dogotaldesing.cl/JLS/Cust_datagrid.php
http://www.dogotaldesing.cl/JLS/Cust_form_data.php


Espero me puedan Ayudar y gracias de antemano

Por 995419

2 de clabLevel



 

chrome
Citar            
MensajeEscrito el 02 Jun 2011 01:39 pm
Tu pregunta parece redactada por un traductor automático. Intenta formular claramente tu problema, si el español no es tu idioma quizás postearla en un foro en tu propio idioma sea mejor

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.