Jump to content

link filename get another file.


faces3
Go to solution Solved by computermax2328,

Recommended Posts

  • Solution

Well to start off, idk if you just forgot to paste them in but in file1.php home/1.php and home/2.php dont have semicolons at the end. It should be...

<?php 
$home['1']='home/1.php';
$home['2']='home/2.php';
?>

Second, not really sure why you have a / between "home" and 1. Just name the file home1.php. Also, just name your variables $home1 and $home2. Correct me someone if I am wrong, but I am pretty sure the 1 and 2 are only used after a variable to identify them in a common array.

 

Correction: multidimensional array, not common array

Edited by computermax2328
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.