Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread John Nichel
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 );

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread Florian P.
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.

Re: [PHP] Little Problem with my Guestbook

2005-09-13 Thread Jasper Bryant-Greene
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

Re: [PHP] Little Problem :)

2003-03-11 Thread Justin French
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

Re: [PHP] Little Problem :)

2003-03-11 Thread CPT John W. Holmes
> 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, $

Re: [PHP] Little Problem :)

2003-03-11 Thread David Soler
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! ++ __ __ (, /

Re: [PHP] Little Problem :)

2003-03-11 Thread Ernest E Vogelsinger
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

Re: [PHP] Little Problem :)

2003-03-11 Thread Ernest E Vogelsinger
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]

Re: [PHP] Little Problem :)

2003-03-11 Thread CPT John W. Holmes
[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()

Re: [PHP] little problem with ' " and stuff

2003-02-10 Thread David T-G
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

Re: [PHP] little problem with ' " and stuff

2003-02-10 Thread Florin Dumitrescu
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

Re: [PHP] little problem with ' " and stuff

2003-02-10 Thread Ernest E Vogelsinger
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

Re: [PHP] little problem with ' " and stuff

2003-02-10 Thread Chris Hayes
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