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--
mailto:[EMAIL PROTECTED]\";>me
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.
;t seem to
work.
any pointers?
Jule
--SCRIPT--
Your entry will be addedClick here
to go back.";
} else {
echo "There was an error in during the posting, please contact
mailto:[EMAIL PROTECTED]\";>the webmaster
ny php or mysql 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
l_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 the echo string which comes when the if is not executed.
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:
>
ves $start the value of 8.
but it gives me 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 adva
imple 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 yo
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
around it?
following 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]";
r4 |
++-+-+-+-+
| 1 | answer1 | answer2 | answer3 | answer4 |
++-+-+-+-+
thanks,
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
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 apo
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) {
&
hosen again. and that after it has printed
all the records it stops
any ideas?
Jule
--
|\/\__/\/|
| Jule Slootbeek |
| [EMAIL PROTECTED]|
| http://blindtheory.cjb.net |
| __ |
|/\/ \/\|
-
ble
amount, for the completion of this project, or per hour?
Jule
--
|\/\__/\/|
| Jule Slootbeek |
| [EMAIL PROTECTED]|
| http://blindtheo
27;m set on job-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,
> > basi
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:
>
>
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.
>
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
stem clock 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
> > t
paper 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:
&g
actually that should be
for ($n = 1; $n <= $number_of_assignments; $n++) {
if (mktime($current) >= mktime($assignment[$n]) {
echo "assignment[$n]\n";
}
}
Jule
On Wednesday 29 May 2002 00:31, Jule wrote:
> I think that is right Jay,
> y
if (mktime($current) >= mktime($assignment[$n][date]) {
echo "$assignment[$n][assignment]\n";
}
}
that should do it.
sorry for the many posts,
Jule
On Wednesday 29 May 2002 00:45, Jule wrote:
> actually that should be
>
> for ($n = 1; $n <= $n
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 st
anywhere where 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 then display
&g
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,
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 PROT
t;);
blablablab
footer();
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
hey
is there a way to get the URL header? the 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
[
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 Function
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 and
is there a way using fopen() or something similar to read an html/php
file before it's loaded?
Jule
On Frid
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,
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"), "&
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(!
his is generated by phpMyAdmin)
i get this error:
ERROR 1064 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 wro
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 t
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 tha
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` va
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 :(
-
o "
".$localList."
modified
".filemtime($localList)."
";
}
}
closedir($opendir);
}
does anyone have any idea why it won't show a stamp for every file?
TIA,
Jule
Jule Slootbeek
[EMAIL PROTECTED]
if a file exists a remote ftp site.
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 Sloo
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://blindtheo
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 re
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 ide
>
> 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.ph
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 u
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
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
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. Simpl
, 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---
");
print ("");
print ("");
include (
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
27;, $link_glob');
if (!$result) {
echo "Your Information could not be
entered into the database,
Please contact the mailto:$webmaster>webmaster." . mysql_errno() .
": " . mysql_error() . "";
>entered into the database!\";
>>
>>Should be this:
>>} else {
>> echo \"Your Information has successfully been
>>entered into the database!\";
>> }
>>
>>HTH,
>>Jason Soza
>>
>>- Original Message -
nt: Tuesday, 4 June 2002 7:50
> To: [EMAIL 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 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-
>
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)--
--script (globals.inc.php)--
--script (register_user.php)--
Your passwords do
not match,
please try again";
}
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
l_query($query, $link_glob);
>
>
>
>
OK that did fix the problem...:)
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
ables.
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
Here's my code, teh $welcomemssg is one of the two variable store in
index.php the other one is $name
Jule
On Monday 15 April 2002 13:49, you typed on your keyboard, and you sent me
the following:
On Tuesday 16 April 2002 00:41,
65 matches
Mail list logo