我该如何解决这个错误? [英] How do I resolve this error?

查看:78
本文介绍了我该如何解决这个错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

收到错误消息

注意:未定义索引:text1 



< div class = formRow> 
< div class =grid2>< label><?php echo $ lang ['Timezone']; ?>:其中/标签>< / DIV>
< div class =grid10>
<?php
$ query_timezone1 = mysql_query(SELECT * FROM tbl_timezone WHERE id!='$ db_timezone_id'ORDER BY timezone ASC);
$ option_timezone1 =;
while($ row = mysql_fetch_array($ query_timezone1)){
$ option_timezone1。=< option value ='$ row [id]';
$ option_timezone1。=>。 $ row ['text1']。。 $ row ['timezone']。< / option>; }
?>
< select name =timezoneid =timezonedata-placeholder =Chooseclass =selecttabindex =2style =width:100%;>
<?php if($ db_timezone_id!= 0){echo< option value ='$ db_timezone_id'> $ db_timezone_code1 $ db_timezone_timezone< / option>; } else {echo< option value =''>< / option>;}?>
<?php echo $ option_timezone1; ?>
< / select>
< / div>
< / div>





我尝试过:



i试图找出错误的来源,但都是徒劳的

解决方案

lang ['Timezone']; ?>:其中/标签>< / DIV>
< div class =grid10>
<?php


query_timezone1 = mysql_query(SELECT * FROM tbl_timezone WHERE id!='


db_timezone_id'ORDER BY timezone ASC );

Am getting the error that says "

Notice: Undefined index: text1 

"

<div class="formRow">
                            <div class="grid2"><label><?php echo $lang['Timezone']; ?>:</label></div>
                            <div class="grid10">
                               <?php
				$query_timezone1=mysql_query("SELECT * FROM tbl_timezone WHERE id!='$db_timezone_id' ORDER BY timezone ASC");
				$option_timezone1="";
				while($row=mysql_fetch_array($query_timezone1)) {
				$option_timezone1 .= "<option value='$row[id]'";
				$option_timezone1 .= ">". $row['text1'] ." ". $row['timezone'] ."</option>";  }
				?>    
				<select name="timezone" id="timezone"  data-placeholder="Choose" class="select" tabindex="2" style="width:100%;">
                                <?php if($db_timezone_id!=0){echo "<option value='$db_timezone_id'>$db_timezone_code1 $db_timezone_timezone</option>"; }else{echo"<option value=''></option> ";}?>
				<?php echo $option_timezone1; ?>
				</select>
                            </div>             
                    </div>



What I have tried:

i have tried to identify the source of the error but all in vain

解决方案

lang['Timezone']; ?>:</label></div> <div class="grid10"> <?php


query_timezone1=mysql_query("SELECT * FROM tbl_timezone WHERE id!='


db_timezone_id' ORDER BY timezone ASC");


这篇关于我该如何解决这个错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆