PHP - php tablas

 
Vista:

php tablas

Publicado por joaco (2 intervenciones) el 05/06/2015 05:49:01
Quisiera saber como cambiarle el color,el tamaño de la letras etc a la table que creo porfavor ayuda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<html>
<head>
	<title>Administrador</title>
	<link href="css/muestrapacientes.css" rel="stylesheet" type="text/css" />
	<style type="Text/css">
	</style>
</head>
<body>
	<header>
			<h1>Adminstracion SATO</h1>
			<div class="menu">
	 			<nav>
					<ul>
						<li> <a href="admin-index.php">Registrar Persona</a></li>
							<li> <a href="admin-registrar-medicos.php">Registrar Especialista</a>
								<ul>
									<li><a href="#">Mostrar  Especialistas</a></li>
								</ul>
							</li>
						<li> <a href="admin-index.php">Turnos Activos</a></li>
					</ul>
				</nav>
			</div>
	</header>
	<div id="contenedor">
		<div id="table";>
		<?php
		$server="localhost";
		$usuario="root";
		$clave="1234";
		$nombrebd="PedirTurnos";
 
		$conexion=mysqli_connect($server,$usuario,$clave,$nombrebd); #aca se conecta
 
		$sql = "SELECT * FROM pacientes ORDER BY pacientes.NombreApellido ASC";
		$result = mysqli_query($conexion,$sql);
		$fresult = array();
 
 
 
		$str = "<table border=1>";
 
			$str.= '<tr>';
			$str.= '<th>Nombre y Apellido</th>';
			$str.= '<th>Direccion</th>';
			$str.= '<th>Localidad</th>';
			$str.= '<th>Numero y Telefono</th>';
			$str.= '<th>Documento</th>';
			$str.= '<th>Fecha de Nacimiento</th>';
			$str.= '<th>Obra Social</th>';
 
 
		while($row = mysqli_fetch_array($result)){
 
			$str.= '<tr>';
			$str.= '<td>' . $row['NombreApellido'] . '</td>';
			$str.= '<td>' . $row['Direccion'] . '</td>';
			$str.= '<td>' . $row['Localidad'] . '</td>';
			$str.= '<td>' . $row['NumeroTelefono'] . '</td>';
			$str.= '<td>' . $row['documento'] .'</td>';
			$str.= '<td>' . $row['FechadeNacimiento'] . '</td>';
			$str.= '<td>' . $row['obrasocial'] . '</td>';
			$str.= '</tr>';
 
		}
			$str.= '</table>';
 
			echo $str;
 
?>
 
		<br>
 
	</div>
	</div>
 
</body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
-1
Responder