Jump to content

Undefined variables...I can't see it


CloudBreaker

Recommended Posts

Maybe it's  just late, but I can't see the undefined variables.  I'm trying to list the files that have just been uploaded.

	<?php

			//if(isset($_row['upload_file'])){
				
			$s = "SELECT rfi_files.id,rfi_files.rfi_id,rfi_files.rfi_fileName\n"
			. "FROM rfi_files\n"
			. "where rfi_files.rfi_id='$project_id'"
			. "AND rfi_files.rfi_fileName='$rfiFilename'"
			. "\n"
			. "";
			
			$result=mysqli_query($conn,$s);
			$row=mysqli_fetch_assoc($result);
			
			$i=0;
			
			
			$run = mysqli_query($conn, $s);
			
			while($row=mysqli_fetch_array($run)){
				
				$rfiFileid		=$row["rfi_id"];
				$rfiFilename	=$row["rfi_fileName"];
				$i++;
			}
		?>
			
			<div><strong><u>Uploaded Files:<u></strong></div><br>
						
			<div id="files"><a href="rfi_files/<?php echo $rfiFilename;?>"><?php echo $rfiFilename;?></a></div>	
			
		<?php } ?>
		
		<div><!--end of container-->
		
		</body>

  

( ! ) Notice: Undefined variable: rfiFilename in B:\Programs\wamp\www\hsa\new_rfi.php on line 246
Call Stack
#	Time	Memory	Function	Location
1	0.0018	278168	{main}( )	..\new_rfi.php:0
Uploaded Files:

( ! ) Notice: Undefined variable: rfiFilename in B:\Programs\wamp\www\hsa\new_rfi.php on line 268 Call Stack #TimeMemoryFunctionLocation 10.0018278168{main}( )..\new_rfi.php:0 ">
( ! ) Notice: Undefined variable: rfiFilename in B:\Programs\wamp\www\hsa\new_rfi.php on line 268
Call Stack
#	Time	Memory	Function	Location
1	0.0018	278168	{main}( )	..\new_rfi.php:0

Link to comment
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.