ICKelly
-
Posts
7 -
Joined
-
Last visited
Never
Posts posted by ICKelly
-
-
Warning: main(index_construct_navi.php) [function.main]: failed to open stream: No such file or directory in /site/main_sub1/sub1_ns/index_ns.php on line 11
Warning: main(index_construct_navi.php) [function.main]: failed to open stream: No such file or directory in /site/main_sub1/sub1_ns/index_ns.php.php on line 11
Warning: main() [function.include]: Failed opening 'index_construct_navi.php' for inclusion (include_path='./:/usr/local/lib/php') in /site/main_sub1/sub1_ns/index_ns.php on line 11
My problem is that I get this error.
My main directory index page is on the root 'www', and then I have sub folders to keep data seperate. I use the include function and it works well until I get out of the main directory.
I have been trying in vane to set the path for the page to look for the images and such for that page on the sub directory but get the above error.
Any pointers be appreciated,
Cheers
-
-
woot I knew this one... hehe
Corey at htmlcode always like to post this one
cgiscript link for popup window
-
Is the list of names stored in a table, and those list of names correspond to another table that has the content?
If thats the case then just do a simple sql query then check that the sql query returns the results if it did display then.
$name = isset($_GET['name']) ? mysql_real_escape_string($_GET['name']) : 'noName'; $sql = "SELECT * FROM `names.name` WHERE `content.name`= '$name'"; $result = mysql_query($sql); if(mysql_num_rows($result) == 1) { // match found! Display the content for the name } else { // No matches. Display an error here. }
OK let me go read back up on that. I understand what its doing but not sure if its for every line within each php file.
Currently using:
<?php include ("index_lista.php"); ?>
b, c, d etc....
then:
<html> <body> <p><a href="http://www.name.com/phpa/index_a.php"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">-A-</font></b></a><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000"><br> <a href="index_accountants.php" target="_blank">Accountants</a><br> <a href="http://www.name.com/index_aircraftservice.php" target="_blank">Aircraft Service</a><br> <a href="http://www.name.com/index_airport.php" target="_blank">Airport</a><br> <a href="http://www.name.com/index_ambserv.php" target="_blank">Ambulance Service</a><br> <a href="http://www.name.com/index_ah.php" target="_blank">Animal Hospitals</a><br> <a href="http://www.name.com/index_animal_groomers.php" target="_blank">Animal Groomers</a><br> <a href="http://www.name.com/index_appliance_service_repair.php" target="_blank">Appliance Service/Repair</a><br> <a href="http://www.name.com/index_auto_appraisers.php" target="_blank">Auto Appraisers</a><br> <a href="http://www.name.com/index_auto_body_collision.php" target="_blank">Auto Body Shops/Collision Centers</a><br> <a href="http://www.name.com/index_auto_parts.php" target="_blank">Auto Parts/Supplies</a><br> <a href="http://www.name.com/index_auto_sales.php" target="_blank">Auto Sales</a><br> <a href="http://www.name.com/index_auto_service_repair.php" target="_blank">Auto Repairs/Service</a><br> <a href="http://www.name.com/index_auto_salvage.php" target="_blank">Auto Recyclers/Salvage</a></font>
THe above opens onto a blank window. I just think it would look much better opening in the same style window as the home page.
So I can see what your saying just gotta figure how it fits into the sequence.
-
I have a list of names, on a index page. When you click on a name it takes you to that information. I want to create the same page, which I have done, and then place the data as per the click to open in that page at the same time? If() Then() Do I write arrays.
I have been trying to figure out what is the best method. Really new to php. Been reading for a couple weeks now. The tutorial is long I really like the inlude statement.
Thanks in advance for any pointers,
-
I know that you can edit via dreamweaver, and other programs, but I think for you to do as you are asking you need to install a web based server software on your PC and then install the PHP software then upload the site to a local pc address and then view (or something like that) the only way I can view php in my html is to upload it to the web server and then it displays fine. I can see all code half code half dreamweaver or all DW. If you don't want people to see it then place a .html in front of a temp index.html page and use the index.php one to review. Then when your ready remove the .html one or rename it and then the server should read the php one, if the html is removed.
(include_path='./:/usr/local/lib/php') Question??
in PHP Coding Help
Posted
Well I know I got part of what you guys said. I added the whole link as http:// to get the page to come in. I couldnt' get the ../../ working. I know I have to figure this out or I have to go back and add that into ever file