php - IF statement causing 500 Internal Server Error -


IF स्टेटमेंट नीचे 500 त्रुटि का कारण बनता है

  $ oldtweets = mysql_query ("चुनें जमा, ट्वीट्स से ट्वीट्स जहां सबमिडीज़ = '$ सबमिड' और लॉगिन आईडी = '$ लॉगिन' "); अगर (mysql_num_rows ($ oldtweets) = 0) {mysql_query ("ट्वीट्स मूल्यों में शामिल करें (शून्य, '$ शहर', '$ जमा करें', '$ पूर्णुल', '$ uid', '$ username', NULL)") ; }    

सबसे पहले मैं यह देखूंगा -

  यदि (mysql_num_rows ($ oldtweets) = 0)   

यह होना चाहिए -

  यदि (mysql_num_rows ($ oldtweets) == 0) < / कोड>   

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -