""Old Code Dude"" <rof-removethis-@stofanet.dk> wrote in message
news:42eff73d$0$7369$ba624c82@nntp02.dk.telia.net...
> Tak for den kode...Det ser ud til at PHP svare fint.
>
> --------------------------------
>
> PHP Version 5.0.4
>
> System Windows NT GHST 5.1 build 2600
> Build Date Mar 31 2005 02:44:34
> Configure Command cscript /nologo configure.js
> "--enable-snapshot-build" "--with-gd=shared"
> Server API CGI/FastCGI
> Virtual Directory Support enabled
> Configuration File (php.ini) Path C:\WINDOWS\php.ini
> PHP API 20031224
> PHP Extension 20041030
> Zend Extension 220040412
> Debug Build no
> Thread Safety enabled
> IPv6 Support enabled
> Registered PHP Streams php, file, http, ftp, compress.zlib
> Registered Stream Socket Transports tcp, udp
>
>
>
> ---------------------------------
>
> Så skal jeg nok lede i SQL.....ØV altså
)
>
> Men tak for hjælpen.
> /Rene
>
> "Supremacy2k" <Supremacy2k@gmail.com> skrev i en meddelelse
> news:42efedc4$0$18644$14726298@news.sunsite.dk...
>> ""Old Code Dude"" <rof-removethis-@stofanet.dk> wrote in message
>> news:42efece8$0$7378$ba624c82@nntp02.dk.telia.net...
>>> Ok...
>>> Jeg prøvede lige at loade en Shop...
>>> Fik svaret;
>>> Notice: Undefined variable: msg in
>>> c:\Inetpub\wwwroot\ashop\admin\index.php on line 9
>>>
>>> Notice: Undefined variable: msg in
>>> c:\Inetpub\wwwroot\ashop\admin\index.php on line 13
>>>
>>> Kikker vi så i den Index.php står der;
>>>
>>> ____________________________________
>>>
>>> <html>
>>> <head>
>>> <title><? echo $ashopname ?></title>
>>> </head>
>>> <body bgcolor="FFFFFF" text="#000000" link="#000000" alink="#000000"
>>> vlink="#000000">
>>> <center>
>>> <p><img src="../images/logo.gif"></p>
>>> <?
>>> if ($msg == "catadded") {
>>> echo "<p><font face=\"Arial, Helvetica, sans-serif\" size=\"3\">
>>> Complete! Category added!</font></p>";
>>> }
>>> if ($msg == "prodadded") {
>>> echo "<p><font face=\"Arial, Helvetica, sans-serif\" size=\"3\">
>>> Complete! Product added!</font></p>";
>>> }
>>> ?>
>>> <font face=\"Arial, Helvetica, sans-serif\" size=\"2\">
>>> <p><a href="addcategory.php">Add a new category of products</a></p>
>>> <p><a href="addproduct.php">Add a new product to your catalogue</a></p>
>>> </font>
>>> </center>
>>> </body></html>
>>> ________________________________________________________
>>>
>>> if ($msg == "catadded") {
>>> if ($msg == "prodadded") {
>>>
>>> Altså er det variablerne der ikke virker her...Men jeg er IKKE sikker på
>>> at det er min shop eller PHP eller SQL der faktisk melder fejl.
>>>
>>> /Rene
>>
>> prøv at tilføje:
>>
>> $msg == "prodadded";
>>
>> if toppen af dit php script, for php virker. ;)
>>
>> ellers prøv at lave et helt nyt script, og skriv dette.
>>
>> <?php
>>
>> phpinfo();
>>
>> ?>
>>
>> ;)
>>
>
>
bedste løsning er at kigge koden igennem efter de 2 variabler som laver rod.
og lige en anden ting... tvivler ret kraftigt på at det er din Error
Reporting. ;)