Jackal Posted July 18, 2007 Report Share Posted July 18, 2007 Tas errors parādās tāpēc, ka tu pirms session_start() jau kaut ko esi izvadijis. Link to comment Share on other sites More sharing options...
ravelis Posted July 18, 2007 Author Report Share Posted July 18, 2007 (edited) pirms session_start(); ir tikai <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Virsraksts</title> <meta http-equiv="Content-Language" content="lv" /> <meta http-equiv="Content-Type" content="text/html; charset=Windows-1257" /> <meta name="author" content="Marcis Kalnins, marcis@itmedia.lv, http://none.sytes.net" /> <style type="text/css"> p { font-family: Arial; font-size: 11px; color: #808080; } input { font-family: Arial; font-size: 10px; color: #808080; border: #808080 1px solid; width: 200px; height: 18px; background-color: #FFF; } input.login { width: 120px; } input.button { width: 80px; cursor: pointer; } input.logout { width: 120px; background-color: #E0E0E0; cursor: pointer; } </style> </head> <body> <div align="left" style="margin-top:160px;margin-left:200px;"> <?php // Konfigurācija $DBHOST = "*****"; // Datubāzes serveris $DBUSER = "******"; // Datubāzes lietotājvārds $DBPASS = "****"; // Datubāzes parole $DBNAME = "*****"; // Datubāzes nosaukums $DBTABL = "*****"; // Datubāzes tabula, kurā glabājas dati $ADMINNAME = "admin"; // Administratora lietotājvārds $ADMINPASS = "admin"; // Administratora parole // Autorizēties kā administrators var URL joslā aiz linka ierakstot ?admin Edited July 18, 2007 by ravelis Link to comment Share on other sites More sharing options...
Jackal Posted July 18, 2007 Report Share Posted July 18, 2007 Tur jau arī ir tā problēma Pašā faila augšā ieliec: <?php session_start(); ?> Link to comment Share on other sites More sharing options...
ravelis Posted July 18, 2007 Author Report Share Posted July 18, 2007 tik un ta tas pats errors staav kaa staaveejis! Link to comment Share on other sites More sharing options...
bubu Posted July 18, 2007 Report Share Posted July 18, 2007 Varbūt der apskatīties pinned topiku sarakstu: http://php.lv/f/index.php?showtopic=7294 Link to comment Share on other sites More sharing options...
bubu Posted July 18, 2007 Report Share Posted July 18, 2007 Tas ir tieši tas pats, ko es iedevu ;) Link to comment Share on other sites More sharing options...
marcis Posted July 19, 2007 Report Share Posted July 19, 2007 jā, uzliec <? session_start(); ?> pašā augšā un kur ir administrācijas login forma ieliec action="?admin" nevis action="$_SERVER['PHP_SELF']" Link to comment Share on other sites More sharing options...
ravelis Posted July 19, 2007 Author Report Share Posted July 19, 2007 tagad ir par 1 erroru mazaak..... un tagad var piesleegties admina panelim! :) buus jaaizskata kaartiigi bubu ieteikums par tiem headeriem! http://4who.noz.lv/test/test.php marcis ...vai ir iespeejams veel visam klaat piemest -> Dzeest no tabulas ierkastu? (prosta ka var piespiest admins dzeest pietekumu ) Link to comment Share on other sites More sharing options...
marcis Posted July 20, 2007 Report Share Posted July 20, 2007 http://paste.php.lv/5805 Link to comment Share on other sites More sharing options...
ravelis Posted July 20, 2007 Author Report Share Posted July 20, 2007 http://paste.php.lv/5805 marcis tu esi kaa dieva daavaana! Ja es zinaatu kur tu dziivo tad es tev nosuutiitu saldeejumu! :) Link to comment Share on other sites More sharing options...
marcis Posted July 20, 2007 Report Share Posted July 20, 2007 vai ne? Link to comment Share on other sites More sharing options...
ravelis Posted July 20, 2007 Author Report Share Posted July 20, 2007 aha! :) Link to comment Share on other sites More sharing options...
Recommended Posts