Hey guys, i'm writing this guestbook script for my site, and i'm getting a
random parse error where i think everything is normal, it gives it on line 26
which is
echo Your entry will be posted!;
my script follows
Jule
--SCRIPT--
?php
$Guestbook[dateadd] = date(F j, Y H:i:s
Thanks for that, yeah i should be more carefull before going to the list..
i'll watch out for it next time.
Jule
On Tuesday 30 April 2002 13:54, Miguel Cruz wrote:
You're missing a closing quote on the assignment for $Query2.
Come on people, keep your eyes open. This is basic stuff. Doesn't
to
work.
any pointers?
Jule
--SCRIPT--
?php
$Guestbook[dateadd] = date(F j, Y);
$Guestbook[name] = trim($Guestbook[name]);
$Guestbook[town] = trim($Guestbook[town]);
$Guestbook[email] = trim($Guestbook[email]);
$Guestbook[website] = trim($Guestbook[website
errors.
Jule
On Tuesday 30 April 2002 23:35, you wrote:
On Wednesday 01 May 2002 07:34, Jule wrote:
Hey,
This time it's not about missing quotes or parenthasies i hope.
I'm trying to make a form which sends name, email, website, favsong and
comments to table guestbook, but when the checkbox
;
}
}
mysql_close ($Link);
and yes, i am sure the checkbox is checked.
Jule
On Tuesday 30 April 2002 23:43, you wrote:
I don't know, every time i submit the form w/ the checkbox checked. it
gives me
Alright i'll take care of that, thanks a lot!
Jule
On Wednesday 01 May 2002 00:26, you wrote:
On Wednesday 01 May 2002 11:48, Jule wrote:
but not the second one:
if (isset($Guestbook[mailinglist])) {
You should be using:
if (isset($Guestbook['mailinglist
this error:
Warning: Failed opening 'news/index.php?start=8' for inclusion
(include_path='') in /home/blindtheory/web/newweb/index.php on line 31
so how can i solve this and get the articles to show in groups of 8?
thanks in advance.
Jule
--
Jule Slootbeek
[EMAIL PROTECTED]
http://blindtheory.cjb.net
command?
i could use cookies, but i prefer a simpler way.
thanks
Jule
--
Jule Slootbeek
[EMAIL PROTECTED]
http://blindtheory.cjb.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
how do i go about that??
any ideas apreciated.
thanks
Jule
--
|\/\__/\/|
| Jule Slootbeek |
| [EMAIL PROTECTED]|
| http://blindtheory.cjb.net |
| __ |
|/\/ \/\|
--
PHP General Mailing List
answer4 answer3
answer1 answer2
any ideas?
thanks,
Jule
On Sunday 12 May 2002 17:30, you wrote:
Add on a LIMIT to restrict it to return a certain number of rows.
If you had a table of say, 100 rows, and you wanted four random ones out
of the 100, then you'd use this:
SELECT
to be John Doe, is now only Joe.
how do i fix this?
thanks
Jule
--
|\/\__/\/|
| Jule Slootbeek |
| [EMAIL PROTECTED]|
| http://blindtheory.cjb.net |
| __ |
|/\/ \/\|
--
PHP General Mailing List
is the for() loop in which this story takes place.
thanks
Jule
--SCRIPT--
for ($n = 1; $n = $quiz[number_answers]; $n++) {
$table = $quiz[code]_answers;
$value = $answers[answer$n];
$query_alter_table = ALTER table $table ADD
,
Jule
On Friday 17 May 2002 19:17, you wrote:
Hello,
Try using NOT NULL. As weird as MySQL can be, don't think it is that
NUTty. =)
Harrison
- Original Message -
From: Jule [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 17, 2002 7:00 PM
Subject: ALTER TABLE $table ADD
try,
for ($i=1; $i=$num_pages; $i = $i + 20) {
}
or try,
$i = 1;
while ($i=$num_pages) {
//text here
$i = $i + 20;
}
I got those little problems too all the time..
and the boards/lists always help.
Jule
On Friday 17 May 2002 23:19, you wrote:
Okay, I'm apologizing right now
would that work?
isn't $i++; abbr. for $i = $i + 1;
so now the $i + 20; doens't declare anything.
just like $i += $b; is abbr. $i = $i + $b;
Jule.
On Friday 17 May 2002 23:14, you wrote:
Hmm... Wouldn¹t you just do this?:
for ($i=1; $i=$num_pages; $i+20) {
// print stuff here
again. and that after it has printed
all the records it stops
any ideas?
Jule
--
|\/\__/\/|
| Jule Slootbeek |
| [EMAIL PROTECTED]|
| http://blindtheory.cjb.net |
| __ |
|/\/ \/\|
--
PHP
, for the completion of this project, or per hour?
Jule
--
|\/\__/\/|
| Jule Slootbeek |
| [EMAIL PROTECTED]|
| http://blindtheory.cjb.net
-instructions for the rest of my life.
thanks a lot
i really appreciate it.
Jule
On Sunday 19 May 2002 20:46, Doug Riddle wrote:
--- Jule [EMAIL PROTECTED] wrote:
Hey guys,
I got an offer to do some php/mysql design for a local company,
basically what it's going to be is to take the current
Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't
bigint support higher numbers than that?
i'm not sure but i think that's why your number gor cut down.
Jule
On Monday 27 May 2002 22:36, zhaoxd wrote:
Hello all:
Not long ago I wrote some php code
ps: sorry for all the typos...
Jule
On Monday 27 May 2002 22:51, Jule wrote:
Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't
bigint support higher numbers than that?
i'm not sure but i think that's why your number gor cut down.
Jule
On Monday 27 May 2002 22:36
see this page:
http://www.php.net/manual/en/language.types.integer.php
Jule
On Monday 27 May 2002 22:52, Jule wrote:
ps: sorry for all the typos...
Jule
On Monday 27 May 2002 22:51, Jule wrote:
Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't
bigint support
forward
Jule
On Wednesday 29 May 2002 00:14, you wrote:
On Wednesday 29 May 2002 11:52, Dr. Indera wrote:
I am in the planning stage of building an online course room. Each week I
need to upload pages for that weeks lesson and assignments. What I want
to know is if there is a way for me
before actually starting coding..
see www.php.net and www.mysql.com for all the docs you need. They really
helped me along, so did the this list.
Jule
On Wednesday 29 May 2002 00:24, Dr. Indera wrote:
Hello,
I'd to know how difficult it is to achieve the following:
Create login page, when
actually that should be
for ($n = 1; $n = $number_of_assignments; $n++) {
if (mktime($current) = mktime($assignment[$n]) {
echo assignment[$n]br\n;
}
}
Jule
On Wednesday 29 May 2002 00:31, Jule wrote:
I think that is right Jay,
you can use mktime() to change
Hey guys,
What is the best way for user authentication (now i'm talking about the
most secure and easiest way).
Now i've been using sessions, and i was wondering if cookies were better
and easier...
any thoughts?
thanks,
Jule
--
Jule Slootbeek
[EMAIL PROTECTED]
http://blindtheory.cjb.net
John Holmes wrote:
Sessions use cookies as it is...so what do you really want to do...what
do you want to protect?
---John Holmes...
Oh ok, that explains it then...
Well thanks for the info anyway. I was basically just wondering which
method was reccommended..
Jule
--
Jule
Hey guys and gals,
if i have a function
and i return an array from it
function my_function() {
blabla;
return array ($array['name'], $array['password']);
}
how do i get this into an array on the page i call the function?
$array = my_function() doesn't work?
any ideas?
thanks
Jule
--
Jule
try:
list($doo, $dah) = my_function();
thanks alot
that was it
list ($array['name'], $array['password']);
Jule
--
Jule Slootbeek
[EMAIL PROTECTED]
http://blindtheory.cjb.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Hey guys and gals,
I have the following function which accesses the following tables, now i want to
know if there is a way to get the quiz_id from table quiz without runnning both
these queries...
thanks,
Jule
--tables--
mysql describe user
Hey list,
How do i check if my script has successfully run through an entire foreach() loop
do i just go
if (foreach ($answer as $a) { echo $a })
{
return TRUE;
} else {
return FALSE;
}
thanks in advance.
Jule
--
Jule Slootbeek
[EMAIL PROTECTED]
http://blindtheory.cjb.net
.
any thoughts?
thanks,
Jule
--
Jule Slootbeek
[EMAIL PROTECTED]
http://blindtheory.cjb.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
);
if ($Open) {
print ($welcomemssg);
}
fclose ($Open);
?
Jule
On Monday 15 April 2002 13:49, you typed on your keyboard, and you sent me
the following:
On Tuesday 16
Hey guys and gals,
I'm writing this script for my new webpage, and i'm using MySQL to read and
add news articles to a page, but everytime i add a new article it puts it
under the older one, how can i get it on top?
thanks
Jule
$Link = mysql_connect ($Host, $User, $Password);
$Query = SELECT
I'm not sure of it'll work, never tried it, but you might be able to show the
pics using a Java applet..that way one cannot copy them.
Jule.
On Thursday 18 April 2002 14:17, Gunther E. Biernat typed on his or her
keyboard, and sent me the following:
You can't. Period. Simple as that.
Oh
, how do i
make it that it opens the theband page in stead of the default, and when i go
to plain index.php the defaults come back?
any help apreciated
thanks
Jule
---SCRIPT---
?php
$top = navbar;
$left = news;
$righttop = welcome;
$rightbottom = pic;
$toptitle = index;
$lefttitle = index
the picture, is this
because i'm using Mozilla 0.9.9 or is it from something else?
Jule
--
Jule Slootbeek
[EMAIL PROTECTED]
http://blindtheory.cjb.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
--
Jule Slootbeek
[EMAIL PROTECTED]
http://blindtheory.cjb.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
\;
}
HTH,
Jason Soza
- Original Message -
From: Jule Slootbeek [EMAIL PROTECTED]
Date: Monday, June 3, 2002 2:09 pm
Subject: stupid error, please kick me (and send me a solution)
Hey guys,
i\'m getting this error with the following sql script using php:
--error--
Warning: Supplied
PROTECTED]; mysql; php-general
Subject: Re: stupid error, please kick me (and send me a solution)
Your missing your closing } at the end of the else statement.
- Original Message -
From: Jule Slootbeek [EMAIL PROTECTED]
To: mysql [EMAIL PROTECTED]; php-general
[EMAIL PROTECTED
Jule Slootbeek wrote:
G r e g L a w r i e wrote:
It would also appear you are missing a closing ) at the end of the
'$query=...' line. You have two opening backets and only one closing.
Greg
-Original Message-
From: Bruce Lewis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 4 June
ok, i think i fixed up everything everybody told me (although some
answers did contradict) and here is the entire script...
Jule
--script (globals.inc.php)--
?php
$host_glob = localhost;
$db_glob = phpquiz;
$un_glob = phpquiz;
$pw_glob = phpquiz
ps: it was still not working..
--
Jule Slootbeek
[EMAIL PROTECTED]
http://blindtheory.cjb.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
...:)
I am now going to sit in a corner and be ashamed of myself
thanks Philip and and everybody else...
Jule
--
Jule Slootbeek
[EMAIL PROTECTED]
http://blindtheory.cjb.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
What's the best and easiest way to strip all the spaces from a string?
do i use regular expressions for it?
TIA,
J.
Jule Slootbeek
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
perfect, exactly what i needed
thanks
J.
On Friday, Dec 6, 2002, at 16:38 US/Eastern, J Smith wrote:
Regular expressions would be overkill. Try
$newString = str_replace( , , $oldString);
J
Jule Slootbeek wrote:
Hi,
What's the best and easiest way to strip all the spaces from a string
this action could be done. So i was wondering if anybody
had experience with PHP under Jaguar, and could lend me a hand.
TIA,
Jule Slootbeek
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yeah that's the path to where php.ini should be (/usr/local/lib, in my
case, but the Jaguar version of PHP doesn't use a php.ini file, so
there's nothing there.
Jule
On Tuesday, Oct 8, 2002, at 22:34 US/Eastern, Timothy J Hitchens wrote:
Make a page with ?php phpinfo(); ? then display
well, there is no such file, i searched all over my drive, and there is
no php-ini.* php_ini.*
i guess i could try getting a php.ini file from somewhere and putting
it in the /usr/local/lib dir
but i wouldn't know where to get a 'standard' php.ini file
Jule
On Tuesday, Oct 8, 2002, at 22:43
i didn't install from source, i installed from an OS X binary i found
in the php website, i got a php.ini from someone else which i
'm suing, thanks guys!
Jule
On Tuesday, Oct 8, 2002, at 23:54 US/Eastern, CC Zona wrote:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Jule Slootbeek
();
i hope this is about what you mean
Jule
On Thursday, Oct 10, 2002, at 23:00 US/Eastern, Leif K-Brooks wrote:
I've been using php for a while now, and I've made plenty of web sites
in that time. But there's been a nagging problem: the best way to put
a
layout and global code on each
hey
is there a way to get the URL header? the title meta tags etc?
i couldn't find any function in the docs, but maybe i just don't know
where to look.
if there's a function that pulls in an entire page that;s fine too i
can work with that..
any help appreciated
TIA
Jule
Jule Slootbeek
[EMAIL
i thought fopen() was only for local files, didn't even bother looking,
but now i think about it..it makes perfect sence to open url's as well,
thanks a lot!
Jule
On Friday, Nov 1, 2002, at 17:42 US/Eastern, John Nichel wrote:
Docs - Function Reference - Filesystem Functions - fopen
well, i got it to read a html file, but the problem is that it reads it
after it loads it, so it doesn't read the tags, and i'm looking for the
string in between title and /title
is there a way using fopen() or something similar to read an html/php
file before it's loaded?
Jule
On Friday
hmm, figured it out...all of a sudden it did work:
here's the code, it loads a URL and returns the title...
dunno what it would be used for, but it aught we some more about php..
i'll probbly implement it on a link page ir something
Jule
function getTitle($url)
{
$file = @fopen($url, 'r
oops didn't catch two little bugs
Jule
function getTitle($url)
{
$file = @fopen($url, 'r');
if(!$file) {
$rline = Error, contact webmaster;
} else {
while (!feof ($file)) {
$line = fgets($file);
if (substr_count(strtoupper($line), TITLE) = 1) {
$rline = strip_tags($line
yeah i just noticed that myself too,
and unfortunatly people do code their html like that..
J
On Friday, Nov 1, 2002, at 21:44 US/Eastern, David U. wrote:
Jule Slootbeek wrote:
oops didn't catch two little bugs
Jule
function getTitle($url)
{
$file = @fopen($url, 'r');
if(!$file) {
$rline
at line 18: You have an error in your SQL syntax near 'where
varchar(255) NOT NULL default '',
with varchar(255) NOT NULL default '',' at line 5
where's the error?
i don't see anything wrong..
TIA,
Jule
Jule Slootbeek
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net
Ah i see, but then why will phpMyAdmin let me use it?
it works fine on my local db with these names, but on my remote server
it refuses to create the table.
Jule
On Tuesday, Nov 5, 2002, at 21:47 US/Eastern, Marco Tabini wrote:
where is a reserved keyword in SQL--try changing the name
apparently 'where' and 'with' are keywords in Java, i've changed them
and now it works fine.
thanks!
Jule
On Tuesday, Nov 5, 2002, at 21:53 US/Eastern, Marco Tabini wrote:
I'm not entirely sure... different configurations perhaps? Have you
verified that that's indeed the problem?
Marco
possible, but wouldn't phpMyAdmin export the name with the tick marks??
CREATE TABLE foo (`where` varchar(255) NOT NULL);
Jule
On Tuesday, Nov 5, 2002, at 21:51 US/Eastern, John W. Holmes wrote:
PHPMyAdmin may put tick marks around the name, which will get rid of
the
error.
`where` varchar
did I say Java? oops, i meant SQLlearning Java in my comp sci
class..(=
forgive me.
Jule
On Tuesday, Nov 5, 2002, at 21:54 US/Eastern, Martin Towell wrote:
where is a java keyword ? have you got an example ?
It's been _ages_ since I've done any code in java :(
-Original Message
td.filemtime($localList)./td
/tr;
}
}
closedir($opendir);
}
does anyone have any idea why it won't show a stamp for every file?
TIA,
Jule
Jule Slootbeek
[EMAIL PROTECTED]
.
Jule Slootbeek
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a problem,
i know this is not the MySQL mailinglist, but i hope you guys can help
me.
when i type mysqladmin variables the port comes up as 0 and doesn't let
people connect to my db remotely.
does anyone know why this problem is, and how i can change my port?
TIA
Jule
Jule Slootbeek
64 matches
Mail list logo