Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Power Lifting Lever Belt
SkullVamp
Updated:
Saturday at 10:32 PM
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Saturday at 3:55 PM
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Thursday at 2:23 PM
Ad icon
Wechat qr verification
Pawan2005
Updated:
Thursday at 1:28 AM
🚀 GOOGLE AI PRO 18 MONTHS ACTIVATION 🚀
sayuru bandara
Updated:
Wednesday at 5:34 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
php help 1k oneeeeeeeeeeeee
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="3.5G" data-source="post: 5529644" data-attributes="member: 158943"><p><strong>try and see</strong></p><p></p><p>[PHP]</p><p><?php</p><p> $db_handle = mysql_connect($server, $user_name, $password);</p><p> $db_found = mysql_select_db($database, $db_handle);</p><p> if ($db_found) </p><p> { </p><p> $video=$_GET[video];</p><p> $SQL = "SELECT `videosub`.* FROM videosub WHERE (`videosub`.`vid` ='$video'))";</p><p></p><p> $result = mysql_query($SQL);</p><p> if ($result)</p><p> {</p><p> $playfile=$result['file_url'];</p><p> }</p><p> mysql_close($db_handle);</p><p> }</p><p> else </p><p> {</p><p> print "Database NOT Found ";</p><p> mysql_close($db_handle);</p><p> }</p><p></p><p>?></p><p>[/PHP]</p><p></p><p>[CODE]</p><p><html></p><p></p><p><head></p><p></head></p><p></p><p><body></p><p> <OBJECT ID="MediaPlayer" WIDTH="400" HEIGHT="389" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"</p><p>STANDBY="Loading" TYPE="application/x-oleobject"></p><p> <PARAM NAME="FileName" VALUE="[B][COLOR="Red"]<?php print($playfile);?>[/COLOR][/B]"></p><p> <PARAM name="autostart" VALUE="false"></p><p> <PARAM name="ShowControls" VALUE="true"></p><p> <param name="ShowStatusBar" value="false"></p><p> <PARAM name="ShowDisplay" VALUE="false"></p><p> <EMBED TYPE="application/x-mplayer2" SRC="[B][COLOR="red"]<?php print($playfile);?>[/COLOR][/B]" NAME="MediaPlayer"</p><p>WIDTH="400" HEIGHT="389" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED></p><p> </OBJECT></p><p> <br></p><p></p><p>[U]<p><a href="video.php?video=1">Video 1</a></p></p><p><p><a href="video.php?video=2">Video 2 </a></p></p><p><p><a href="video.php?video=3">Video 3 </a></p>[/U]</p><p></body></p><p></html></p><p>[/CODE]</p><p></p><p></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px"></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px"><strong>CODE EXPLANATION </strong></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px"></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px">Using the links we pass the value </span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px"></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px"></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px">Then using above php code we retrieve the value which is passed using the url (ie $_GET[video]=2]</span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px"></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px">We use that value to extract a file url from the database </span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px"></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px">Once the file url is retrieved we assign that value to a variable then use that variable in the wmv playersfile url code to view the video </span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px"></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px">thats all !!!<img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /></span></span></p></blockquote><p></p>
[QUOTE="3.5G, post: 5529644, member: 158943"] [b]try and see[/b] [PHP] <?php $db_handle = mysql_connect($server, $user_name, $password); $db_found = mysql_select_db($database, $db_handle); if ($db_found) { $video=$_GET[video]; $SQL = "SELECT `videosub`.* FROM videosub WHERE (`videosub`.`vid` ='$video'))"; $result = mysql_query($SQL); if ($result) { $playfile=$result['file_url']; } mysql_close($db_handle); } else { print "Database NOT Found "; mysql_close($db_handle); } ?> [/PHP] [CODE] <html> <head> </head> <body> <OBJECT ID="MediaPlayer" WIDTH="400" HEIGHT="389" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading" TYPE="application/x-oleobject"> <PARAM NAME="FileName" VALUE="[B][COLOR="Red"]<?php print($playfile);?>[/COLOR][/B]"> <PARAM name="autostart" VALUE="false"> <PARAM name="ShowControls" VALUE="true"> <param name="ShowStatusBar" value="false"> <PARAM name="ShowDisplay" VALUE="false"> <EMBED TYPE="application/x-mplayer2" SRC="[B][COLOR="red"]<?php print($playfile);?>[/COLOR][/B]" NAME="MediaPlayer" WIDTH="400" HEIGHT="389" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED> </OBJECT> <br> [U]<p><a href="video.php?video=1">Video 1</a></p> <p><a href="video.php?video=2">Video 2 </a></p> <p><a href="video.php?video=3">Video 3 </a></p>[/U] </body> </html> [/CODE] [FONT="Trebuchet MS"][SIZE="4"] [B]CODE EXPLANATION [/B] Using the links we pass the value Then using above php code we retrieve the value which is passed using the url (ie $_GET[video]=2] We use that value to extract a file url from the database Once the file url is retrieved we assign that value to a variable then use that variable in the wmv playersfile url code to view the video thats all !!!:)[/SIZE][/FONT] [/QUOTE]
Insert quotes…
Verification
Dawasata paya keeyak thibeda?
Post reply
Top
Bottom