Category : localhost

I want to put ErrorMessageBox on this block of code. Like it shows that "The data has already existed". Here is the block of code that saves to the database: if (t1.get()=="" or t2.get()=="" or t3.get()=="" or t4.get()==""): messagebox.showinfo("Result","Please Complete the Provided Details!") Here Connection to Database And Insertion else: databases = mysql.connector.connect( host ="localhost", ..

Read more

I have a JavaScript frontend that ask for a plain text to my PHP backend. It almost works excepts because I have a CORS problem. How can allow CORS in my PHP code? My frontend (JavaScript and jQuery): $.ajax({ type: ‘GET’, url: ‘http://localhost:8080/’, }) .done(function(data) { console.log(data); }) .fail(function() { alert("Oh, no. CORS error again."); ..

Read more

Warning: Undefined variable $name in D:xampphtdocsRegistrationLoginAccount.php on line 20 Warning: Undefined variable $lname in D:xampphtdocsRegistrationLoginAccount.php on line 20 <div class="card-info"> <span class="card-title"><?php echo $fname." ".$lname; ?></span> </div> Warning: Undefined variable $fname in D:xampphtdocsRegistrationLoginAccount.php on line 39 <tr> <td>First Name</td> <td><?php echo $fname; ?></td> </tr> Warning: Undefined variable $lname in D:xampphtdocsRegistrationLoginAccount.php on line 43 <tr> <td>Last ..

Read more