![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/.cursor-server/data/User/History/ab18552/ |
<?php
require_once 'config/database.php';
$pdo = getDBConnection();
echo "<h1>🔄 Transferring Track to Your Account</h1>";
// Transfer the andrew track from user_id 2 to user_id 4
$stmt = $pdo->prepare("
UPDATE music_tracks
SET user_id = 4
WHERE id = 3 AND title LIKE '%happy song about andrew%'
");
$stmt->execute();
$updated = $stmt->rowCount();
if ($updated > 0) {
echo "<p>✅ Successfully transferred 'Generated Track - a happy song about andrew' to your account!</p>";
// Verify the transfer
$stmt = $pdo->prepare("SELECT * FROM music_tracks WHERE id = 3");
$stmt->execute();
$track = $stmt->fetch();
echo "<p><strong>Track Details:</strong></p>";
echo "<ul>";
echo "<li>ID: {$track['id']}</li>";
echo "<li>Title: {$track['title']}</li>";
echo "<li>Status: {$track['status']}</li>";
echo "<li>User ID: {$track['user_id']}</li>";
echo "<li>Audio URL: " . ($track['audio_url'] ? 'Present' : 'Missing') . "</li>";
echo "</ul>";
echo "<p><a href='/library_new.php'>Check Your Library Now</a></p>";
} else {
echo "<p>❌ Track not found or already transferred</p>";
}
echo "<p><a href='/dashboard.php'>Back to Dashboard</a></p>";
?>