I am running a php file with Ajax after clicking on an image. The javascript is working , but I can’t figure out why my php won’t work and I know my db_connect.php file works. I am using in many other parts of my code.[php]
<?php include 'db_connect.php'; $sql="INSERT INTO saved_content (user_id, craft_id) VALUES ('1','1')"; echo "Upload successful"; ?>[/php]Never mind. I’m an idiot. I wasn’t connecting to my table correctly.