Hola, estoy intentando incorporar dentro de una aplicacion de pago llamada kayako essuport un iframe con una aplicacion en php. Lo que pasa que esta aplicacion php necesita recibir una variable de la aplicacion principal que se pasa por url.
Lo he intentado con $_GET, $REQUEST y no la coge.
Esta es la aplicacion:
[URL]http://www.subirimagenes.com/privadas-dibujo-1009893.html[/URL]
Se debe pasar ticketid a dentro del iframe para que muestre los proyectos que tienen ese ticket id, y no todos como muestra ahora.
CODIGO DEL IFRAME Código PHP:
<?php
include_once("conexion.php");
include_once("consultas.php");
$con = new CConexion();
[B][SIZE="4"]$ticketid = $_GET['ticketid'];[/SIZE][/B] // AQUI RECOJO TICKETID
echo $ticketid."<br>";
$db = 'brumasou_swift';
$con->conectar($db);
$result = new consultas($con);
$resulta = $result->ticket($ticketid);
$resulta2 = mysql_query($resulta) or die(mysql_error());
echo $resulta."<br>";
while ($registro = mysql_fetch_array($resulta2))
$buscar = $registro["ticketmaskid"];
$con = new CConexion();
$db = 'brumasou_flyspray';
$con->conectar($db);
$result = new consultas($con);
$resultado = $result->consulta($buscar);
$resultado2 = mysql_query($resultado) or die(mysql_error());
$num_total_registros = $result->filas_total($resultado2);
echo $resultado."<br>";
if ($num_total_registros > 0) {
echo $ticketid;
echo "<table cellspacing='0' cellpadding='4' border='1' bordercolor='#0B3861' bgcolor='#475B70' align='center'";
echo "<tr align='center'><td width='100'><strong><font face='arial' size='2' color='white'>Departamento </font></strong></td><td width='60'><strong><font face='arial' size='2' color='white'>Id </font></strong></td><td width='200'><strong><font face='arial' size='2' color='white'>Proyecto</font></strong></td><td colspan='2' width='100'><strong><font size='2' face='arial' color='white'>Fecha Apertura</font></strong></td><td width='100'><strong><font face='arial' size='2' color='white'>Fecha cierre</font></strong></td><td width='40'><strong><font face='arial' size='2' color='white'>Estado</font></strong></td><td width='100'><strong><font face='arial' size='2' color='white'>Usuarios</font></strong></td></tr>";
echo "</table>";
while ($fila = mysql_fetch_object($resultado2)) {
$fecha1 = date("d/m/Y", $fila->date_opened);
if ($fila->date_closed > 1)
$fecha2 = date("d/m/Y", $fila->date_closed);
else
$fecha2 = $fila->date_closed;
if ($fecha2 == 0)
$fecha2 = "-";
echo "<table cellspacing='0' cellpadding='4' border='1' bordercolor='' align='center'>";
echo "<tr><td align='center' width='100'><a TARGET='_blank' href=http://localhost/flly/index.php?do=details&task_id=" . $fila->task_id . "&project=" . $fila->project_title . "&status[]=>" . $fila->project_title . "</a></td><td align='center' width='60'>" . $fila->task_id . "</td><td align='center' width='200'>" . $fila->item_summary . "</td><td align='center' width='100'>" . $fecha1 . "<td align='center' width='100'>" . $fecha2 . "<td align='center' width='40'>" . $fila->item_status . "</td>";
echo "<td align='center' width='100'>";
$result2 = new consultas($con);
$asignados = $result2->consultas2($fila->task_id);
$asignados2 = mysql_query($asignados);
while ($fila2 = mysql_fetch_object($asignados2))
echo "" . $fila2->user_name . " ";
if ($fila2->user_name == null)
echo " ";
echo "</td></td></tr></td></tr></table>";
}
} else
echo "<center>No se han encontrado resultados</center>";
?>
A ver si me pueden ayudar.
Gracias.