Jump to content

[SOLVED] Is this a Global Variable?


Stryves

Recommended Posts

So let's say I run a query:

 

<?php
$query = "SELECT * FROM table"; 
$result = mysql_query($query) or die(mysql_error());
$array = mysql_fetch_array($result) or die(mysql_error());
?>

 

So now I would use $array['ID'] somewhere in my code... Isn't this a Global Variable considering it can be used almost anywhere?

 

Link to comment
https://forums.phpfreaks.com/topic/165078-solved-is-this-a-global-variable/
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.