im not to sure why im getting a Warning: m开发者_运维知识库ysql_fetch_array(): when running this query
$query="SHOW SLAVE STATUS;";
$result = mysql_db_query("aid", $query, $con);
well i use my_db_query because im new to php and thats all i really know well here is the full error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/admin/domains/ismfast.com/public_html/V3/internal/karl_tools/slave_email.php on line 23
$query="SHOW SLAVE STATUS;";
$result = mysql_db_query("aid", $query, $con); echo $result;
$r = mysql_fetch_array($result);
if($r['Slave_SQL_Running']=="Yes"){echo $r['Exec_Master_Log_Pos']}
精彩评论