.


:




:

































 

 

 

 


phpMyAdmin.




, phpMyAdmin.

phpMyAdmin. http://localhost/Tools/phpMyAdmin/

, , Create:

 

 

29 phpMyAdmin

 

Databases , :

 

30

 

Create new table in database, Go.

MyTable, :

 

 

31

 

id Index PRIMARY KEY.

id ( ), AUTO_INCREMENT (A_I) .

: . , Save. Insert.

, Value.

 

32

 

G. , , , , , .

 

 

33

 

, -.

SQL : INSERT INTO (1, 2,...) VALUES (1, 2,...)

, , 12345 - 1964-04-20.

SQL :

$strSQL = "INSERT INTO MyTable(id,FirstName,LastName,Phone,BirthDate) VALUES(246,'','','12345 ','1964-04-20')";

.

 

 

34

 

, phpMyAdmin ( Browse), .

. while. , $ row TRUE. TRUE, . , .

 

35

 

html .

<html>

<head>

<title></title></head>

<body>

<h1>:</h1>

<form action="lab6.php" method="POST">

: <input type="text" name="id" /><br />

: <input type="text" name="Fname" /><br />

: <input type="text" name="Lname" /><br />

: <input type="text" name="Phone" /><br />

" - -: <input type="text" name="BDate" /><br />

<input type="submit" value="" />

</form>

</body></html>


:

<?php

mysql_connect("localhost", "root", "") or die(mysql_error());

mysql_select_db("MyDataBase") or die(mysql_error());

$strSQL = "INSERT INTO MyTable(id,FirstName,LastName,Phone,BirthDate)

VALUES('".$_POST["id"]."', '".$_POST["Fname"]."', '".$_POST["Lname"]."','".$_POST["Phone"]."','".

$_POST["BDate"]."')";

mysql_query($strSQL) or die(mysql_error());

$sqlAll = "select* from MyTable";

$resultsAll = mysql_query($sqlAll);

$row = mysql_fetch_array($resultsAll);

while ($row) {

echo $row["id"]." -- ".$row["FirstName"]." -- ".$row["LastName"]."<br />";

$row = mysql_fetch_array($resultsAll);

}

mysql_close ();

?>


 

,


 

1 Ethernet

 

Ethernet . ,
t0 tm t0 tm t0 tm t1
10BASE5   11,8 55,0 46,5 89,8 169,5 212,8 0,0866
10BASE2   11,8 30,8 46,5 65,5 169,5 188,5 0,1026
10BASE-T   15,3 26,6 42,0 53,3 165,0 176,3 0,1130
10BASE-FL   12,3 212,3 33,5 233,5 156,5 356,5 0,1000
FOIRL   7,8 107,8 29,0 129,0 152,0 252,0 0,1000
AUI (> 2 ) 2+48=50   5,1   5,1   5,1 0,1026

 

2 Ethernet

 

10BASE5    
10BASE2    
10BASE-T 10,5  
10BASE-FL 10,5  

 


3 FastEthernet

 

() T4 FX TX FX
( )     - -
I       260,8
II     - 308,8
II     - 216,2

 

 

4 FastEthernet

 

( ) ( )
TX/FX -  
T4 -  
T4 TX/FX -  
3 1,14 114 (100 )
4 1,14 114 (100 )
5 1,112 111,2 (100 )
1,112 111,2 (100 )
1,0 412 (412 )
() I -  
() II TX/FX -  
() II T4 -  

 

 





:


: 2017-03-11; !; : 736 |


:

:

,
==> ...

2002 - | 1840 -


© 2015-2024 lektsii.org - -

: 0.012 .