Jump to content

mediaguy2004

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mediaguy2004's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello I have a question, I have been trying to make a database that you can add mpeg files to. I have tried several ways but I have not had any luck. Does any one have any suggestions. How I can go about making one. I was told that best way of doing it is to link the files to a database but, I am not sure how that is done. Does any one have some suggentions on how to go about it and maybe a tutorial that I can look at that I mabe able to get some Ideas Thanks..
  2. OK I tried it, It will give me the page with out the xml page jus a plain html page with the error. Plus I tried a couple of things. when I leave it alone I can see all the info from the headlines table  and not author table when I make this change - I removed the header Info form the config file. That gaves me the xml page Then I get this error The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error Then this error too Only one top level element is allowed in an XML document. Error processing resource 'http://localhost/test_rss/rss.php'. Line 8, Position 2 <b>Warning</b>:  Cannot add header information - headers already sent by (output started at /www/test_rss/rss.php:5) in <b>www/test_rss/rss.php</b> on line <b>53</b><br /> anyone has any ideas Thanks
  3. OK How do you do that  Iam stiil a newbie on php..
  4. Thanks Guys My seaches where turnig up everything on errors.
  5. Do you have a link to it I will try to seach for it..
  6. Hello guys I am working on the rss tutorial. I did get it to work but I am having a problem. I am getting this error Warning: Cannot add header information - headers already sent by (output started at /var/www/html/news_rss/Test2.php:8) in /www/news_rss/Test2.php on line 56.   Can any one tell me what this means. Below is the code Thanks for your help.. <?php include "config.php"; $link = mysql_connect($config['db_host'],$config['db_user'],$config['db_pass']) or die(); mysql_select_db($config['db_name']) or die(); $news_headlines    = mysql_query("SELECT n.*,a.* FROM news AS n LEFT JOIN authors AS a ON a.aid=n.n_author_id ORDER BY n.n_time DESC".(is_numeric($config['headlines']) && $config['headlines']>0 ? " LIMIT {$config['headlines']}" : null)); $items_output    = null; if(mysql_num_rows($news_headlines)) {     while($headline = mysql_fetch_assoc($news_headlines))     {         $link            = htmlentities("http://example.com/index.php?act=news&id={$headline['nid']}");         $pubdate        = gmdate('r',$headline['n_time']);         $author            = $config['show_author_info'] ? "nttt<author>{$headline['a_email']} ({$headline['a_name']})</author>" : null;         $description    = nl2br($headline['n_body']);                 $items_output .= <<<EOF         <item>             <title>{$headline['n_title']}</title>             <description>                 {$description}             </description>             <link>{$link}</link>             <pubDate>{$pubdate}</pubDate>{$author}         </item> EOF;     } } $config['encoding']    = empty($config['encoding']) ? 'ISO-8859-1' : $config['encoding']; $copyright            = empty($config['copyright']) ? null : "ntt<copyright>".str_replace('{year}',date('Y'),$config['copyright'])."</copyright>"; $pubdate            = $config['show_feed_pubdate'] ? "ntt<pubDate>".gmdate('r')."</pubDate>" : null; $language            = empty($config['language']) ? null : "ntt<language>{$config['language']}</language>"; $output = <<<EOF <?xml version="1.0" encoding="{$config['encoding']}" ?> <rss version="2.0">     <channel>         <title>{$config['feed_title']}</title>         <link>{$config['link']}</link>         <description>{$config['description']}</description>{$copyright}{$pubdate}{$language}{$items_output}     </channel> </rss> EOF; header("Content-type: application/xml; charset={$config['encoding']}"); echo $output; ?>
  7. Iam not shure to make that portion work. If you have some suggestions and a tutorial that I can look at I will apraciated
  8. [code][/code] I have worked on the page and Iam able to see the text from the table.I have tables on with information how can. I get it to show me the last table insted of the first one. I would like to show updated information. does any one have any suggestions that can help. <a href="#"><span class="style4"><?php echo $row_Recordset1['name']; ?>
  9. Guys happy new year. Iam  still new to php but learning I have some questions that I will pose to see if any one can point me inthe right direction. Iam trying to add content to my web site I find it a little hard to add some features I have tried severa ways with no head way. first. I would lke to be able to add a data base  that will handle pics and maybe some video files. Similar to one of those news sites. Second I have the database in place and its working  I was trying to add a file up load portion and then link that to the content that is posted on the database then display it on the web site. 1) I can add information to the database, 2) I can view the information  This means ican see the table info. 3) How do I insert The file into the Database 4)How do i up load and mpeg or Mov file to the data base  or move it to a directory that will have a link to the mysql database. 5) How do you the display the info back to the web site like a news site. Thanks for your help
  10. In dreamweaver there is a preform that you can use that will do that for you. You can go to--- Top of the page go to Insert Then ---Application objects-- Record Incertion form-- Fill out your ----Connections--- Your table an then you can Have it Go to a page with a link. >>AFTER INCERTIN GO TO <---- this will doi it automaticly but you may want to play around first with it to make sure its what you want it to do.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.