Reply to Re: Help with $PHP_SELF

Your name:

Reply:


Posted by Sean on 10/02/75 11:35

There is something wrong with this query.

$response = mysql_query("SELECT nombre
FROM `acciones`
WHERE oficial_id =$suc and accion=$campania", $dbase);

Change to this:

$response = mysql_query("SELECT nombre
FROM `acciones`
WHERE oficial_id =$suc and accion=$campania", $dbase);
if (!$response ) {
die('Invalid query: ' . mysql_error());
}

So you can see what the error is. If accion is a varchar or some sort
of string you might need to change it to:

$response = mysql_query("SELECT nombre
FROM `acciones`
WHERE oficial_id =$suc and accion='$campania'",
$dbase);

Buts that's a complete guess, I am not sure what is wrong with the
query.

[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

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