Page 367 - CITS - CSA - TP (Volume 1) - Hindi
P. 367
कंप्यूटर सॉफ्टवेयर एप्लीकेशन- CITS
टा 5: PHP से MySQL डेटाबेस से कने कर और डेटा िडलीट कर
i यूजर से डेटा कले करने के िलए वेबपेज (index.html) म एक HTML फ़ॉम बनाएँ (Create an HTML form in the webpage
(index.html) to collect the data from the user)
1 टे एिडटर ओपन करे
2 िन िल खत कोड िलख
<html >
<head> HTML form </title>
</head>
<body>
<h2>Delete Data from MySQL Database</h2>
<form method=”post” action=”delete.php”>
<label for=”username”>Username of Record to Delete:</label><br>
<input type=”text” id=”username” name=”username” required><br><br>
<input type=”submit” value=”Delete”>
</form>
</body>
</html>
3 C:\Apache24\htdocs म ो ाम को index.html के प म फ़ो र म सेव कर
ii डेटाबेस से कने करने और यूजर इनपुट के आधार पर अपडेट ि या को ह डल करने के िलए एक PHP (delete.php) बनाएँ ।
(Create a PHP script (delete.php) to connect to the database and handle the update process based on user input.)
1 टे एिडटर ओपन करे
2 िन िल खत कोड िलख
351
CITS : IT & ITES - कं ूटर सॉ वेयर ए ीके शन - अ ास 61

