Why i can't tranfer data from one table to another with this code? I can't
pass "$reg" to $c and $t... : \
thanks

<?
 $ligacao=mysql_connect("localhost","","") or die (mysql_error());
 $real="INSERT INTO divx (titulo,cds) VALUES ('$t','$c')";
 $temp="SELECT * FROM divxtemp";
 //$num=mysql_affected_rows();
 $restemp=mysql_db_query("DB_nac31915",$temp) or die (mysql_error());
 if ($ligacao)
 {
  while($reg=mysql_fetch_array($restemp))
  {
   $t=$reg["titulo"];
   $c=$reg["cds"];
   mysql_db_query("DB_nac31915",$real) or die (mysql_error());
  }
 }
  mysql_close();
?>



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

Reply via email to