Multiple includes losing variables


Posted on 16th Feb 2014 07:03 pm by admin

Hey all,

just starting out w php and ran into a problem pretty quickly. I'm
including several files into each page. The variables in the first include file are functional in the main page, but are undefined in subsequent include files.

I've tried using define() to make them global variables but still have had no luck.

Any help would be greatly appreciated!

196 Like 20 Dislike
Previous php-forum Next php-forum
Other php-forum

 formating when pulling data from a mysql database 
Ok so Im not to sure if this is the right thread to post in but here is my catch 22 issue.

I

Blank record injected into database
I always found several blank records inside my database, although $SESSION is required to insert the

frames get header location..
i have two frames, one top, one bottom. how do i do a form on the bottom frame that gives me the ur

Exporting new records
Trying to figure out the best way to set this up.

People register my site.

Their prof

Upload simple problem
Really confused!! I run once and it worked, but when i tried today...it didn't work

Which par

Form always sends to error page...
Hello,
Any help will be greatly appreciated. I am having trouble getting multiple fields to be re

CHMOD script
Hi,

I need a script to read all files in a folder and set to 777.

Can anyone help out

Code clarification
Hi

In the following code what could be the "search_print()" and where it could be

help understanding hidden input w/ php
hello i'm doing a tutorial where there are multiple forms for an edit page for a user to update thei

Renaming a file that a user uploads to site?
My site allows for registered users to upload images to the site under their own gallery. Currently

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash