Sana Sanat Guarantee DB — How to integrate

1) Import tables
   - Upload `create_tables.sql` to your server and run it in phpMyAdmin.

2) Place files
   - Copy all files into `/guaranti/` on your server.

3) Wire Form 1 (send.php)
   In your existing `send.php`, after you generate `$tracking` and validate fields,
   add:
   --------------------------------------------------
   require_once __DIR__.'/db_lib.php';
   sb_save_request([
     'tracking_code' => $tracking,
     'seller'        => $seller,
     'customer_name' => $customer_name,
     'province'      => $province,
     'address'       => $address,
     'mobile'        => $mobile,
     'phone'         => $phone,
     'model'         => $model,
     'warranty'      => $warranty,
     'purchase_date' => $purchase_jalali,
     'notes'         => $notes,
   ]);
   --------------------------------------------------

   Keep your Telegram send logic as-is.

4) Wire Form 2 (install_send.php)
   In your existing `install_send.php`, before/after Telegram send, add:
   --------------------------------------------------
   require_once __DIR__.'/db_lib.php';
   sb_save_install([
     'tracking_code'  => $code,
     'installer_name' => $installer,
     'install_date'   => $date,
     'serial_number'  => $serial,
     'notes'          => $notes,
   ]);
   --------------------------------------------------

5) Admin panel
   - Open `/guaranti/admin.php` in the browser.
   - Use the tabs to view requests or installs; search box filters results.

Notes
- This pack stores only text (no image uploads).
- Uses mysqli + prepared statements; utf8mb4 charset.
- No authentication on admin.php (you requested none). Protect via server rules if needed.
