0
私のmysqliステートメントのヘルプが必要です。私はこのページにエラーはありませんが、私のif文は何も出力しません。Mysqliステートメント:空白結果
//$dbConnection works.
$extensionAdd_query_domain_extension = mysqli_query($dbConnection, "
SELECT *
FROM domain
WHERE extensions='$extensionAdd_extension'
LIMIT 1");
$extensionAdd_query_domain_row = mysqli_fetch_array($extensionAdd_query_domain_extension, MYSQLI_NUM);
$extensionAdd_query_domain_id = sanitizeInt($extensionAdd_query_domain_row[0],$dbConnection);
$extensionAdd_query_domain_votes = sanitizeInt($extensionAdd_query_domain_row[2],$dbConnection);
//If domain id found in Db update votes otherwise add to list
if($extensionAdd_query_domain_id!='' && $extensionAdd_query_domain_votes!='')
{
echo 'Found in DB. Update Votes.'.$extensionAdd_extension;
}
else
{
echo 'Not Found in DB. Enter in DB'.$extensionAdd_extension;
}
ページに何か出力されますか?ページが500を投げていますか? – chris85
エコーが実行されない場合、コード内のそのポイントに到達する前に何かがスクリプトを強制終了しています。どちらのコードパスでも何らかの出力が生成されるため、スクリプトが何も出力しない方法はありません。 –
[エラー報告が有効になっている](http://stackoverflow.com/questions/845021/how-to-get-useful-error-messages-in-php)を確認してください。 – Barmar