Solved

Replace Help

Posted on 2011-03-09
2
283 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
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…

730 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