Reply to MySQL empty row

Your name:

Reply:


Posted by Neo Theone on 04/04/05 17:57

Until some time I could make a new empty line in mysql with this query:
INSERT INTO `".$_SESSION['type']."`() VALUES ()
where $_SESSION['type'] was the table I wanted to use but now I get an
error and since I use DB I just get this error

INSERT INTO `authors`() VALUES ()
*Warning*: Cannot modify header information - headers already sent by
(output started at
/usr/local/ftp/faps/public_html/pubDB/edit/newline.php:9) in
*/usr/local/ftp/faps/public_html/pubDB/edit/newline.php* on line *19

*This is the file
<?php
include "./checkuser.php";

include "../modules/connect.php";

array_pop($_REQUEST);
$query = "INSERT INTO `".$_SESSION['type']."`() VALUES ()";

$res =& $db->query($query);
//Always check that result is not an error
if (DB::isError($res)) {
die($res->getMessage());
}

include "../modules/disconnect.php";

header ("Location: ./edit.php?".$_SESSION['stayurl']);

?>
Howcome does line nine: $res =& $db->query($query); write anything??

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация