Re: empty query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 26 January 2003 14:31, Addison Ellis wrote:
> hello,
> 	i have unsuccessfully tried for three days to write, re-write
> something that will insert data into my db and ashamedly have failed
> again. at one point i was able to echo values and see that they were
> in fact passing from my form. now i can't even get that. anyway, if
> you could take a look at this and tell me where i'm going wrong i
> will greatly appreciate it. thank you... addison
>
> <?
>    session_start();
>    if (@$auth != "yes")
>    include("config.php");
>
> function storeForm($formdata,$ads)

Are you saying that now $formdata is empty?? If it is, where are you getting 
$formdata from?

[snip]

>    $result = mysql_query($query)
>         or die ("Couldn't execute query.");

Don't use die(), use:

  $result = mysql_query($query)
    or echo "Couldn't execute query. " . mysql_error();


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *


/*
"Now here's something you're really going to like!"
-- Rocket J. Squirrel
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux