<?
print_r($_POST);
exit;
?>
e verifique se esta chegando os valores
There have been 30 items by Fábio Web Arts (Search limited from 20/04/2023)
Posted by Fábio Web Arts on 30/12/2010, 07:59 in PHP
<?
print_r($_POST);
exit;
?>
Posted by Fábio Web Arts on 10/01/2011, 07:29 in PHP
Posted by Fábio Web Arts on 10/01/2011, 16:18 in PHP
Posted by Fábio Web Arts on 11/01/2011, 12:45 in PHP
if ($quantcompusu > 0){
$quantusu = $quantusu - $quantcompusu;
if ($quantusu > 0){
$x = 1;
while ($x <= $quantusu){
$x++;
echo "<option value=".$x.">".$x."</option>";
}
}
else{
echo "<option value=''>Esgotado</option>";
$x = 0;
}
}
else{
$x = 0;
while ($x <= $quantusu){
$x++;
echo "<option value=".$x.">".$x."</option>";
}
}
Posted by Fábio Web Arts on 16/02/2011, 08:31 in PHP
Posted by Fábio Web Arts on 16/02/2011, 08:33 in PHP
Posted by Fábio Web Arts on 16/02/2011, 08:35 in PHP
Posted by Fábio Web Arts on 17/02/2011, 16:19 in PHP
Posted by Fábio Web Arts on 17/02/2011, 16:20 in PHP
Posted by Fábio Web Arts on 17/02/2011, 16:23 in PHP
Posted by Fábio Web Arts on 25/02/2011, 11:23 in PHP
Posted by Fábio Web Arts on 28/02/2011, 10:05 in PHP
Posted by Fábio Web Arts on 19/05/2011, 15:56 in PHP
Posted by Fábio Web Arts on 28/05/2011, 17:43 in PHP
Posted by Fábio Web Arts on 31/05/2011, 00:11 in PHP
Posted by Fábio Web Arts on 01/06/2011, 16:11 in PHP
<?
$i=1;
while($reg_quest = mysql_fetch_object($qry_quest)){
$qry_resp = $mysql->sql_query("SELECT * FROM `respostas` WHERE `id_prova` = '".$_GET['id']."' AND `id_quest` = '".$reg_quest->id."'");
?>
<td colspan="3">
<strong>
<font color="#333333" size="2" face="Arial, Helvetica, sans-serif">
<?
echo "<br><strong>Questao ".$i.":</strong> ".$reg_quest->nome."\n<input type=\"hidden\" name=\"perg[".$i."]\" value=\"".$reg_quest->id."\" /><br><br>\n";
?>
</font>
</strong>
</td>
</tr>
<tr>
<td>
<p>
<?
$j=1;
while($reg_resp = mysql_fetch_object($qry_resp)){
echo "<input type=\"radio\" name=\"resp[".$i."]\" value=\"".$reg_resp->id."\" />\n<strong>Resposta ".$j."-".$i.":</strong> ".$reg_resp->nome."<br>\n";
$j++;
}
?>
</p>
</td>
</tr>
<?
$i++;
}
?>
Posted by Fábio Web Arts on 30/06/2011, 14:48 in Javascript / DOM / AJAX / ECMAScript
Posted by Fábio Web Arts on 01/07/2011, 13:25 in Javascript / DOM / AJAX / ECMAScript
Posted by Fábio Web Arts on 15/08/2011, 12:44 in MySQL
Posted by Fábio Web Arts on 08/09/2011, 18:48 in PHP
Posted by Fábio Web Arts on 21/09/2011, 17:54 in PHP
<list>
<item id="1" type="Weapon" name="Short Sword">
<set name="icon" val="icon.weapon_small_sword_i00" />
<set name="default_action" val="equip" />
<set name="weapon_type" val="sword" />
<set name="bodypart" val="rhand" />
<set name="random_damage" val="10" />
<set name="attack_range" val="40" />
<set name="damage_range" val="0;0;40;120" />
<set name="immediate_effect" val="1" />
<set name="material" val="steel" />
<set name="weight" val="1600" />
<set name="price" val="1" />
<set name="soulshots" val="1" />
<set name="spiritshots" val="1" />
<for>
<set order="0x08" stat="pAtk" val="8" />
<set order="0x08" stat="mAtk" val="6" />
<set order="0x08" stat="rCrit" val="8" />
<set order="0x08" stat="pAtkSpd" val="379" />
</for>
</item>
<item id="2" type="Weapon" name="Long Sword">
<set name="icon" val="icon.weapon_long_sword_i00" />
<set name="default_action" val="equip" />
<set name="weapon_type" val="sword" />
<set name="bodypart" val="rhand" />
<set name="random_damage" val="10" />
<set name="attack_range" val="40" />
<set name="damage_range" val="0;0;40;120" />
<set name="immediate_effect" val="1" />
<set name="material" val="fine_steel" />
<set name="weight" val="1560" />
<set name="price" val="1" />
<set name="soulshots" val="2" />
<set name="spiritshots" val="2" />
<for>
<set order="0x08" stat="pAtk" val="24" />
<set order="0x08" stat="mAtk" val="17" />
<set order="0x08" stat="rCrit" val="8" />
<set order="0x08" stat="pAtkSpd" val="379" />
</for>
</item>
</list>
foreach(glob("items/*.xml") as $file){
$xml = new DOMDocument();
$xml->load($file);
$count = 0;
foreach($xml->getElementsByTagName('item') as $item){
$id = $item->getAttribute('id');
$type = $item->getAttribute('type');
$name = $item->getAttribute('name');
if($type=='Weapon'){
echo "ID: ".$id." - TIPO: ".$type." - NOME: ".$name."<BR>\n";
}
if($count == 10){
exit;
}else{
$count++;
}
}
}
Posted by Fábio Web Arts on 08/10/2011, 14:38 in PHP
Posted by Fábio Web Arts on 08/10/2011, 16:44 in PHP
foreach($array1 as $key => $value){
foreach($array2 as $key2 => $value2){
if(array_key_exists($key, $key2){
echo $key."-".$value."-".$key2."-".$value2;
}
}
}
Posted by Fábio Web Arts on 10/10/2011, 16:09 in PHP
Posted by Fábio Web Arts on 10/10/2011, 17:02 in PHP
Community Forum Software by IP.Board
Licensed to: Webmasters Online