1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
NeTakaya
2 years ago
10

HOW DO I CONNECT TO MY mysql server on my computer locally using php and also how to run it on the browser

Computers and Technology
1 answer:
zhuklara [117]2 years ago
7 0

Answer:

<?php

$mysqli = new mysqli("127.0.0.1:3307", "myUser", "myPass", "databasename");

$query = "SELECT * FROM users ORDER BY name";

if($result = $mysqli->query($query))

{

   echo '<ul>';

while ($obj = $result->fetch_object())

   {

       echo '<li>'.$obj->name.'</li>';

   }

   $result->free();

   echo '</ul>';

}

else

{

   die("nothing found");

}

$mysqli->Close();

?>

Explanation:

This should get you started.

You might be interested in
Reading log of any book with page numbers​
Ostrovityanka [42]

Answer:

index

Explanation:

its in the index?

6 0
3 years ago
The _______ valve protects the air pump from reverse-exhaust pressure.
alexandr402 [8]
D. The answer for this is the gulp
7 0
3 years ago
Select all ways that databases may help you manage and manipulate data and records.
MakcuM [25]
Query data
Arrange data in certain order
Update information in more than one place at the same time
Merge data into a word processing document

Calculate loan payment is something you could possibly make a database do, but more likely you would simply use a spreadsheet. Databases are mostly for for storing, retrieving, sorting and manipulating data.
8 0
3 years ago
Which of the following is NOT an advantage to using inheritance?
IrinaK [193]

Answer:

D)One big superclass can be used instead of many little classes.

Explanation:

Inheritance could be described as getting new class on another existing class with almost same execution,

inheritance allows codes to be re-used. It should be noted that inheritance bring about the code sharing among class.

The advantages of using inheritance includes but not limited to

✓ Code that is shared between classes needs to be written only once.

✓Similar classes can be made to behave consistently.

✓ Enhancements to a base class will automatically be applied to derived classes.

6 0
3 years ago
Green computing involves reducing electricity consumed and environmental waste generated when using a computer. which of the fol
sergeinik [125]
If you want to support green computing, the most basic thing you can do is reduce your brightness. More light equals more energy consumption. That's why there are websites that are made as exact copies of other websites except they're entirely black because the color black spends less energy. You can also try to fix your things when they get broken instead of throwing them away instantly and buying a new one.
8 0
3 years ago
Other questions:
  • Which of the following would be a tradeoff of a scientific advancement that enables us to catch fish from the ocean faster than
    5·1 answer
  • What is a 'balanced' dfd?
    5·1 answer
  • ​this is another name for the wireless configuration in which a central wireless device is used to serve all wireless clients.
    13·1 answer
  • Which type of CPU instruction performs arithmetic calculations and stores the results in memory?
    14·2 answers
  • Organizing speech ideas according to physical space, direction, or location calls for a _____ organizational pattern.
    11·1 answer
  • What is the purpose of application software
    12·1 answer
  • The average price of milk increased from $3.00 last year to $3.50 this year. This is most likely due to:
    14·1 answer
  • Question # 1
    12·2 answers
  • 9.19 LAB: Words in a range (lists) Write a program that first reads in the name of an input file, followed by two strings repres
    6·1 answer
  • Task 2
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!