Solved

Replace Help

Posted on 2011-03-09
2
276 Views
Last Modified: 2012-05-11
I'm trying to build a query for mysql that I can execute from phpmyadmin that will replace the following:

Video Description

to

[media]http:domain.com/video/video.flv[/media]

the length of the domain could change and the file format could change also, so I'm not sure how to do this.  Any suggestions?

The reason I'm doing this is I just recently moved to IPB and my old embed codes will not work on it.  I was using Avea Media on SMF forums to embed my links, but no mod for this on IPB just BBCodes.
0
Comment
Question by:N R
2 Comments
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 35092791
You can add the domain name in a variable like
$domname="http://www.domain.com/";
and when you fetch your record of meida file concatenate your domain and video location like:
$video=$row['medialocation'];
echo $domname.$video;//for video file full path
0
 
LVL 11

Author Comment

by:N R
ID: 35094522
I need to update the records within the post table within mysql.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Creating and Managing Databases with phpMyAdmin in cPanel.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now