<?php require_once('Connections/lol.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ?
intval($theValue) : "NULL"; break;
case "double":
$theValue = ($theValue != "") ?
"'" . doubleval($theValue) . "'" : "NULL"; break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); }
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO tabela (Id, input1, input2, input3, `date`) VALUES (%s, %s, %s, %s, %s)", GetSQLValueString($_POST['Id'], "int"),
GetSQLValueString($_POST['input1'], "text"),
GetSQLValueString($_POST['input2'], "text"),
GetSQLValueString($_POST['input3'], "text"),
GetSQLValueString($_POST['date'], "text"));
$insertGoTo = "index.php";
if (isset($_SERVER['QUERY_STRING'])) { $insertGoTo .= (strpos($insertGoTo, '?')) ?
"&" : "?"; $insertGoTo .= $_SERVER['QUERY_STRING'];
}
}
$query_Recordset1 = "SELECT * FROM tabela ORDER BY Id DESC";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="770" border="0" cellpadding="0" cellspacing="0" class="unnamed1">
<!--DWLayoutTable-->
<tr>
<td height="205" colspan="3" valign="top">
<form method="post" name="form1" action="
<?php echo $editFormAction; ?>">
<table align="center">
<tr valign="baseline">
<td nowrap align="right">Input1:</td>
<td><input type="text" name="input1" value="" size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Input2:</td>
<td><input type="text" name="input2" value="" size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Input3:</td>
<td><input type="text" name="input3" value="" size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right"> </td>
<td><input type="submit" value="Insert record"></td>
</tr>
</table>
<input type="hidden" name="Id" value="">
<input type="hidden" name="date" value="">
<input type="hidden" name="MM_insert" value="form1">
</form>
<p>
<?php echo date ("l dS of F Y h:i:s A");?></p></td>
</tr>
<tr>
<td width="57" height="69"> </td>
<td width="647"> </td>
<td width="66"> </td>
</tr>
<tr>
<td height="64"> </td>
<td valign="top" nowrap class="unnamed1">
<table border="0" cellpadding="1" cellspacing="1" class="unnamed1">
<!--DWLayoutTable-->
<tr>
<td width="106" nowrap>Id</td>
<td width="130" nowrap>input1</td>
<td width="130" nowrap>input2</td>
<td width="130" nowrap class="unnamed1">input3</td>
<td width="119" align="center" nowrap class="unnamed1">date</td>
</tr>
<?php do { ?>
<tr>
<td width="20%">
<?php echo $row_Recordset1['Id']; ?></td>
<td width="20%">
<?php echo $row_Recordset1['input1']; ?></td>
<td width="20%">
<?php echo $row_Recordset1['input2']; ?></td>
<td width="20%">
<?php echo $row_Recordset1['input3']; ?></td>
<td width="20%">
<?php echo $row_Recordset1['date']; ?></td>
</tr>
</table></td>
<td> </td>
</tr>
<tr>
<td height="237"> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
<?php
?>
Taki jest kod i masz racje używam opery ale chciałbym żeby na wszystkich przeglądarkach działało dobrze. W sumie to macie racje z tym że to jest problem html mój błąd sorry że napisałem to w forum z php

.
P.S W IE dizała świetnie ale w operzerze rozwala na całą stronę

.