Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML CSS

My PHP needs some style !!

Questions and tutorials related to Cascading Style Sheets *all versions*

Moderators: macek, egami, gesf

My PHP needs some style !!

Postby AimSkyward » Sat Aug 03, 2013 4:37 am

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:
Code: Select all
if (isset($_POST['Submit']))

Initially I check the connection to MySQL and get an echo back to inform the user of any errors/success:
Code: Select all
echo "Failed to connect to MySQL: ".mysqli_connect_error();}
echo "Connection to MySQL via 'instlab' established.";}

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:
Code: Select all
<link rel="stylesheet" href="Style.css">
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 :) .
New php-forum User
New php-forum User
Posts: 6
Joined: Mon Jul 22, 2013 10:42 am

Return to CSS

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.