Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [videojs_hls url='http://mn-i.mncdn.com/foxtv_mobile/smil:foxtv.smil/playlist.m3u8?token=c31bfe38167986e4922c0394488c4bf69639aeaf47863c7b' autoplay='true']Error updating record: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'http://mn-i.mncdn.com/foxtv_mobile/smil:foxtv.smil/playlist.m3u8?token=c31bfe381' at line 1
- $site_url = "http://site.com.tr/live";
- $site = file_get_contents( $site_url );
- preg_match('@src : '(.*?)',@si',$site,$token);
- $newcontent = "[videojs_hls url='$token[1]' autoplay='true']";
- echo $newcontent;
- $servername = "localhost";
- $username = "xxx";
- $password = "xxx";
- $dbname = "xxx";
- // Create connection
- $conn = new mysqli($servername, $username, $password, $dbname);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- $sql = "UPDATE wp_posts SET post_content='$newcontent' WHERE ID=33";
- if ($conn->query($sql) === TRUE) {
- echo "Record updated successfully";
- } else {
- echo "Error updating record: " . $conn->error;
- }
- $conn->close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement