PF2G 0 Junior Poster in Training


I'm using a javascript messagebox, but i'm having trouble with the delete:

            <script type="text/JavaScript">
                function confirmDelete()
                    var agree=confirm("Tem a certeza que quer remover?");

                    if (agree)
                         return true;
                            $del="DELETE FROM content_lang WHERE id_content = '".$row_lang['id_content']."'";
                            $q_del=mysql_query ($del, $connect);
                         return false;


        <td width="5%">
                        <a href="" onClick="confirmDelete();">Remover</a>

I feel stupid to not know where the error is :/

Can someone help me, please?

Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.