Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Using a variable outside of the while loop (scope)

#How to use a variable outside of the while loop (scope)

#You could try to define the variable before the loop, e.g.

$report = "";
while ($row = mysql_fetch_array($result)) {
    $report .= $row["prevDOCid"];
}
echo $report;
Comment

PREVIOUS NEXT
Code Example
Php :: SymfonyStyle 
Php :: php artisan tinker get records 
Php :: count vs sizeof php 
Php :: Laravel storage goes to 404 page. (Symlink not working) 
Php :: cpt change link 
Php :: How to send JSON format data in postman to django models that have a foreign key to another model 
Php :: how to include page specific css in xphp smart header 
Php :: how to import Yomo in larave; 
Php :: php json decode from url image 
Php :: how to put cloth on 3d model using javascript and php 
Php :: laravel create event listener 
Php :: text short in laravel 
Php :: test not found page symfiny in dev 
Php :: adding array not updating php 
Php :: When you click on the search button, it is moved to the page laravel 
Php :: file handling x+ in php example 
Php :: lastPage does not exist. 
Php :: how to lookup value object php 
Php :: Search Multiple columns using one input 
Php :: LongestWord 
Php :: how to cooncet dabase eith laraavel 
Php :: php session set error 
Php :: php if class exists 
Php :: how to remove warning in php 
Php :: concat ternary operator 
Php :: php 8.0 linux 
Php :: convert php to curl 
Php :: cors laravel 
Php :: chunk in laravel 
Php :: lervel php 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =