Come no! Sempre fatto.
Codice PHP:$query =mysql_query("SELECT image_id, image_caption, image_username, image_date FROM images WHERE image_id = $_POST[\'id\'] ");
Come no! Sempre fatto.
Codice PHP:$query =mysql_query("SELECT image_id, image_caption, image_username, image_date FROM images WHERE image_id = $_POST[\'id\'] ");
Ce l'ho fatta! - ItalianPixel -
Altrimenti è perché hai staccato $_POST da ['id'].
Ce l'ho fatta! - ItalianPixel -
Ho provato in entrami i modi ma mi da sempre errore... ma come può essere???![]()
![]()
![]()
![]()
La queri che ha scritto portapipe è giusta solo togli gli apici singoli in $_POST['id']:
Codice PHP:
$query =mysql_query("SELECT image_id, image_caption, image_username, image_date FROM images WHERE image_id = $_POST[id] ");
Anche in quello che ti ho postato?
Che errore ti da?
Ce l'ho fatta! - ItalianPixel -
ops... me li sono dimenticati su![]()
Ce l'ho fatta! - ItalianPixel -
Facendo in quel modo mi dice:
[BQuery was empty[B/]
Codice PHP:$query = mysql_query("SELECT
image_id, image_caption, image_username, image_date
FROM
images
WHERE
image_id = $_POST[id]");
$result = mysql_query($query, $db) or die (mysql_error( $db));
extract (mysql_fetch_assoc ($result));
list ($width, $height, $type, $attr) = getimagesize ($dir . '/' . $image_id . '.jpeg');
casomai così:
Codice PHP:$result = mysql_query("SELECT
image_id, image_caption, image_username, image_date
FROM
images
WHERE
image_id = $_POST[id]") or die (mysql_error());
extract (mysql_fetch_assoc ($result));
list ($width, $height, $type, $attr) = getimagesize ($dir . '/' . $image_id . '.jpeg');
Non so proprio più che fare è sempre sbagliato, se ricontrollate tt il codice che vi ho postato e notate qualche altro errore, boh...![]()
![]()
![]()
Pensiamo ad altre problematiche:
Server up?
Prova a riavviarlo.
Prova con altri script.
Verifica script di connessione e relativi dati.
Sembrano cose stupide ma quando mi si impalla mysql me ne accorgo sempre 1 ora dopo!
Ce l'ho fatta! - ItalianPixel -