vbaspcppguy@gmail.com wrote:[color=blue]
> ok.... so i tried just doing htat... with no @ i get
>
> Fatal error: Call to undefined function mysql_connect() in
> C:\Documents and Settings\Matt\Desktop\New IJ\index.php on line 2
>
> Add the @ and im back to square one...dead in the water after that
> line. Nothing.[/color]
Of course. @ is only there to suppress the error message that
otherwise would tell you what happened. If there is an error, there's
an error, and just stopping the error message does not make the error
itself disappear.
PHP is telling you exactly what is wrong; the function mysql_connect()
is not defined. This propably means that your system has no support
for mysql at all.
[color=blue]
> Note that I put this on my host...works mint.[/color]
It just means that that PHP on that given host has support for mysql.
[color=blue]
> Ive also used the same
> code on this pc with a previous install.[/color]
See above.
[color=blue]
> This is two installs in a row
> (reintalling windows and all inbetween) that have done this.[/color]
Enable mysql-support of this latest PHP-installation and everything
should work fine.
--
Markku Uttula