[PHP] Little Problem with my Guestbook

2005-09-14 Thread Florian Paucke
Hi. I'm new to PHP. 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 with my Guestbook

2005-09-14 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

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread Florian P.
?php include(sql.inc.php); include(config.inc.php); $connection = mysql_connect($sql['host'],$sql['uid'],$sql['pwd']); $select_db = mysql_select_db($sql['db']); $select = mysql_query('SELECT * FROM comments'); $data = mysql_fetch_array($select); $result = mysql_query('SELECT * FROM comments');

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread John Nichel
Florian P. wrote: ?php include(sql.inc.php); include(config.inc.php); $connection = mysql_connect($sql['host'],$sql['uid'],$sql['pwd']); $select_db = mysql_select_db($sql['db']); $select = mysql_query('SELECT * FROM comments'); $data = mysql_fetch_array($select); $result =

[PHP] Little Problem :)

2003-03-11 Thread David Soler
Hello, Perhaps my question don't fit on a php mailing list and perhaps do it better in a html mailing list, but sure there are people here who knows how to solve my little problem: I have made a little web (1) page using php where the users can write their messages in a form action=add.php.

Re: [PHP] Little Problem :)

2003-03-11 Thread CPT John W. Holmes
[snip] The web Page (1) uses a TEXTAREA to permit the users write their things. If one user writes something like and the sentence has 200 characters 'a' without any br or enter '\n' then in web page (2) the table becomes too fat (like table with=2000, for example). [snip] Use

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] You can

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 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 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, $string,

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

[PHP] little problem with ' and stuff

2003-02-10 Thread Michiel van Heusden
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 'frame name=main scrolling=no src='$url''; this gives me a paring error on the last

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 'frame name=main scrolling=no src='$url''; this gives

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 later on in the

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 calling this $url

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 'frame name=main scrolling=no src='$url''; You've already seen the suggestions to . together your parts, so I needn't suggest that. I wonder why on