यह संभव दो mysqli_queries इतना ?:दो mysqli प्रश्नों
mysqli_query($dblink, "INSERT INTO images (project_id, user_id, image_name, date_created, link_to_file, link_to_thumbnail, given_name) VALUES ('$project_id', '$user_id', '$image_name', '$date_created', '$link_to_file', '$thumbnail', '$ImageName')") or die(mysql_error());
mysqli_query($dblink, "INSERT INTO images_history (project_id, user_id, image_name, date_created, link_to_file, link_to_thumbnail, given_name, day, month, year) VALUES ('$project_id', '$user_id', '$image_name', '$date_created', '$link_to_file', '$thumbnail', '$ImageName', '$day', '$month', '$year')") or die(mysql_error());
की तरह है करने के लिए मूल रूप से मैं अपने DB में दो तालिकाओं को अपडेट करना चाहते है। क्या ऐसा करने के लिए इससे अच्छा तरीका है?
संभव 2 प्रश्नों को चलाने के लिए, अच्छी तरह से निश्चित रूप से यह है। –
आप कहते हैं कि यह संभव है लेकिन उपर्युक्त काम नहीं कर रहा है। यह केवल छवियों में डालने वाला है लेकिन images_history में नहीं। – PartisanEntity
अच्छी तरह से आपको मुद्दों के लिए विशेष क्वेरी की जांच करनी चाहिए, इसका कोई अन्य प्रश्न नहीं है। –