Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help with Video Scripts

Featured Replies

Hi there could someone please aid me in correcting this video uploading script so as to upload either on the server in its own file or in the database.

 

 

<?php

 

 

 

else if ($_GET['f'] == 'vid')

{

$dbData = @mysql_query("SELECT * FROM `".$MYSQL_DB_NAME_CORE."`.`users` vc_c_u WHERE vc_c_u.`U_ID` = '".GetUId()."'", $MYSQL_DB_LINK) or die(mysql_error);

$dbData = @mysql_fetch_assoc($dbData);

if ($_FILES['video_input']['error'] < 1

&& $_FILES['video_input']['size'] > 0

&& $_FILES['video_input']['size'] < 27097152 //27Mb limit

&& ($_FILES['video_input']['type'] == 'video/avi'

|| $_FILES['video_input']['type'] == 'video/mov'))

 

{

$newpdf = $dbData['UniqueDirectory']."vid".($_FILES['video_input']['type'] == 'video/avi' ? "avi" : "mov");

$result = move_uploaded_file($_FILES['video_input']['tmp_name'], $newpdf);

}

 

 

 

 

 

 

<div class="accordion-toggle" style="clear:both;">

Change Profile Video

</div>

<div class="accordion-content">

<form method="post" action="editaccount.php?attempt=1&f=vid">

<div class="EntryElement" style="padding-top:32px;">

<label style="float:left;padding-top:2px;"><strong>Current Profile Video</strong>:</label>

<label style="float:right;"><?php echo $dbUserData['Video']; ?></label>

</div>

<div class="EntryElement" style="padding-top:32px;">

<label style="float:left;padding-top:2px;" for="vid_input"><strong>New Profile Video</strong>:</label>

<input style="float:right;" size="20" type="file" name="vid_input" value="" />

</div>

<div class="EntryElement">

<input style="float:right;" type="submit" value="Save Change"/>

</div>

 

please help

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.