Florian P. wrote:
No reason to run this twice
$data = array();
if ( $result = mysql_query ( 'SELECT * FROM comments' ) ) {
while ( $temp = mysql_fetch_array ( $result, MYSQL_ASSOC ) ) {
$data[] = $temp;
}
$rows = mysql_num_rows ( $result );
ID:
Name:
Titel:
Kommentar:
Thats the code i have written.
And I would like to post the how often
I have SQL-entries in my database.
I hope you understand what I would like to say.
And in each cycle it ought to put out the next entry of the database.
Florian Paucke wrote:
I need some help from you, because, I'm creating a
guestbook. But I have a little problem.
I have a table, where the different My-SQL-Entries
are read out.
But now I get only one Entry, but not more.
How can do it, that the table read out 4 times, when
4 entries are in the
PLEASE use a descriptive heading, rather than something generic.
Justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> You can use a regular expression for this task. This is what I use for my
> CMS routines:
>
>
> function make_maxlen($string, $maxlen)
> {
> $re = '/(.*?)([^\s]{' . $maxlen . ',})(.*)/';
> $out = null;
> while (preg_match($re, $
On Mar/11/2003, CPT John W. Holmes wrote:
>
> Use wordwrap()
>
Thx John, Warren and Clint.
This was just what I was looking for :). I haven't seen the
string functions in the manual :\. My fault!
Be Happy!
++
__ __
(, /
At 22:07 11.03.2003, CPT John W. Holmes said:
[snip]
>Use wordwrap()
[snip]
Hmm -one never stops learning I believe - I was missing this piece since :)
There's a bit of a difference between wordwarp() and my approach
At 21:32 11.03.2003, David Soler said:
[snip]
>user writes: "a"
>
>in the web must appear something like:
>
> table width
> ||
> aa
> aa
> aa
> aa
[snip]
[snip]
> The web Page (1) uses a to permit the users write their things.
> If one user writes something like "" and the
> sentence has 200 characters 'a' without any or enter '\n' then
> in web page (2) the table becomes "too fat" (like with="2000">, for example).
[snip]
Use wordwrap()
Michael --
...and then Michiel van Heusden said...
%
% hi there,
Hi!
%
% i'm having a small problem, wondering if anybody can help
...
% echo '';
You've already seen the suggestions to . together your parts, so I
needn't suggest that.
I wonder why on earth you're bothering, though! If you
Hi,
On Mon, 10 Feb 2003 09:27:38 +0100
"Michiel van Heusden" <[EMAIL PROTECTED]> wrote:
> hi there,
>
> i'm having a small problem, wondering if anybody can help
>
> // a line in my script defining $url
> $url = $directory . '/main.php?id=' . $id;
>
> // a line later on in the frameset callin
At 09:46 10.02.2003, Chris Hayes said:
[snip]
>At 09:27 10-2-2003, you wrote:
>>hi there,
>>
>>i'm having a small problem, wondering if anybody can help
>>
>>// a line in my script defining $url
>> $url = $directory . '/main.php?id=' . $id;
>>
>>// a line la
At 09:27 10-2-2003, you wrote:
hi there,
i'm having a small problem, wondering if anybody can help
// a line in my script defining $url
$url = $directory . '/main.php?id=' . $id;
// a line later on in the frameset calling this $url
echo '';
this gives me a paring error on the last line
ple
13 matches
Mail list logo