How It Works
Sign In
Sign Up
Loading
Home
›
Computer Science Help
› PHP with MySql Execute the attached SQL commands
Status:
Completed
View Work
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
Attached
Download File 1 (doc)
Tutor Uploads
Download File 1 (php)
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 $}
Message
More Computer Science assignments
Imagine you have been hired as a network technology consultant for a small business. The owner of...
Write a four to five (4-5) page paper in which you: 1. For each malicious attack and threat ident...
Create a function called that takes three parameters and returns their average. With this functio...
You are the Information Security Officer for a small pharmacy that has recently been opened in th...
Create a function called "greeting" that takes no parameters and prints either Good Morning, Good...
Browse Computer Science homework help