Search found 28 matches

by hostingebc
Sat Jul 30, 2011 2:54 pm
Forum: PHP
Topic: Read <content:encoded> from RSS feed
Replies: 7
Views: 2265

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...
by hostingebc
Sat Jul 30, 2011 10:38 am
Forum: PHP
Topic: Read <content:encoded> from RSS feed
Replies: 7
Views: 2265

Re: Read <content:encoded> from RSS feed

It may rename it to somethign for compatibility. Try doing print_r($item); 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: <?php $rss = new SimpleXMLElement('http://www.naslovi.net/rss/sport/', null, true); $n...
by hostingebc
Fri Jul 29, 2011 6:22 pm
Forum: PHP
Topic: Read <content:encoded> from RSS feed
Replies: 7
Views: 2265

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)
by hostingebc
Fri Jul 29, 2011 5:29 am
Forum: PHP
Topic: Read <content:encoded> from RSS feed
Replies: 7
Views: 2265

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
by hostingebc
Mon Jul 25, 2011 4:23 pm
Forum: (X)HTML
Topic: Faceebook share - format news
Replies: 1
Views: 2560

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 <title><?php echo "news_title"; ?></title> if i want to share my news to facebook with corect title of the news. But i do not khow how tu show content of t...
by hostingebc
Tue Jun 21, 2011 6:59 am
Forum: SQL
Topic: date time value
Replies: 2
Views: 1060

Re: date time value

Solved

$datum = date('Y-m-d H:m:s');
by hostingebc
Tue Jun 21, 2011 6:39 am
Forum: SQL
Topic: date time value
Replies: 2
Views: 1060

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 $sql = "INSERT INTO `rss_vesti` SET `SAJT_ID` = '$rss_izvor_id', `NASLOV` = '$title1', `SLIKA` = '$image2', `SADRZAJ` = '$descritpion_trim1', `IZVOR` = '$link1', `DATUM` = 'CURDATE()'"; ...
by hostingebc
Tue Jun 14, 2011 12:14 pm
Forum: SQL
Topic: INER JOIN first time writing
Replies: 5
Views: 1709

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
by hostingebc
Tue Jun 14, 2011 11:19 am
Forum: SQL
Topic: INER JOIN first time writing
Replies: 5
Views: 1709

Re: INER JOIN first time writing

Copy/paste header from php my admin
posts:
id cat_id title contents date_posted
categories:
id name
by hostingebc
Tue Jun 14, 2011 11:12 am
Forum: SQL
Topic: INER JOIN first time writing
Replies: 5
Views: 1709

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 <?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.cat_id"...
by hostingebc
Sun Jun 12, 2011 12:19 pm
Forum: PHP
Topic: Rss with image: $image value
Replies: 33
Views: 4256

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 :)
by hostingebc
Sun Jun 12, 2011 11:59 am
Forum: PHP
Topic: Rss with image: $image value
Replies: 33
Views: 4256

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...
by hostingebc
Sat Jun 11, 2011 12:03 pm
Forum: PHP
Topic: Rss with image: $image value
Replies: 33
Views: 4256

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 echo "$naslov, $opis, $sadrzaj, $izvor,, $url, $datum1, $datum2, <img src='$urlslike'/> </br></br>"; Trust me, this is not problem form me. I know this and a...
by hostingebc
Sat Jun 11, 2011 8:24 am
Forum: PHP
Topic: Rss with image: $image value
Replies: 33
Views: 4256

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
by hostingebc
Fri Jun 10, 2011 11:51 pm
Forum: PHP
Topic: Rss with image: $image value
Replies: 33
Views: 4256

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 <img src="something" width="100" height="100" /> for 100x100 pixels. but somthin is ? which value? which url? that's what interests me? :)
by hostingebc
Fri Jun 10, 2011 8:58 pm
Forum: PHP
Topic: Rss with image: $image value
Replies: 33
Views: 4256

Re: Rss with image: $image value

1. question http://www.moravaprom.com/ebchost/prikaz.php 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 $urlimag...
by hostingebc
Fri Jun 10, 2011 7:15 pm
Forum: PHP
Topic: Rss with image: $image value
Replies: 33
Views: 4256

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...
by hostingebc
Thu Jun 09, 2011 6:59 am
Forum: PHP
Topic: Rss with image: $image value
Replies: 33
Views: 4256

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...
by hostingebc
Wed Jun 08, 2011 11:11 pm
Forum: PHP
Topic: Rss with image: $image value
Replies: 33
Views: 4256

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 ...
by hostingebc
Wed Jun 08, 2011 8:28 pm
Forum: PHP
Topic: Rss with image: $image value
Replies: 33
Views: 4256

Re: Rss with image: $image value

i have 3 rss source check hiar: http://www.moravaprom.com/ebchost/delete.php but only one rotation (only 1 show an http://www.moravaprom.com/ebchost/main.php) I have no errors, i check all if i delete RTS - SPORT rss source i see two other with no problem <?php header('Content-Type: text/html; chars...
by hostingebc
Wed Jun 08, 2011 5:54 pm
Forum: PHP
Topic: Rss with image: $image value
Replies: 33
Views: 4256

Re: Rss with image: $image value

depending on the source, in this line of code $urlslike = $e->getAttribute("src"); 1. for source http://www.rts.rs/page/sport/sr/rss.html do not work 2. for sorce http://www.naslovi.net/rss/sport working exelent hiar is short basic code of rss reader (starting code for me) You can try it :...