This is what I currently have, super basic. Still cant get it working :/
$connection = mysql_connect("localhost","root","")
or die ("Couldn't connect to server");
$db = mysql_select_db("streetRider",$connection)
or die ("Couldn't select database");
$result = mysql_query(sprintf("INSERT INTO video(id, parent_id, video, coverImage,
ts_created, is_void) VALUES('%s','%s','%s', '%s', '%s','%s')", $unique_id, $parent_id,$videoDirectory,$imageDirectory, $ts_created, $is_void));
What am i Missing???? :(
OK Guys so if one of my variables I'm storing is equal to this it works:
$videoDirectory = 'userVideos/'.$unique_id;
When my variable is equal to this, the insert FAILS: $videoDirectory = 'userVideos/'.$unique_id.'.mp4';
Its really puzzling and frustrating, but thats what I figured out.video is datatype varchar(50).