Yashar1989
پنج شنبه 31 مرداد 1392, 13:45 عصر
سلام
این کدهای منه:
<?php
$con = mysql_connect ( "localhost" , "root" , "" ) ;
if ( ! $con )
{
die( ' Could not connect : ' . mysql_error( ) ) ;
}
mysql_select_db ( "yashar", $con );
mysql_query($con,"INSERT INTO user (name, family, password)
VALUES ('yashar', 'amirabedin',123456)");
?>
موقع اجرا ارور زیر رو میده:
Warning: mysql_query() expects parameter 1 to be string, resource given in C:\wamp\www\php\index.php on line 12
اشکال کارم کجاست ؟
این کدهای منه:
<?php
$con = mysql_connect ( "localhost" , "root" , "" ) ;
if ( ! $con )
{
die( ' Could not connect : ' . mysql_error( ) ) ;
}
mysql_select_db ( "yashar", $con );
mysql_query($con,"INSERT INTO user (name, family, password)
VALUES ('yashar', 'amirabedin',123456)");
?>
موقع اجرا ارور زیر رو میده:
Warning: mysql_query() expects parameter 1 to be string, resource given in C:\wamp\www\php\index.php on line 12
اشکال کارم کجاست ؟