Fowarded message.
--
Richard Heyes
--- Begin Message ---
now it says this? Parse error: syntax error, unexpected '=', expecting ',' or ';' in C:\wamp\www\achillesweb2\functions.php on line 14
?.?
On Thu, Jun 19, 2008 at 10:45 PM, Byron <
klingemeister@xxxxxxxxx> wrote:
okay, so i got static and global mixed up? Thanks.
On Thu, Jun 19, 2008 at 10:44 PM, Richard Heyes <
richardh@xxxxxxxxxxx> wrote:
Byron wrote:
right.
Now I'm getting the following errors after doing a semi-colon triple check.
*Warning*: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in *C:\wamp\www\achillesweb2\functions.php* on line *48*
$con Is not accessible (because you're in a function when you create it). ie. When you create it (ie when you connect to MySQL) you could stick it in the global scope. ie In your connection function, make this the first statement:
global $con;
Then you can do the same in other functions, or alternatively you can access it like so:
$GLOBALS['con']
--
I'm going out to find myself, if you see me here, keep me here untill I can catch up
If I haven't said so already,
Thanks
Byron
--
I'm going out to find myself, if you see me here, keep me here untill I can catch up
If I haven't said so already,
Thanks
Byron
--- End Message ---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php