laserlight, the problem is I have two files (a.php and c.php) trying to access b.php. file c.php is based on the user interaction, while file a.php is just suppose
to execute some code and pass the info along to file b.php. Since c.php variables are dynamic and are passed by a url such as
<a href="http://localhost/default/b.php?id=<?php echo $dname?>
&dv=<?php echo $tname?>&tv=<?php echo $meta->name?>
and by the way what's being passed is not a variable (id, dv, tv (i don't know what you call them)) and in a.php variable are static and are passed by a variable.
So now when both try to access the file there needs to be some control in b.php
to handle both files(a.php and c.php). Really there's no problem, I already stated a solution
above and I just wanted to know if theres a better solution, but it seems that everyone is point me to the same direction.
Leatherback, you are basically saying this:
a.php d.php<-- c.php
\ /
b.php
Now I don't see how this is a better solution, I think my solution is the best just have some control in the b.php, which handles both a.php and c.php.
Thanks to everyone for your help and insight.
The question was asked,
what is the purpose of these files?
a.php = showfield.php, which is a file that shows a database, a table, and field name, then the user have the option to choose to show the records for a
specific field or show the record of all fields by clicking on the appropriate hyperlink which leads to b.php.
b.php=showrecord.php, this file shows all info from a database, table, fields, and records.
c.php = createdatabase.php, this file creates a new database with a table and number of fields specify by the user and then after if creates all this, I put the include statement to file b.php, so that I can print what I just created.
I would post my code but I was trying to following the methodology of KISS (keep it simple, you know the rest).
Thanks to all for your help