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
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
?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');
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 =
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.
[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
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
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
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!
++
__ __
(, /
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,
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
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
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
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
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
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
16 matches
Mail list logo