Solved

Replace Help

Posted on 2011-03-09
2
285 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

Webinar: Security & Encryption in the MySQL world

Join Percona’s Solutions Engineer, Dimitri Vanoverbeke as he presents “Security and Encryption in the MySQL world” on Thursday, July 6, 2017 at 7:00 am PDT / 10:00 am EDT (UTC-7).

Question has a verified solution.

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

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

691 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