Total Leads
0
Colleges Covered
0
Sales Reps
0
Departments
0
| Salesman | College | Professor | Department | Contact Details | Status | Actions |
|---|
No Matching Records
Try clearing filters or adding a new college lead record.
// Function to load data directly from PHP/MySQL database async function fetchContactsFromDB() { try { const response = await fetch('db.php'); if (response.ok) { contacts = await response.json(); renderTable(); } else { console.error('Failed to load contacts from backend'); } } catch (error) { console.error('Network error loading data:', error); } } // Function to save a new record directly to MySQL database async function saveContactToDB(contactData) { try { const response = await fetch('db.php', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(contactData) }); const result = await response.json(); if (result.status === 'success') { await fetchContactsFromDB(); // Refresh table from live DB return true; } else { alert('Error saving record: ' + result.message); return false; } } catch (error) { alert('Server communication error. Check your connection.'); return false; } } // Call fetchContactsFromDB() when page initializes or logs in
Please log in to manage college outreach data
Generated on Date
Total Leads
Colleges Covered
Sales Reps
Departments
| Salesman | College | Professor | Department | Contact Details | Status | Actions |
|---|
Try clearing filters or adding a new college lead record.
Authorized Supervisor credentials required to download data