Search found 28 matches
- Sat Jul 30, 2011 2:54 pm
- Forum: PHP
- Topic: Read <content:encoded> from RSS feed
- Replies: 7
- Views: 2143
Re: Read <content:encoded> from RSS feed
But did the value of that element ? no Looks like it is getting some information from an RSS feed and putting it into a database. yes i know that, but what is diference betwen my and this example (in my examle i have somtime problem with 30 second of execution of php code) what is quicker ? (if you...
- Sat Jul 30, 2011 10:38 am
- Forum: PHP
- Topic: Read <content:encoded> from RSS feed
- Replies: 7
- Views: 2143
Re: Read <content:encoded> from RSS feed
It may rename it to somethign for compatibility. Try doing [syntax=php]print_r($item);[/syntax] and see if you can see the value anywhere ? No, condtent:encoded part, do not whow up on screen? Can you help of andrsthend this example: [syntax=php] <?php $rss = new SimpleXMLElement('http://www.naslov...
- Fri Jul 29, 2011 6:22 pm
- Forum: PHP
- Topic: Read <content:encoded> from RSS feed
- Replies: 7
- Views: 2143
Re: Read <content:encoded> from RSS feed
jacek wrote:Does the simpleXML extension not recognise it ?
$encoded = $item->content; - not working (empty string is resolt)
$encoded = $item->encoded; - not working (empty string is resolt)
$encoded = $item->content:encoded; - not working (error)
- Fri Jul 29, 2011 5:29 am
- Forum: PHP
- Topic: Read <content:encoded> from RSS feed
- Replies: 7
- Views: 2143
Read <content:encoded> from RSS feed
How to read <content:encoded> from RSS feed
for example, from this link ?
http://www.zurnal.rs/category/rukomet/feed?lang=lat
for example, from this link ?
http://www.zurnal.rs/category/rukomet/feed?lang=lat
- Mon Jul 25, 2011 4:23 pm
- Forum: (X)HTML
- Topic: Faceebook share - format news
- Replies: 1
- Views: 1903
Faceebook share - format news
how to format html stucture of news to share on facebok wall and show it with content for examle, i know that title tag must have this [syntax=xhtml]<title><?php echo "news_title"; ?></title>[/syntax] if i want to share my news to facebook with corect title of the news. But i do not khow h...
- Tue Jun 21, 2011 6:59 am
- Forum: SQL
- Topic: date time value
- Replies: 2
- Views: 963
Re: date time value
Solved
$datum = date('Y-m-d H:m:s');
$datum = date('Y-m-d H:m:s');
- Tue Jun 21, 2011 6:39 am
- Forum: SQL
- Topic: date time value
- Replies: 2
- Views: 963
date time value
i try tu insert current date and time, but, value inserted in table is 0000-00-00 00:00:00 all the time [syntax=php]$sql = "INSERT INTO `rss_vesti` SET `SAJT_ID` = '$rss_izvor_id', `NASLOV` = '$title1', `SLIKA` = '$image2', `SADRZAJ` = '$descritpion_trim1', `IZVOR` = '$link1', `DATUM` = 'CURDAT...
- Tue Jun 14, 2011 12:14 pm
- Forum: SQL
- Topic: INER JOIN first time writing
- Replies: 5
- Views: 1524
Re: INER JOIN first time writing
hostingebc wrote:in my DB structure i have 2 tables:
1. categories - id, name,
2. postos - id, cat_id, title, contents, date_posted
wer is the problem?
thanks
UPDATE for secon table name
2. posts: id, cat_id, title, contents, date_posted
- Tue Jun 14, 2011 11:19 am
- Forum: SQL
- Topic: INER JOIN first time writing
- Replies: 5
- Views: 1524
Re: INER JOIN first time writing
Copy/paste header from php my admin
posts:
categories:
posts:
id cat_id title contents date_posted
categories:
id name
- Tue Jun 14, 2011 11:12 am
- Forum: SQL
- Topic: INER JOIN first time writing
- Replies: 5
- Views: 1524
INER JOIN first time writing
I write first time INER JOIN and i have error Unknown column 'posts.id' in 'field list' this is the query [syntax=php]<?php $query = "SELECT posts.id AS post_id, categories.id AS category_id, title, contents, date_posted, categories.name FROM posts INER JOIN categories ON categories.id = posts....
- Sun Jun 12, 2011 12:19 pm
- Forum: PHP
- Topic: Rss with image: $image value
- Replies: 33
- Views: 3631
Re: Rss with image: $image value
Greate, thanks
Problem is solved
you can see finall resolt.
http://www.moravaprom.com/ebchost/prikaz.php
Now i can make the rss blog![Smile :)](./images/smilies/icon_e_smile.gif)
Problem is solved
you can see finall resolt.
http://www.moravaprom.com/ebchost/prikaz.php
Now i can make the rss blog
![Smile :)](./images/smilies/icon_e_smile.gif)
- Sun Jun 12, 2011 11:59 am
- Forum: PHP
- Topic: Rss with image: $image value
- Replies: 33
- Views: 3631
Re: Rss with image: $image value
Content of article $sadrzaj is: Atletska zvezda sa Jamajke želi da igra na Old Trafordu. Usain Bolt smatra da je dovoljno dobar da bude deo tima Aleksa Fergusona. Misli da bi trebalo da “dotera†tehniku, ali i da sada poseduje dovoljno kvaliteta da nosi dres “crvenih Ä‘avolaâ€. <img src=&quo...
- Sat Jun 11, 2011 12:03 pm
- Forum: PHP
- Topic: Rss with image: $image value
- Replies: 33
- Views: 3631
Re: Rss with image: $image value
we are lost in the translation of the last few comments on this topic Is the URL not the same as the one you use in the img tag here [syntax=php]echo "$naslov, $opis, $sadrzaj, $izvor,, $url, $datum1, $datum2, <img src='$urlslike'/> </br></br>";[/syntax] Trust me, this is not problem form ...
- Sat Jun 11, 2011 8:24 am
- Forum: PHP
- Topic: Rss with image: $image value
- Replies: 33
- Views: 3631
Re: Rss with image: $image value
jacek wrote:Something would be the url of the image you want to display.
i know, but how to get url?
I need to separate url and text in two diferent div, an then to show tem
- Fri Jun 10, 2011 11:51 pm
- Forum: PHP
- Topic: Rss with image: $image value
- Replies: 33
- Views: 3631
Re: Rss with image: $image value
Greate, i know for this. Thanks You can set the dimensions of the image just by setting the width and height in the tag like this [syntax=xhtml]<img src="something" width="100" height="100" />[/syntax] for 100x100 pixels. but somthin is ? which value? which url? that's ...
- Fri Jun 10, 2011 8:58 pm
- Forum: PHP
- Topic: Rss with image: $image value
- Replies: 33
- Views: 3631
Re: Rss with image: $image value
1. question m if you see this, you will see the problem: 1. Picture dimension, 2. picture position, 3. link lenght problem (i know how to resolve, becose is separetet from <item> part ) that i can not control if i do not have imege url. for example $urlimage = url img from item; 2.question - thank, ...
- Fri Jun 10, 2011 7:15 pm
- Forum: PHP
- Topic: Rss with image: $image value
- Replies: 33
- Views: 3631
Re: Rss with image: $image value
ok. is not problem i alredy done this code, and work greate two questions: 1. how to get (or separate the) image url from the text. It is necessary for me more beautiful site design (I'll be able to change the dimensions of the image that I want, and not as provided in the content 2. how to using ph...
- Thu Jun 09, 2011 6:59 am
- Forum: PHP
- Topic: Rss with image: $image value
- Replies: 33
- Views: 3631
Re: Rss with image: $image value
I want to make multyuser online news reader, but with pictures,with no pictures this is not a problem to do I have already made, the user an owen profile can choose, or add sites that will follow, or to delete a site from list. at the same time will be allowed to have its own news web page. and vi...
- Wed Jun 08, 2011 11:11 pm
- Forum: PHP
- Topic: Rss with image: $image value
- Replies: 33
- Views: 3631
Re: Rss with image: $image value
i have 2 tables First is rss_source - web pages with rss link next table is rss_news - hiar i put data from rss. i want to automaticli, insert all data from all rss web pages (rss_source) i have in rss_news table. for example: I have three RSS link in the first table, i need to make three rounds of ...
- Wed Jun 08, 2011 8:28 pm
- Forum: PHP
- Topic: Rss with image: $image value
- Replies: 33
- Views: 3631
Re: Rss with image: $image value
i have 3 rss source check hiar: m but only one rotation (only 1 show an m) I have no errors, i check all if i delete RTS - SPORT rss source i see two other with no problem [syntax=php] <?php header('Content-Type: text/html; charset=utf-8'); $konekcija = mysql_connect("nesto", "nesto&q...
- Wed Jun 08, 2011 5:54 pm
- Forum: PHP
- Topic: Rss with image: $image value
- Replies: 33
- Views: 3631
Re: Rss with image: $image value
depending on the source, in this line of code [syntax=php]$urlslike = $e->getAttribute("src");[/syntax] 1. for source m do not work 2. for sorce m working exelent hiar is short basic code of rss reader (starting code for me) You can try it [syntax=php]<?php header('Content-Type: text/html;...