0
Good staff I’m wanting to better organize the images of the posts but for that I need to know what will be the next ID so I check the image first before entering the rest of the data.
if (is_uploaded_file($_FILES["foto"]["tmp_name"])) {
$imagem = time() . '_' . $_FILES["foto"]["name"];
$diretorio = 'fotos/ {{{AQUI VIRIA O NUMERO DO ID }}}' . $imagem;
if (!move_uploaded_file($_FILES["foto"]["tmp_name"], $diretorio)) {
$error = TRUE;
}
I’m using Pdo for connection
http://answall.com/q/45676/91
– rray
the one where I put the id after the Insert this my doubt in question is now another is to pick up before
– Arsom Nolasco