Back to the top

ppp

if(isset($_POST)) { $aVar = mysqli_connect('db451267862.db.1and1.com', 'dbo451267862', '6K&*M6sBOk7@KyB&79g5!txe' , 'db451267862'); // $_POST['youtubeLink'] = 'iiiiiiiiiiiiiiiooo'; echo $_POST['youtubeLink']; $paypalID = str_replace("/members/","","$_SERVER[REQUEST_URI]"); $ppID = chop(strtoupper($paypalID),"/"); if(! $aVar ) { die('Could not connect: ' . mysql_error()); } $active_link = $_POST['youtubeLink']; $sql = "UPDATE clients SET activeVideo = '" . $active_link . "', originalVideo = '" . $active_link . "' WHERE paypalid = '" . $ppID . "' AND active = 3"; $retval = mysqli_query( $aVar, $sql ); if(! $retval ) { die('Could not update link, please check the link in your browser and try again: ' . mysql_error()); } else { echo "Updated link successfully\n"; unset($_POST); } mysqli_close($aVar); }