Jump to content
Fórum Script Brasil
  • 0

(Resolvido) Duvida com mysql/php


valterlorran

Question

Boa noite!!!

então tenho o banco de dados chamado cadastro e a tabela chamada produto com os seguintes campos:

id int(11) AUTO_INCREMENT

2 foto1 varchar(255)

3 foto2 varchar(255)

4 foto3 varchar(255)

5 foto4 varchar(255)

ai vem o problema

@$db = mysql_connect('localhost','root','123456');

if(!$db){

echo "Erro";

}

mysql_select_db('cadastro');

$query = "insert into produto values

('NULL','imagem1','imagem2','imagem3','imagem4','imagem5')";

$result = mysql_query($query);

if(!$result){

echo "erro";

}

ta dando erro no $result

ajuda ai pleaseee

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...