Jump to content


paulinho_ocz

Member Since 21/08/2003
Offline Last Active 02/07/2011, 09:05
-----

Topics I've Started

Problemas Ao Importar Bd

28/09/2006, 15:04

Boa tarde galera.

estou com um problema aqui na hora de importar meu BD, esta dando uma msg de erro, a msg é a seguinte,

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '

CREATE TABLE `agenda` (
`id` int(3) NOT NULL auto_increment,
`id_' at line 1


Problemas Para Exibir Dados.

12/08/2006, 19:27

Bom é o seguinte.

estou com um problema no meu sistema aqui.
eu cadastro um evento na agenda ai diz que foi cadastrado com sucesso, mas na hora de exibir ele da esse erroo.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/agitoz/public_html/estrutura/agenda/ultimos.php on line 4

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/agitoz/public_html/estrutura/agenda/ultimos.php on line 34


a linhda 4 é essa.

$total = mysql_num_rows($sql);


e a 34

<? while($dados=mysql_fetch_array($sql)){?>


alguem pode me ajudarr?

Obg.
Abraçoss.

Gravar Em Arquivo .txt

21/10/2005, 20:07

Olá galera...
estou com um probleminha aqui...
tenho este código...
<?php
     //Verifica se existe o arquivo contador.txt
     if(!file_exists("bd.txt"))
    {
     $cont=fopen("bd.txt","w");
     $adiciona = $_POST["nome"];$_POST["img"];
     fwrite($cont,$adiciona);
     fclose($cont);
    }
    
?>

eu não estou conseguindo gravar img dentro do arquivo, tem algo de errado ai neste código?
espero que alguém me ajude, vlws...

IPB Skin By Virteq