Jump to content

apollo

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

apollo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have several websites on a remote virtual server. These websites use the same software. I am looking for a way to update all the common files at the same time, rather than uploading the same file via FTP to each domain. I can not INCLUDE() a file from a different domain. Is there a way to use a common source file stored on one domain, to be used on multiple domains? Thanks
  2. The results are set by a variable (i.e $type = “pvt” , “com”, or “org”). I am coding results from mysql to the LIST() function, I can not figure out how to construct a variable name within the list function. I was able to work it out in the mysql query… This works [code]$sql = "SELECT ".$type."_auto, name_auto,         ...         FROM ".$db_prefix."rates ... [/code] However, in the list function it does not work as, [code]list( '$'.$type.'_auto'., $name_auto     ... ) = mysql_fetch_array($rs); [/code] The variable name needs to be… $com_auto  in this case, but it could be $pvt_auto or $org_auto depending on the value of $type. I have been stuck for awhile on this, maybe it can not be done this way using LIST to set the results from the database to be available as variables in the standard manner? Thanks for any help here! Apollo
×
×
  • 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.