Witam, zaciołem się w jednym miejscu a mianowicie nie wiem jak przekazać ostatni wprowadzony rekord auto_increment (do dalszej pracy)
Mam co takiego:
[php:1:51f1867f40]<?php
$nextid = $dbconn->GenId($pntable['subpages']);
$sql = "INSERT INTO $pntable[subpages] ($column[pageid], $column[parentpageid],
$column[subid], $column[pagetitle],
$column[pageauthor], $column[pageauthoremail], $column[pageauthorurl],
$column[pagetext], $column[pagecontent],
$column[pagefile], $column[pageimage], $column[pageactive],
$column[reviewactive], $column[pageorder],
$column[pagedatetime], $column[pagecounter],
$column[username], pieto_zalacznik)
VALUES ('$nextid', '0', '$subid','$pagetitle', '$pageauthor', '$pageauthoremail', '$pageauthorurl',
'$pagetext', '$pagecontent','$pagefile','$pageimage','$pageactive', '$reviewactive',
'$pageorder', '$pagedatetime', '0', '$username','$plik')";
$dbconn->Execute($sql);
if(!empty($_POST['active_files']))
{
require("../profil/dodaj_prace_files.php");
}
if(!empty($_POST['active_links'])){
require("../profil/dodaj_prace_links.php");
}
?>[/php:1:51f1867f40]
Gdy biorę $nextid - to bierze wartość 0.
A nie zabardzą chciałbym wstawiać nowe zapytanie typu LIKE
acha. Ten kod to poczęści engine nuka.