わかりました、これは非常に一般的なようですが、私が読んだことのどれも私を助けませんでした.私の変数が設定されていないように見える理由を知っている人はいます..
編集:申し訳ありませんが、エラーの場所を忘れてしまいました.169行目です.
if($world['$queryi'] != 0)
<?php
if(isset($_GET['upgrade']))
{
if($_GET['upgrade'] > 0 && $_GET['upgrade'] < 15){
$_GET['upgrade'];
$id = $_GET['upgrade'];
$queryi = "column_$id"; // This shows as undefined.
$querye = "column_name_$id"; // This shows as undefined
//When printing them out alone, they are defined, with the value i need them to be.
if($id>=1 && $id <=14)
{
//$world[] <- array from outside of the $_GET area (ive tried having it inside, same error)
if($world['$queryi'] != 0)
{
}
else
{
echo "query turned out zero";
}
}
else
{
echo "something went wrong.";
}
}
}
?>
//EDIT this is the arrayQUery which seems to be causing the problem..
$query = "SELECT * from this WHERE userid='".$user['id']."'";
$result = mysql_query($query);
$world=mysql_fetch_array($result);
誰にも手がかりがありますか、何が悪いのですか?