Reply to Re: Problem with mysql_query

Your name:

Reply:


Posted by zek2005 on 03/03/07 03:29

On 3 mar, 03:54, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> zek2005 wrote:
> > Hi!
>
> > I´m trying to execute a query, but I receive an error ("error in
> > executing"). The strange thing is that the $link sentence has no
> > errors, so the connection is fine.
>
> > $server="localhost";
> > $database="mydatabase";
> > $dbpass="mypass";
> > $dbuser="myuser";
>
> > $link=mysql_connect($server,$dbuser,$dbpass)
> > or die ("couldn´t connect");
>
> > mysql_query('update articulos set rank=rank + 1 where id=$id', $link)
> > or die ("error in executing");
>
> > Any suggestion?
>
> > Thanks!
>
> > Ezequiel
>
> Yea, figure out what MySQL doesn't like about it. Check out mysql_error().
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

I receive the following error:

"No database selected"

but shouldn't I receive that error before when I do the connection in
$link ???

Thanks!

[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

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