A
Anonymous
Guest
Hi folks,
Hopefully this should be quite straightforward.
I am using a php script to write some html form data to MySQL in the event that a submit button is pressed:
Initially I check the connection to MySQL and get an echo back to inform the user of any errors/success:
At the moment the feedback text just prints at the top of the html user interface (form), however, I would like to position it within a predefined area on the page if possible.
I tried linking a .css script file that I use as my html stylesheet using:
but this does not seem to work. I think I understand that php is not seen by the browser which would maybe be a reason this is not working.
Any advice would be appreciated
.
Hopefully this should be quite straightforward.
I am using a php script to write some html form data to MySQL in the event that a submit button is pressed:
Code:
if (isset($_POST['Submit']))
Code:
$con=mysqli_connect("localhost","u_name","password");
if(mysqli_connect_errno()){
echo "Failed to connect to MySQL: ".mysqli_connect_error();}
else{
echo "Connection to MySQL via 'instlab' established.";}
I tried linking a .css script file that I use as my html stylesheet using:
Code:
<link rel="stylesheet" href="Style.css">
Any advice would be appreciated
