<?php
$ligacao = mysql_connect("localhost", "root", "senha");
$ok = mysql_select_db("bd", $ligacao);
$cria = "CREATE TABLE registro (code INT AUTO_INCREMENT PRIMARY KEY not null, nome VARCHAR(40) not null, sobrenome VARCHAR(40) not null, email VARCHAR(50) not null, senha varchar(16) not null)";
mysql_query($cria, $ligacao);
$Tnome = ($_POST['nome']);
$Tsobrenome = ($_POST['sobrenome']);
$Temail = ($_POST['email']);
$Tsenha = ($_POST['senha']);
$insert = "INSERT INTO resgitro (nome, sobrenome, email, senha) VALUES ('$Tnome','$Tsobrenome','$Temail','$Tsenha')";
mysql_query("$insert", "$insert");
?>
o erro é o seguinte: Warning: mysql_query() expects parameter 2 to be resource, string given in C:\wamp\www\pickpicture com sql\registro.php on line 13
[size=9]lembrando que sou iniciante[/size]
Obrigado.
