Loading
Home › Computer Science Help › PHP with MySql Execute the attached SQL commands
Status: Completed

PHP with MySql Execute the attached SQL commands

Date Posted: 09/12/2012
Category: Computer Science
Due Date: 12/12/2012
Instruction
PHP with MySql Execute the attached SQL commands
Bidders
partha1022 13 years, 11 months ago
earned 825.00 around 16 assignments.
I can do it.
$40.00
  • when u need this ??
    User_2550 | Dec 12, 2012, 10:15 AM
  • Is Friday doable?
    User_2619 | Dec 12, 2012, 10:19 AM
  • yes :)
    User_2550 | Dec 12, 2012, 10:20 AM
  • Have you already started on this? If you havent id rather submit something else? If you have just keep going.
    User_2619 | Dec 13, 2012, 06:26 AM
  • i am almost done
    User_2550 | Dec 13, 2012, 06:32 AM
  • Ok. Keep going. Thanks
    User_2619 | Dec 13, 2012, 06:38 AM
  • here is your assignment. In line number 8,9,10 $hostname = `localhost`; // sql server host name $username = `scott`; //sql server username $password = `tiger`; //sql server password and in line number 18 $db_name=`test`; // Database name you have to give your hostname,username,password and database name
    User_2550 | Dec 13, 2012, 10:42 AM
  • I'm sorry. I can't get it to work. Here is what I put in. I renamed your file Assignment7Part1.php " <?php $hostname = `http://ats-cwebphpsql.jccc.edu/~irobins3/Assignment7Part1.php`; $username = `irobins3`; $password = `fall2012`; $con = mysql_connect($hostname, $username, $password); if (!$con) { die('Could not connect: ' . mysql_error()); } $db_name=`Assignment7Part1.php`; // Database name mysql_select_db(`$db_name`)or die(`cannot select DB`);
    User_2619 | Dec 13, 2012, 18:21 PM
  • hostname is the name of mysql host. The host name you have provided is incorrect.................................................................................and db_name is the name of the database you have manually created in mysql. Assignment7Part1.php is NOT the name of a database................................
    User_2550 | Dec 13, 2012, 21:00 PM
  • Ok. Thanks. I'm going to post some more work today or tomorrow. I'll let you know when I do.
    User_2619 | Dec 14, 2012, 05:47 AM
  • Did you create the database in MySql?
    User_2619 | Dec 14, 2012, 05:51 AM
  • yes, i created the database in mysql.
    User_2550 | Dec 14, 2012, 06:39 AM
  • I just posted a new assignment.
    User_2619 | Dec 15, 2012, 09:52 AM
  • will take a look
    User_2550 | Dec 15, 2012, 09:55 AM
  • I posted another so there is 2 out there now.
    User_2619 | Dec 15, 2012, 10:04 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}