other Posted October 20, 2011 Report Share Posted October 20, 2011 Fala aí galeraqueria saber como eu faço para saber se eu conseguiu inserir alguma coisa no banco de dados se tem algum retorno a consulta mysql_query().vlw Quote Link to comment Share on other sites More sharing options...
0 ESerra Posted October 20, 2011 Report Share Posted October 20, 2011 $sql = mysql_query("INSERT INTO..."); if($sql){ echo 'ok'; }else{ echo 'erro'; } Quote Link to comment Share on other sites More sharing options...
0 diel Posted October 20, 2011 Report Share Posted October 20, 2011 Pode usar também o mysql_affected_rows... Quote Link to comment Share on other sites More sharing options...
Question
other
Fala aí galera
queria saber como eu faço para saber se eu conseguiu inserir alguma coisa no banco de dados
se tem algum retorno a consulta mysql_query().
vlw
Link to comment
Share on other sites
2 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.