zedan_80 wrote:
the problem is if i want to use the same data again i have to call the query again
How can i keep the data and use it many times without calling the query each time.
Use a Session to Manage and Store the value
$_SESSION['name'] = $res['name'];
Then on each page you want to use the value , put
session_start();
At the top of the page , then where you'd like the use the value , simply write
$_SESSION['name'];
And your data will be in that variable... in ANY page in your script , But only for as long as the session lasts.