Jump to content

Undefined variables...I can't see it


Go to solution Solved by requinix,

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
https://forums.phpfreaks.com/topic/297462-undefined-variablesi-cant-see-it/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.