我尝试从列"valor_premio“中获取avg,但是我有这个错误:
Warning: mysql_query() expects parameter 1 to be string, resourcegiven in /home/u566181585/public_html/index.php on line 61 Warning: mysql_fetch_array() expects parameterresource, null given in /home/u566181585&
::mysql::NativeAPI::MySQL_NativeStatementWrapper::execute ( at /mysql/mysql-srcin sql::mysql::MySQL_Prepared_Statement::do_query (this=0x7fbd140233f0)
at /mysql/mysql-src/
空($result)和mysql_num_rows($result),但仍然得到了空结果。$result = mysql_query("SELECT * FROM workouts_wall WHERE workout_name = 'WO13' AND user ='tomer2'") or die (mysql_error());
// <em