04-22-2012, 05:06 PM
Im trying to make a seal system for the website.
What Im trying ahcer is to select all tables t_inven09 t_inven00 up.
Once there you check if there is an item from one id to another.
i if you change the options (a_option0_idx0 to a_option4 idx4) either item_idx0 to item_idx04.
I do not know if in the right direction so I ask someone to take a look and tell me the errors you find.
I think there .. xDD
I need a good instruction book .. If you can provide would be appreciated.
Thank you,
Att: Infinity
Spanish:
Estoy intentando hacer un sistema de sellos, para la pagina web.
Lo que estoy intentando ahcer es que seleccione todas las tablas t_inven00 hasta t_inven09.
Una vez alli que compruebe si hay algun item desde una id a otra.
i si esta que le cambie las opciones (a_option0_idx0 hasta a_option4 idx4) ya sea item_idx0 hasta item_idx04.
No se si voy por el buen camino por eso pido que alguien le eche un vistazo y me diga los errores que encuentre.
Creo que hay.. xDD
Necesito un buen libro de instrucciones.. Si lo pueden aportar se agradeceria.
Gracias,
Att: Infinity
$playerz = $_POST[Name];
mysql_select_db( $SiteSQL["config-database_db"] , $Site_sqlcon) or die( mysql_error() );
$seals_info = mysql_query("SELECT a_item_idx0, a_item0_option0, a_item0_option1, a_item0_option2, a_item0_option3, a_item0_option4 FROM t_inven00, t_inven01, t_inven02, t_inven03, t_inven04, t_inven05, t_inven06, t_inven07, t_inven08, t_inven09 WHERE a_index = $item");
$seals_info = mysql_query("SELECT a_item_idx1, a_item1_option0, a_item1_option1, a_item1_option2, a_item1_option3, a_item1_option4 FROM t_inven00, t_inven01, t_inven02, t_inven03, t_inven04, t_inven05, t_inven06, t_inven07, t_inven08, t_inven09 WHERE a_index = $item");
$seals_info = mysql_query("SELECT a_item_idx2, a_item2_option0, a_item2_option1, a_item2_option2, a_item2_option3, a_item2_option4 FROM t_inven00, t_inven01, t_inven02, t_inven03, t_inven04, t_inven05, t_inven06, t_inven07, t_inven08, t_inven09 WHERE a_index = $item");
$seals_info = mysql_query("SELECT a_item_idx3, a_item3_option0, a_item3_option1, a_item3_option2, a_item3_option3, a_item3_option4 FROM t_inven00, t_inven01, t_inven02, t_inven03, t_inven04, t_inven05, t_inven06, t_inven07, t_inven08, t_inven09 WHERE a_index = $item");
$seals_info = mysql_query("SELECT a_item_idx4, a_item4_option0, a_item4_option1, a_item4_option2, a_item4_option3, a_item4_option4 FROM t_inven00, t_inven01, t_inven02, t_inven03, t_inven04, t_inven05, t_inven06, t_inven07, t_inven08, t_inven09 WHERE a_index = $item");
$r = 1;
$t = 1;
while( $row = mysql_fetch_array( $seals_info ) )
{
if (($row[a_item_idx] >= 2000-7199))
{
$doseals = mysql_query("UPDATE t_inven00, t_inven01, t_inven02, t_inven03, t_inven04, t_inven05, t_inven06, t_inven07, t_inven08, t_inven09 SET a_item0_option0= 200, a_item0_option1= 200, a_item0_option2= 200 , a_item0_option3= 200, a_item0_option4= 200, a_item1_option0= 200, a_item1_option1= 200, a_item1_option2= 200, a_item1_option3= 200, a_item1_option4= 200, a_item2_option0= 200, a_item2_option1= 200, a_item2_option2= 200, a_item2_option3= 200, a_item2_option4= 200, a_item3_option0= 200, a_item3_option1= 200, a_item3_option2= 200, a_item3_option3= 200, a_item3_option4= 200, a_item4_option0= 200, a_item4_option1= 200, a_item4_option2= 200, a_item4_option3= 200, a_item4_option4= 200 WHERE a_item_idx0= 2000, a_item_idx1= 2000, a_item_idx2= 2000, a_item_idx3= 2000, a_item_idx4= 2000);
echo "
Seals Added";
}
else
{
echo "
Not Items for selling";
}
$r++;
$t++;
}
?>


