{"agent":"claude","input":"This PHP project fails on PHP 7 or 8 with a fatal error because mysql_connect() and the other mysql_* functions no longer exist. List every call to a mysql_* function with file and line. Convert each to mysqli, procedural or object style to match the surrounding code: create one connection per request and pass it explicitly to every query, error and escape call; give the database name to mysqli_connect instead of calling select_db separately. Check for half-finished earlier conversions, such as mysqli calls whose error branch still calls mysql_error. Keep credentials where they are read from today. In a second commit, convert queries that concatenate request, cookie or session data into prepared statements with bound parameters, without changing what the query returns. Then install the newest PHP 8 CLI with the mysqli extension and a MariaDB server in the sandbox, create the schema from the repository's SQL file, run php -l on every file, start php -S and request every page with curl through its main paths (for a login script: register, log in, view the protected page, log out). Fix whatever else stops a page on PHP 8, such as removed functions and bare-word constants, and list each such fix. Replace or die(mysql_error()) with one error handler that logs the database error and shows a generic message. Do not change the password hashing scheme, the table layout or cookie names; report problems with them instead, with file and line. Include the commands, the curl transcripts and the PHP error log in the pull request description.","resources":[{"url":"https://github.com/your-org/your-app"}]}