Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by BlueSkyIS

  1. reallynotfakenews.com

  2. Thanks for that info. I left out an important part of my question: While each of the websites uses the same geographic data (zip codes, city/state geocodes, etc.) each website has it's own version of data specific to that website. For instance, one site maintains a list of grow stores and has a table 'locations' that contains all of those locations. Another site maintains a list of motorsports shops with it's own, structurally different version of the table 'locations'. If each site has it's own db and also pulls from a shared db, two MySQL db connections would often be required instead of one. Is the processing cost of 2 PDO/MySQL connections substantial enough to warrant keeping multiple copies of the same data in multiple databases? Or is the cost of 2 db connections so insignificant that it makes sense for 4 or 5 sites to use a shared database AND have their own unique database? My concerns are 1. Additional processing required to use 2 database connections per site and 2. Possible delays due to multiple sites sharing the same database tables vs. each site using it's own copy. Thanks for your input!
  3. Hello! I have five websites on a single server, and each website uses the same geographic data, for instance US zip codes and city/state latitudes and longitudes. Each website uses it's own copy of these "large" tables. I would like to avoid having to maintain the same data in 5 databases, but I am more concerned with database performance, e.g., the speed at which the data is retrieved for each website. Question: Should I set up a new separate database that contains the shared tables for all websites and allow each website to connect to this new database for shared data? Or is it better for each website have it's own copy of the duplicate tables? Thanks for any info! Cheers
  4. the way i find php.ini is to run phpinfo() on the command line: php -r 'phpinfo();' or if you're running a php page: <?php phpinfo(); ?> One of the pieces of information listed is the location of php.ini
  5. what do you mean by "not working?" what is happening or isn't happening. and show more than one line of code, if possible.
  6. what happens when you run it? does it do what you expect, or not?
  7. i think your script is a script that can count the number of queries executed. start a counter at 0 and add 1 each time a query is executed. at the end, output counter.
  8. the error tells you: the username or password is not valid for connecting to that database. Access denied for user 'esolarch_ms'@'localhost' (using password: YES)
  9. what if you have multiple duplicate keys? this is one reason I check for duplicate key instead of throwing data at the table with a 'on duplicate key' to catch my mistakes. my 2 cents.
  10. HTML: <code> <input type="text" name="Participant_P[]"> <input type="text" name="Participant_P[]"> <input type="text" name="Participant_P[]"> </code> PHP: <code> $P0 = $_POST['Participant_P'][0]; $P1 = $_POST['Participant_P'][1]; $P2 = $_POST['Participant_P'][2]; </code>
  11. you'll have the best luck sending emails out using a domain that actually resolves to the server sending the email. You will not be able to sit a google.com domain on your server, so you'll have to use a non-google.com sending email address.
  12. i think you want preg_replace. http://php.net/manual/en/function.preg-replace.php or if you mean you want $title[1] to be part of the pattern, you're doing it correctly.
  13. I use tiny mce for wysiwyg text editing. then just enter the text field into the database the usual way.
  14. you're doing it the right way, using onchange. do you get any javascript errors? instead of posting the pre-compiled code, you might want to post the HTML output so we can see if there is a problem.
  15. when posting an error, it is best to include the entire error, especially the line number. but taking a look at the code, this should be: echo '<param name="flashvars" value="mp3='.$file.'" />'; or the way I prefer to do it, using single quotes within tags: echo "<param name='flashvars' value='mp3=$file' />";
  16. What other ways are there for performing a radius search?
  17. No, not using just PHP or any server-side language. You might have javascript send the value to PHP, though.
  18. As a LAMP Developer, I don't care about other databases except in cases where I need to (permanently) convert from something else to MySQL. So I only use MySQL functions. my 2 pennies.
  19. you declare the function, but you never call it. http://www.tizag.com/phpT/phpfunctions.php
  20. what happened when you implemented your logic?
  21. If there is an error for a specific field, echo an error statement to the right of it.
  22. $page is not defined. it is not set. the code references $page, but $page is not defined. hence the error.
  23. you can't put <?php tags within a string like you've got it for $main_nav = ' you'll need to perform the class/no class logic differently.
  • 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.