FOR ALL USING THE SCRIPT PLEASE READ BELOW:
An error has occured on sites that are using this saying the the connection failed etc... to fix this please do the following
In the file processyoutube.php find:
AND REPLACE WITH THIS:$test = youtube_t($_GET['youtube']);
$con = mysql_connect("$db_host","$db_name","$db_pass");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}mysql_select_db("$db_user", $con);$sql="INSERT INTO process_queue (user, title, description, keywords, channels, type, status, url, file, vid, user_ip)
VALUES
('$_GET[user]','$_GET[title]','$_GET[description]','$_GET[tag]','1','public','$_POST[status]','$test','$_POST[file]','$_POST[vid]','$_POST[user_ip]')";if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
mysql_close($con);
An in urlsuccess.php do the following:$test = youtube_t($_GET['youtube']);
$conn = mysql_connect($db_host, $db_user, $db_pass) or die('Error connecting to mysql');
mysql_select_db("$db_user", $con);$sql="INSERT INTO process_queue (user, title, description, keywords, channels, type, status, url, file, vid, user_ip)
VALUES
('$_GET[user]','$_GET[title]','$_GET[description]','$_GET[tag]','1','public','$_POST[status]','$test','$_POST[file]','$_POST[vid]','$_POST[user_ip]')";if (!mysql_query($sql,$conn))
mysql_close($conn);
Replace:
With the following:$con = mysql_connect("$db_host","$db_name","$db_pass");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}mysql_select_db("$db_user", $con);$sql="INSERT INTO process_queue (user, title, description, keywords, channels, type, status, url, file, vid, user_ip)
VALUES
('$_POST[user]','$_POST[field_myvideo_title2]','$_POST[field_myvideo_descr2]','$_POST[field_myvideo_keywords2]','$_POST[listch]','$_POST[field_privacy]','$_POST[status]','$_POST[url]','$_POST[file]','$_POST[vid]','$_POST[user_ip]')";if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
mysql_close($con)
This will sort any issues...$conn = mysql_connect($db_host, $db_user, $db_pass) or die('Error connecting to mysql');
mysql_select_db("$db_user", $con);$sql="INSERT INTO process_queue (user, title, description, keywords, channels, type, status, url, file, vid, user_ip)
VALUES
('$_POST[user]','$_POST[field_myvideo_title2]','$_POST[field_myvideo_descr2]','$_POST[field_myvideo_keywords2]','$_POST[listch]','$_POST[field_privacy]','$_POST[status]','$_POST[url]','$_POST[file]','$_POST[vid]','$_POST[user_ip]')";if (!mysql_query($sql,$con)) mysql_close($conn);
Regards,
Mat.
Bookmarks