0

Suppose my php file is and it is hosted online how to get the value of stored in $mysql?

<?php
    $mysql= new mysqli("localhost","root","","hello",3306);

    if ($mysql->connect_error) {
        die("Connection failed: " . $mysql->connect_error);
    }
?>
Joe Mayo
  • 7,501
  • 7
  • 41
  • 60
itsrankit
  • 99
  • 1
  • 7
  • For what purpose do you need value of `$mysql`? – u_mulder Jan 04 '20 at 17:03
  • so that i can ensure no one can get value.. so can you say if that available... – itsrankit Jan 04 '20 at 17:05
  • 1
    Sorry, I don't understand. What is it - no one can get value? – u_mulder Jan 04 '20 at 17:07
  • Are you worried that someone can access that variable from the internet? – theduck Jan 04 '20 at 19:32
  • No one can get its value, and its value wouldn't be very useful to them in this case anyways. – ceejayoz Jan 05 '20 at 03:35
  • Just try to ask your question In a different way. Write it in your own language and have Google translate it for you. The code you are showing is not telling much. Ask exactly what you need done. Let's say someone browses to your website. What do you want him to see? Is he allowed to copy text from your site? – UnderDog Jan 05 '20 at 06:04
  • Does this answer your question? [What is the difference between client-side and server-side programming?](https://stackoverflow.com/questions/13840429/what-is-the-difference-between-client-side-and-server-side-programming) – Progman Jan 05 '20 at 08:51

0 Answers0