Jump to content

Help with script


veronika

Recommended Posts

Okay...as I posted last week I'm new with the whole PHP thing. I need help wuth the following, any help is greatly appreciated.  I will be loading what I script  for review  here:

 

• Use the command-line interface to create a new user named "script" for your database. Grant that user all permissions on everything controlled by the DBMS.

• Create a database named "homebudget".

• Within that database, create two tables:

o The first table should be named "estimates". Give it three fields:

 VARCHAR of length 10 named "category"

 VARCHAR of length 30 named "description"

 INT named "budget"

o The second table should be named "expenses". Give it three fields:

 VARCHAR of length 10 named "category"

 DATE named "expenseDate"

 INT named "expenditure"

• Create a script file named solution07.php. Within that script, connect to your DBMS using the "script" identity. Select the "homebudget" database, then obtain a listing of the tables.

• Use the file-creation techniques we learned in previous classes to save the results of your queries into a file named solutionA.txt.

• Submit both solutionA.php and solutionA.txt.

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.