Category Archives: PHP

Using a variable for your MySQL database

So, I’m working on a site making a bunch of changes.  I need to change the name of a database and well, to make a long story short, it’s called by name throughout all the files.  So I thought I’d do a quick post on how to use a variable name in place of the MySQL database name.  I had to figure it out myself, and had a hard time finding anywhere how to do it, although it’s not that difficult.

Also posted in MySQL, Techy | Tagged , , , , | 1 Comment