.


:




:

































 

 

 

 





PHP Adobe dreamweaver CC.

main.html.

<HTML>

<HEAD>

<meta charset="utf-8">

<TITLE>

</TITLE>

<linkrel="stylesheet" href="main.css">

</HEAD>

<BODY>

<H1><em> </em></H1>

<H2><em> </em></H2>

<Title>, utf8. CSS (main.css).

 

.

<body>

<TABLE border=0>

<TR>

<TD><button><a href="http://localhost/salon/Clients_table.php"> </a></button></TD>

<TD><button>

<a href="http://localhost/salon/Clients_ADD.html"> </a></button></TD>

</TR>

<TR>

<TD><button><a href="http://localhost/salon/uslugi_table.php"></a></button></TD>

<TD><button>

<ahref="http://localhost/salon/Uslugi_ADD.html"></a></button></TD>

</TR>

<TR>

<TD><button><a href="http://localhost/salon/Postavchik.php"> </a></button></TD>

<TD><button><a href="http://localhost/salon/Postavchik.html"> </a></button></TD>

</TR>

<TR>

<TD><button><a href="http://localhost/salon/Material.php"> </a></button></TD>

<TD><button><a href="http://localhost/salon/Material.html"> </a></button></TD>

</TR>

<TR>

<TD><button><ahref="http://localhost/salon/master.php"> </a></button></TD>

</TR>

</body>

</html>

Localhost/Salon/main.html

8. .

PHP, :

<html>

<head>

<meta charset="utf8">

<title>

</title>

<link rel="stylesheet" href="http://localhost/salon/main.css">

<style type="text/css">

table {

font-size: 14px;

border: 3px solid #000000;

cellspacing: 1;}

tr, td{

font-size: 14px;

border: 1px solid #000000;

cellspacing: 1;}

</style>

</head>

<style> main.css. , :

<body>

<H1><em></em>.</H1>

<H2><em> </em></H2>

<?php

mysql_connect("localhost","root","");

mysql_select_db("Salon3");

$res = mysql_query("SELECT * FROM `Client`") or die(mysql_error());

echo '<table border="1">';

while($row = mysql_fetch_assoc($res))

{

echo '<tr><td>'.$row['FIO_CL'].'</td><td>'.$row['Adress'].'</td><td>'.$row['Telephone'].'</tr>';

}

echo '</table>';

?>

<p>

<form action="http://localhost/salon/main.html">

<button type="submit"></button>

</form>

</p>

</body>

</html>

9. .

. :

<HTML>

<HEAD>

<metacharset="utf8">

<TITLE> -

</TITLE>

</HEAD>

<BODY>

<H1>.</H1>

<H2> .</H2>

<FORM method="POST" action="example_CL.php">

<INPUT type="hidden" name="posted" value="true">

<TABLE border=0><TR><TD>:</TD>

<TD><INPUT name="FIO_CL" type="text"></TD>

</TR><TR><TD>:</td>

<TD><INPUT name="Adress" type="text"></TD>

</TR><TR><TD> </td>

<TD><INPUT name="Telephone" type="text"></TD>

<TR>

<TD colspan=2><INPUT type="submit" class="Cssbuton" value=""></TD></TR>

</TABLE>

</form>

<p>

<form action="http://localhost/salon/main.html">

<button type="submit"></button>

</form>

</p>

</BODY>

</HTML>

:

 

10. .

:

<HTML>

<HEAD>

<TITLE> -

<meta charset="utf8">

</TITLE>

</HEAD>

<BODY>

<H1> , .</H1>

<H2>.</H2>

<?php

if (isset($_POST['posted']))

{ $FIO_CL = $_POST['FIO_CL'];

$Adress = $_POST['Adress'];

$Telephone = $_POST['Telephone'];

//

if ($FIO_CL == "" or $Adress == "" or $Telephone == "")

{ echo " - "; exit; }

$FIO_CL = addslashes($FIO_CL);

$Adress = addslashes($Adress);

$Telephone = addslashes($Telephone);

$db = @mysql_pconnect("localhost", "root");

if (!$db)

{ echo " : Dont connect."; exit; }

mysql_SELECT_db("Salon3");

$query = "INSERT INTO Client (FIO_CL, Adress, Telephone) VALUES ('".$FIO_CL."','".$Adress."','".$Telephone."')";

$result = mysql_query($query);

if($result)

echo "<H3> .</H3>";

}

?>

</BODY>

</HTML>

 

:

11.

, .

 

.

, .





:


: 2016-11-18; !; : 490 |


:

:

! . .
==> ...

1522 - | 1315 -


© 2015-2024 lektsii.org - -

: 0.014 .