Location: PHPKode > scripts > phpRetrieve > phpRetrieve/viewQuery.php
<?php

	
	Include('getMySQL.php');

?>

<div id="left" >
			
			<?php
				
				include('navigator.php');

			?>
			
</div>
	<div id="right" >
		<?php
		
			if($manualQuery == ""){
				echo "&nbsp;&nbsp;<a class=\"button\" href=\"javascript: window.location='index.php?view=Design'\"  title=\"Show Design\" ><span><b>Design</b></span></a>";
			}
		?>
		&nbsp;&nbsp;<a class="button" href="javascript: window.location='index.php?view=Run'"  title="Run Query" ><span><b>Run</b></span></a>
		&nbsp;&nbsp;<a class="button" href="javascript: window.location='index.php?view=Save'"  title="Save Query" ><span><b>Save</b></span></a>
		<div class="clear"></div>
		<br/>
		<div>
			<form id="myForm" method="post" action="saveMYSQL.php">
			<textarea rows="10" cols="80" name="query"><?php echo $myQuery; ?></textarea> 
			<div class="clear"></div>
			<br/>
			<div style="margin-left: 520px;">
				&nbsp;&nbsp;<a class="button" href="javascript: submitMyForm2();"  title="Save & Run Query" ><span><b>Save & Run</b></span></a>
			</div>
			</form>
			<div class="clear"></div>
			<br/>
			<div style="color: #999">			
				<i>The query can be edited directly from this view. After changing the query click 'Save & Run'. <br/>
				After editing in this view the query can no longer be edited in 'Design View'. </i>
			</div>
			
		</div>
		
	</div>
	
Return current item: phpRetrieve