ugrás a tartalomhoz

Archívum - Ápr 22, 2012 - Fórum téma

2 php oldal egybe illesztése

szoles70 · 2012. Ápr. 22. (V), 18.22
Sziasztok!
Lenne 2 php oldalam amit egybe szeretnék illeszteni, hogy egy oldalként fusson:
Ez lenne az egyik és ebbe szeretném illeszteni az alábbi másik oldalt, hogy rendesen megjelenjen, de sehogy se jön össze:
[colorer=php]<?php
$honap = $kev.'-'.$khonap.'-';

require_once("require.php");

if ($_SERVER['REQUEST_METHOD']=="POST") {

if (!$_POST['cim_id']) $crash[] = "HIÁNYZIK a PARTNER!";

if (count($crash)==0) {


$comm = "SELECT * FROM jos_szobak ORDER BY emelet, megnev";
$result = mysql_query($comm) or mysql_crash($comm);
while ($row=mysql_fetch_array($result)) {
if (is_array(${'szobade'.$row[szoba_id]})) {
foreach( ${'szobade'.$row[szoba_id]} as $ertek ) {
$honap = $kev.'-'.$khonap.'-';
if ($ertek>31) {
$honap = getnextdatum($kev, $khonap);
$ertek = $ertek - 31;
}
$comm = "DELETE FROM jos_foglalas WHERE cim_id='".$_POST['cim_id']."' AND szoba_id='".$row[szoba_id]."' AND fdatum='".$honap.$ertek."' AND allapot=1";
$resultal = mysql_query($comm) or mysql_crash($comm);
$comm = "INSERT INTO jos_foglalas SET cim_id='".$_POST['cim_id']."', szoba_id='".$row[szoba_id]."', fdatum='".$honap.$ertek."', allapot=1";
$resultal = mysql_query($comm) or mysql_crash($comm);
}
}
if (is_array(${'szobadu'.$row[szoba_id]})) {
foreach( ${'szobadu'.$row[szoba_id]} as $ertek ) {
$honap = $kev.'-'.$khonap.'-';
if ($ertek>31) {
$honap = getnextdatum($kev, $khonap);
$ertek = $ertek - 31;
}
$comm = "DELETE FROM jos_foglalas WHERE cim_id='".$_POST['cim_id']."' AND szoba_id='".$row[szoba_id]."' AND fdatum='".$honap.$ertek."' AND allapot=2";
$resultal = mysql_query($comm) or mysql_crash($comm);
$comm = "INSERT INTO jos_foglalas SET cim_id='".$_POST['cim_id']."', szoba_id='".$row[szoba_id]."', fdatum='".$honap.$ertek."', allapot=2";