Jump to content

[SOLVED] MySQL isset


maxudaskin

Recommended Posts

Is there a way to use isset on a MySQL LONGTEXT data?

 

<?php
		  $book_data_sql = mysql_query("select * from flights WHERE flight_num = '{$fltnum}'");
						while($book_data = mysql_fetch_array($book_data_sql)){
		  if(!isset($book_data['route'])){
                echo '<textarea name="route" rows="5" id="route" style="width:100%"></textarea>';
			}else{
			echo '<textarea disabled name="route_disabled" rows="5" id="route" style="background:url(../images/route_bkg.jpg) no-repeat; width:100%">'.$route.'</textarea>';
			echo '<input name="route" type="hidden" value="$route" />';
			}}
		  ?>

 

 

Even if there is no data in the table, it still shows the disabled text area.

Link to comment
https://forums.phpfreaks.com/topic/84787-solved-mysql-isset/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.