PHP Tutorials: Selecting and Using Multiple MySQL Databases




Want more? Explore the library at https://www.codecourse.com/lessons Official site https://www.codecourse.com Twitter https://twitter.com/teamcodecourse.

source


33 responses to “PHP Tutorials: Selecting and Using Multiple MySQL Databases”

  1. great video can you do a tut for reading from 1 table and updating to another table based on session id when a friends button is pressed (its for a pets app, so you can buy pets ie other members)?

  2. Is is really necessary to create two different connection variables i.e. $cities_db and $names_db
    Can't we just create one connection variable (as both the connections are going to connect same host) and give it to both the mysql_select_db
    $con=mysql_connect('localhost', 'root', '') or die(mysql_error());
    mysql_select_db('names', $con) or die(mysql_error());
    //some procedure
    mysql_select_db('cities', $con) or die(mysql_error());
    //some procedure
    Why to create two different connection variables?

  3. is there a way to get text data by limit of 800 words..i have long articles and i would like to put pagination on it so when a user wants to read a data it just comes from mysql but only 800 words and it does not break words..

  4. What would be cool is a tutorial on making a mysql wrapper class so you can do sql statements using one line without having to make a while loop everytime. It would just do the while loop in the mysql wrapper class you would make.

Leave a Reply