Re: Subject: Scrolling News

Re: Subject: Scrolling News

am 23.12.2005 12:16:40 von Neil Smth

At 20:39 22/12/2005, you wrote:
>Date: Thu, 22 Dec 2005 20:38:58 +0000
>From: Alex Major
>To:
>Message-ID:
>Mime-version: 1.0
>Content-type: text/plain;
> charset="US-ASCII"
>Content-transfer-encoding: 7bit
>Subject: Scrolling News
>
>Hi there.
>I'm trying to make a scrolling news box for my website. Basically I would
>like this news box to get information from a column in my database called
>'news_title' and display it in a scrolling news box.
>
>Any suggestions for how to go about doing this? I'm still very new to php.


Recommend : OrcaScroller (cross browser)
http://www.greywyvern.com/javascript
"Block scroller and marquee"

Cheers - Neil

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Subject: Scrolling News

am 23.12.2005 14:20:49 von Alex Major

Thanks for that, it does look great, however I seem to be encountering some
problems with it and alas I can't seem to find the problem.
The code for the header (which is where this is located) is


mysql_select_db($database_Connection1, $Connection1);
$query_News = "SELECT ss_news.news_title FROM ss_news ORDER BY
ss_news.news_date";
$News = mysql_query($query_News, $Connection1) or die(mysql_error());
$row_News = mysql_fetch_assoc($News);
$totalRows_News = mysql_num_rows($News);
?>
"http://www.w3.org/TR/html4/loose.dtd">



Untitled Document






The contents of this block will be displayed if the browser does not support
the scroller.
It will be overwritten if the scroller is supported.


border="0" align="right">





mysql_free_result($News);
?>

Now, can you see the causes of these two errors...
"A runtime error has occurred. Do you wish to Debug, Line: 20 Error:
Expected "9"

And also
"A runtime error has occurred. Do you wish to Debug, Line: 36 Error:
'scroller1' is undefined.

Any help on this issue is greatly appriciated.
Regards,
Alex

On 23/12/05 11:16, "Neil Smith [MVP, Digital media]"
wrote:

> At 20:39 22/12/2005, you wrote:
>> Date: Thu, 22 Dec 2005 20:38:58 +0000
>> From: Alex Major
>> To:
>> Message-ID:
>> Mime-version: 1.0
>> Content-type: text/plain;
>> charset="US-ASCII"
>> Content-transfer-encoding: 7bit
>> Subject: Scrolling News
>>
>> Hi there.
>> I'm trying to make a scrolling news box for my website. Basically I would
>> like this news box to get information from a column in my database called
>> 'news_title' and display it in a scrolling news box.
>>
>> Any suggestions for how to go about doing this? I'm still very new to php.
>
>
> Recommend : OrcaScroller (cross browser)
> http://www.greywyvern.com/javascript
> "Block scroller and marquee"
>
> Cheers - Neil

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Subject: Scrolling News

am 24.12.2005 04:32:08 von jusa_98

--0-363718909-1135395128=:6624
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit



Now, can you see the causes of these two errors... "A runtime error has occurred. Do you wish to Debug, Line: 20 Error: Expected "9"

Are you using pine to edit? Or a HTML editior. If HTML or notepad you have the option of turning "wordwrap" on/off. Use this to find line number.

With PHP/Javascript knowledge you should be able to easily identify the problem. I just counted the lines in the email you posted for your code. Incidently you need to know how lines work in PHP in an email form, one line can carry to another line. Generally you look for the ; icon to end code, generally means a new enter but not all the time. But in a query state it does 99% of the time.

I'll give you a hint, look at line 20 and think about adding a space or two. And also "A runtime error has occurred. Do you wish to Debug, Line: 36 Error: 'scroller1' is undefined.

It's undefined, define it, look on a javascript website for this error, explained nicely. Any help on this issue is greatly appriciated. Regards, Alex On 23/12/05 11:16, "Neil Smith [MVP, Digital media]" wrote: > At 20:39 22/12/2005, you wrote: >> Date: Thu, 22 Dec 2005 20:38:58 +0000 >> From: Alex Major >> To: >> Message-ID: >> Mime-version: 1.0 >> Content-type: text/plain; >> charset="US-ASCII" >> Content-transfer-encoding: 7bit >> Subject: Scrolling News >> >> Hi there. >> I'm trying to make a scrolling news box for my website. Basically I would >> like this news box to get information from a column in my database called >> 'news_title' and display it in a scrolling news box. >> >> Any suggestions for how to go about doing t
his? I'm still very new to php. > > > Recommend : OrcaScroller (cross browser) >
http://www.greywyvern.com/javascript > "Block scroller and marquee" > > Cheers - Neil

Send instant messages to your online friends http://au.messenger.yahoo.com
--0-363718909-1135395128=:6624--