Ayuda
Hola que tal, tengo un problema con este codigo, anteriormente funcionaba pero con el cambio de server, genera un error en la funcion include, me puesn ayudar a solucionarlo,
gracias
<?php
include("config/conf.php");
// CONNEXION MYSQL
$db_link = @mysql_connect("localhost", "ivao_users", "eeDre33ivao44de");
if(!$db_link) {echo "No connected to <b>$sql_bdd</b> on the server <b>"localhost"</b>"; exit;}
$allvid=mysql_db_query("ivao_users","select Pers_Id from user_data where Pers_Activate="1" and new_password="1" and Rating>1 and Pers_Sand="0"",$db_link) or die(mysql_error());
while ($data = mysql_fetch_array($allvid)) {
{
include ("update_time_pilot.php?Id=).$data['Pers_Id'].'';
}
}
?>
<?
print '<br><br><b>Pilot Update time written by (IVAO-AWM) for Ivao.org</b>';
?>
<?
mysql_close($db_link);?>
gracias
<?php
include("config/conf.php");
// CONNEXION MYSQL
$db_link = @mysql_connect("localhost", "ivao_users", "eeDre33ivao44de");
if(!$db_link) {echo "No connected to <b>$sql_bdd</b> on the server <b>"localhost"</b>"; exit;}
$allvid=mysql_db_query("ivao_users","select Pers_Id from user_data where Pers_Activate="1" and new_password="1" and Rating>1 and Pers_Sand="0"",$db_link) or die(mysql_error());
while ($data = mysql_fetch_array($allvid)) {
{
include ("update_time_pilot.php?Id=).$data['Pers_Id'].'';
}
}
?>
<?
print '<br><br><b>Pilot Update time written by (IVAO-AWM) for Ivao.org</b>';
?>
<?
mysql_close($db_link);?>
el codigo es este y el error lo da en la linea 12 donde esta el include, me han dicho que los includes no reciben variables cual seria el codigo para este
gracias nuevamente
<?php
include("config/conf.php");
// CONNEXION MYSQL
$db_link = @mysql_connect($sql_serveur,$sql_user,$sql_passwd);
if(!$db_link) {echo "No connected to <b>$sql_bdd</b> on the server <b>$sql_server</b>"; exit;}
$allvid=mysql_db_query($sql_bdd,"select Pers_Id from user_data where Pers_Activate="1" and new_password="1" and Rating>1 and Pers_Sand="0"",$db_link) or die(mysql_error());
while ($data = mysql_fetch_array($allvid)) {
{
$data['Pers_Id']
include ("http://www.ivao.org/members/person/update_time_pilot.php=?")
}
}
?>
<?
print '<br><br><b>Pilot Update time written by Julien Lhernault (IVAO-AWM1) for Ivao.org</b>';
?>
<?
mysql_close($db_link);?>
gracias nuevamente
<?php
include("config/conf.php");
// CONNEXION MYSQL
$db_link = @mysql_connect($sql_serveur,$sql_user,$sql_passwd);
if(!$db_link) {echo "No connected to <b>$sql_bdd</b> on the server <b>$sql_server</b>"; exit;}
$allvid=mysql_db_query($sql_bdd,"select Pers_Id from user_data where Pers_Activate="1" and new_password="1" and Rating>1 and Pers_Sand="0"",$db_link) or die(mysql_error());
while ($data = mysql_fetch_array($allvid)) {
{
$data['Pers_Id']
include ("http://www.ivao.org/members/person/update_time_pilot.php=?")
}
}
?>
<?
print '<br><br><b>Pilot Update time written by Julien Lhernault (IVAO-AWM1) for Ivao.org</b>';
?>
<?
mysql_close($db_link);?>
precisamente esto es lo que necesito cambiar:
include ("update_time_pilot.php?Id=).$data[\'Pers_Id\'].\'\';
include ("update_time_pilot.php?Id=).$data[\'Pers_Id\'].\'\';
sólo hay que hacer un cambio en updating_pilot.php en la linea 12, ya que los includes no reciben variables, entonces hay que asignarla antes dentro del while
*** ACTUAL ***
include 'update_time_pilot.php?Id='.$data['Pers_Id'].'';
*** ***
*** NUEVO ***
$Id=$data['Pers_Id'];
include "update_time_pilot.php'';
*** ***
*** ACTUAL ***
include 'update_time_pilot.php?Id='.$data['Pers_Id'].'';
*** ***
*** NUEVO ***
$Id=$data['Pers_Id'];
include "update_time_pilot.php'';
*** ***