Advanced Search

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: How to code in XML files Using PHP

  1. #11
    Join Date
    Feb 2012
    Posts
    9
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Thanks John For the Great Help

    Thank You So Much John I m so Happy that i learned so much for you. Your are Genius my friend. Pls Keep on Helping Like This.Thank you for the proper guidance you hv give. Now can u pls let me bit more abt PHP. Is it possible to create video from images and audio ? If yes then How ? I m Looking for this concept. Thanks in advance.
    Last edited by archanarj9; 02-20-2012 at 05:29 AM. Reason: Messed up

  2. #12
    Join Date
    Feb 2012
    Posts
    9
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default how to Fetch Dynamic images using PHP in xml

    This is the code in PHP which is working fine.
    mysql_connect("localhost","root","");
    mysql_select_db("vidiful");
    $result=mysql_query("select * from create_video where id=9");
    if($result)
    {
    $row=mysql_fetch_array($result);
    echo $row['musics'];
    echo $row['images'];
    echo $row['img2'];
    echo $row['img3'];
    echo $row['img4'];
    }
    But when i am Pasting the same code in XML is showing me Error Bdw. I m Proceeding with John First option with .htaccess file. Pls suggest me.

  3. #13
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,701
    Thanks
    43
    Thanked 3,133 Times in 3,097 Posts
    Blog Entries
    12

    Default

    As I said, I don't do database code. But, since you say you're using the .htaccess method, I'm assuming you tested it first with the slideshow.xml like so:

    Code:
    <?php  
    header ("content-type: application/xml"); 
    echo '<?xml version="1.0" encoding="iso-8859-1"?>
    	<slideshow  displayTime="5" 
    				transitionSpeed=".7"
    				transitionType="Fade"
    				motionType="None"
    				motionEasing="easeInOut"
    				randomize="false"
    				slideshowWidth="400"
    				slideshowHeight="220"
    				slideshowX="center"
    				slideshowY="0"
    				bgColor="FFFFFF"
    				bgOpacity="100"
    				useHtml="true"
    				showHideCaption="false"
    				captionBg="000000"
    				captionBgOpacity="0"
    				captionTextSize="11"
    				captionTextColor="FFFFFF"
    				captionBold="false"
    				captionPadding="7"
    				showNav="false"
    				autoHideNav="false"
    				navHiddenOpacity="40"
    				navX="335"
    				navY="193"
    				btnColor="FFFFFF"
    				btnHoverColor="FFCC00"
    				btnShadowOpacity="85"
    				btnGradientOpacity="20"
    				btnScale="120"
    				btnSpace="7"
    				navBgColor="333333"
    				navBgAlpha="0"
    				navCornerRadius="0"
    				navBorderWidth="1"
    				navBorderColor="FFFFFF"
    				navBorderAlpha="0"
    				navPadding="8"
    				tooltipSize="8"
    				tooltipColor="000000"
    				tooltipBold="true"
    				tooltipFill="FFFFFF"
    				tooltipStrokeColor="000000"
    				tooltipFillAlpha="80"
    				tooltipStroke="0"
    				tooltipStrokeAlpha="0"
    				tooltipCornerRadius="8"
    				loaderWidth="200"
    				loaderHeight="1"
    				loaderColor="FF0000"
    				loaderOpacity="100" 
    				
    				attachCaptionToImage="true"
    				cropImages="false"
    				slideshowMargin="0"
    				showMusicButton="false"
    				music="images/music.mp3"
    				musicVolume="50"
    				musicMuted="false"
    				musicLoop="true"
    				watermark=""
    				watermarkX="625"
    				watermarkY="30"
    				watermarkOpacity="100"
    				watermarkLink=""
    				watermarkLinkTarget="_blank"
    				captionsY="bottom"
    				>
    		<image img="images/image1.jpg" customtitle="Camomile" />
    		<image img="images/image2.jpg" customtitle="Bells" />
    		<image img="images/image3.jpg" customtitle="Market" />
    	</slideshow>';
    ?>
    If that worked, then once you modify it with your database code, you can view it in the browser directly for errors.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. The Following User Says Thank You to jscheuer1 For This Useful Post:

    archanarj9 (02-21-2012)

  5. #14
    Join Date
    Feb 2012
    Posts
    9
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Hey John Thanks once again For ur Reply but this time i didnot get u. Can u pls explain in details and i m not using .htaccess method. i m using the one u said to change into PHP. Thanks Once again. Pls Reply soon

  6. #15
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,701
    Thanks
    43
    Thanked 3,133 Times in 3,097 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by archanarj9 View Post
    I m Proceeding with John First option with .htaccess file. Pls suggest me.
    Quote Originally Posted by archanarj9 View Post
    i m not using .htaccess method. i m using the one u said to change into PHP. Thanks Once again. Pls Reply soon
    I have no idea what you're doing.
    Last edited by jscheuer1; 02-21-2012 at 09:14 AM. Reason: brevity
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •