Hi, I want to change a value in a php file which will come from DB. I have two files, fun.php and cons.php. In fun.php, i have a query from which i get $rows_col = $rw['rows']; //it shows 20. PHP: In the cons.php, i have a line (line#23, total lines - 39) define("NUM_ROWS", 5); PHP: My question is, how can i replace 5 with the value of $rows_col? Any good solution please? Thanks
cons.php: First line of cons: include("rute_to_your_file/fun.php"); define("NUM_ROWS", $rows_col); Code (markup):