Reply
How would i do this?
Old 09-26-2007, 03:37 PM How would i do this?
amw_drizz's Avatar
Ultra Talker

Posts: 301
Name: Jon
Location: New York
Okay how would i do this,

i want to do something like
PHP Code:
$url $var1 $var2 $var3 $var4 
since i am making a url and when i do that in the include() it fails and throws the error.

cause it is pulling data from 2 different arrays to make the url 1 array to define what folder the file(s) are in and the 2nd array to tell the file to use. but i really dont want 1 array as it would be quite long and tedious to debug. as the first array points out 8 different folders and the 2nd array contains 7 different commands for editing/viewing data.

so in short with only 1 array that would be 56 files linked to the everything in 1 dir.

and yes the file names are the same in every dir

so how would i write 1 var to use 4 different vars to make up the url address?
__________________
AMW_Drizz
Php 5.2 Mysql 4.1 IIS 6 Win2k3 Server && PHP 5.2 MySQL 4.1 Apache 2.2 (separate machine of course)
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
When You Register, These Ads Go Away!
     
Old 09-26-2007, 03:52 PM Re: How would i do this?
rogem002's Avatar
Webmaster Talker

Posts: 540
Name: Mike
Location: United Kingdom
PHP Code:
<?php
$url 
"$var1 $var2 $var3 $var4";

// Or
$url "{$var1} {$var2} {$var3} {$var4}";

// or
$url $var1.$var2.$var3.$var4;

// or
$url "{$var1}"."{$vars}"."{$var3}"."{$var4}";


?>
__________________
Website Services
PHP Code:
if(Added_Talkupation($post) == TRUE){iHug($you);} 

Last edited by rogem002 : 09-26-2007 at 03:54 PM.
rogem002 is online now
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 09-26-2007, 06:01 PM Re: How would i do this?
amw_drizz's Avatar
Ultra Talker

Posts: 301
Name: Jon
Location: New York
thanks so much the first $var1. etc worked
__________________
AMW_Drizz
Php 5.2 Mysql 4.1 IIS 6 Win2k3 Server && PHP 5.2 MySQL 4.1 Apache 2.2 (separate machine of course)
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Reply     « Reply to How would i do this?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12469 seconds with 13 queries