problem. The Apache 2 module is still experimental and should not be used in a
production environment.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday, June 15, 2002 at 11:58:44 AM, Kim Bauters wrote:
> My IIS version is 5.0
Hmm, same as mine. Have a look in the master properties of the server. If it's
not there then I suggest you search the MS site for help.
--
Stuart
--
PHP General Mailing List (http://www.php.
On Saturday, June 15, 2002 at 9:05:40 PM, Nathan Taylor wrote:
> $open = fopen("file.txt","r+");
> while($contents = fgets($open)) {
> $line_array[$x] = $contents;
> $x++;
> }
?>>
This wheel exists: http://www.php.net/file
--
Stuart
--
PHP Gene
On Tuesday, June 18, 2002, 2:54:31 PM, Dan McCullough wrote:
> I need to strip out the double quotes and replace it with single quotes.
> Any help would be appreciated.
$dest = str_replace("\"", "'", $source);
--
Stuart
--
PHP General Mailing List (http:/
means "Syntax error in parameters or arguments". Looking at your code, the only
thing I can think is that it's complaining because both addresses are the same.
Try changing the CC address to something different from the primary recipient.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the Cc:
> never get the mail.
> any other thoughts on that?
Can you get a transcript of the SMTP session, specifically the line PHP sends
to the SMTP server when it gets the 501 reply?
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he Cc: line. The SMTP server is complaining
because the address contains invalid characters.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
8.html - example
2 shows how to call a stored procedure.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
{
print("$row[1] -
\$$row[2]");
}
print("");
} else {
print("No Parts Created Yet");
}
?>
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you're moving the goalposts. It's a very bad idea to
base a loop on a variable that is changed within the loop. I suggest you loop
through one string while building a second string as the return value.
On the other hand, I seem to remember seeing a regex posted on this list
recently that
s
consent to the link at any time in its sole discretion.
Or diluted down to the basic message:
You may not republish this information without written permission!
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lease post more information such as your source code
along with a full description of the problem(s) you're having including any
error messages.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
g/forum/search.php?s=&action=showresults&searchid=146348&sortby=lastpost&sortorder=descending
As for how legal it is, I'm not sure, IANAL.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday, July 15, 2002, 2:42:24 PM, Stuart Dallas wrote:
> On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote:
>> Has anybody an idea how they do this.
It would be relatively straight-forward to have a PHP script run periodically,
read from an NNTP server and add new p
done it so I don't have any examples to hand, but I'm sure there are
some examples out there. 'Ave a Google. Google is everyones best friend.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday, July 15, 2002, 6:00:44 PM, I wrote:
> You can do it 2 ways: either using the sockets or with the IMAP functions. I'm
> not too sure about sockets, but the IMAP function require the IMAP module to be
> loaded.
D'oh, forgot the link: http://www.php.net/manual/en/ref.i
> for any help.
I don't know of any others (besides getting a "real" host). But webcron.org
seems alive and kicking from here.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Could anyone tell me if there is a easy way of detecting screen resolutions
in php,
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTE
Please can someone tell me there is a nice function that can calculate the
difference between two dates. If there isn't such a function I'm sure
someone could tell me how I can do a different way.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
mber (I usually use the return value from
time()).
HTH,
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Good description. One minor addition I would suggest: That schema only
allows for one level of replies. Add a parentpostid to the posts table and
you can easily handle replies to replies to replies to replies (etc) to a
thread.
Stuart
-Original Message-
From: Kevin Stone [mailto:[EMAIL
> Does anybody have a workaround for this?
Convert all \ to / before calling basename.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Almost all the databases I work with have a table called vars. This table
consists of two fields, strkey and strval, both VARCHAR(255). I then have 2
functions defined in the global include file for the site called GetVar and
SetVar. This solution works well for me.
--
Stuart
-Original
$incfilename = "Calc".$state.".class.inc";
if (file_exists($incfilename))
include($incfilename);
else
echo "Please select a State.\n";
--
Stuart
-Original Message-
From: Jim Long [mailto:[EMAIL PROTECTED]]
Sent: 27 April 2002 20:00
To:
If $arr is your array, something like...
foreach ($arr as $key=>$val)
{
if (strlen($val) == 0)
unset($arr[$key]);
}
HTH,
Stuart
-Original Message-
From: Craig Westerman [mailto:[EMAIL PROTECTED]]
Sent: 28 April 2002 15:37
To: php-general-list
Subject: [PHP] Removing em
ount($field) - 1; $i++)
{
echo "$field[$i]";
}echo "";
}
echo "";
if (!$row)
echo "Failed";
else
{ $num = mysql_num_rows($row);
echo"equipment database has got $num data.";
}
?>
Search individual
equipment:
Main
I've installed Apache 2.0.35 with PHP 4.2.0 on both FreeBSD and Linux, and
both yield the same result. When the test.php page is accessed it returns
"" instead of actually processing it.
I have the lines:
LoadModule php4_modulemodules/libphp4.so
AddType application/x-httpd-php .php
in my
Replace the die("...") with die(mysql_error()) and the message should tell
you what's wrong.
Stuart
-Original Message-
From: Joshua E Minnie [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 20:11
To: [EMAIL PROTECTED]
Subject: [PHP] Deleting from a SQL db
Can anyone hel
Print the SQL statement $query just before you call mssql_query() - make
sure the SQL going in is what you think it is. Also, check
mssql_affected_rows() after the call to make sure something was modified.
Stuart
-Original Message-
From: Joshua E Minnie [mailto:[EMAIL PROTECTED]]
Sent
> mssql_affected_rows()
Sorry, that should be mssql_rows_affected().
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 1 May 2002 at 18:39, Randum Ian wrote:
> I want to link to a page like this:
>
> http://www.danceportal.co.uk/charts.php?wk0001-fri-18-jan-2002
>
> How do I get the information into a script?
The variable $_SERVER["QUERY_STRING"] will contain "wk0001-fri-18-j
, $searched);
$final = $original;
foreach ($searchedwords as $word)
{
$final = eregi_replace($word, "$word", $final);
}
$final = "Joe Cougar Doe";
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 3 May 2002 at 12:04, ROBERT MCPEAK wrote:
> $blah=2002-05-02;
> $thedate = date("D, M d, Y", strtotime($blah));
> $echo "$thedate";
$blah will = 1995. Try putting quotes around the date...
$blah = "2002-05-02";
--
Stuart
--
PHP Genera
you are using Apache, you can set it in a .htaccess
file.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you can do to stop them
(unless you
prevent them from reading it).
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
page and
pull out the images being used. You would be better off finding out what the reasons
are
behind the request for GIFs only. I can't think of a single reason they could give
against
which I couldn't argue a case for an alternative.
--
Stuart
--
PHP General Mailing List
On 3 May 2002 at 15:42, Miguel Cruz wrote:
> There are browsers that are still in somewhat common use that cannot
> gracefully display PNGs. Try IE 4.5 on a Mac, for instance.
In that case, use JPEGs, or am I missing something?
--
Stuart
--
PHP General Mailing List (http://www.php.ne
ectory c:\tmp exist? I would bet the farm that it doesn't.
The solution? Either create the directory or change the session.save_path entry in
your
php.ini.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 5 May 2002 at 14:12, Kyle Gibson wrote:
> Warning: Cannot execute using backquotes in safe mode in test.php on
> line 2
Your ISP has safe mode turned on which means you cannot use backquotes. Read all
about it at http://www.php.net/manual/en/features.safe-mode.php.
--
Stuart
-
curl_setopt($ch, CURLOPT_NOBODY, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_REFERER, $referer);
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$reply = curl_exec($ch);
curl_close($ch);
if ($url_parts["scheme&qu
then I can't really help but I would guess that it's
a similar situation.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 10 May 2002 at 16:07, Bert Buckley wrote:
> I would like very much to retrieve data from an
> https server using the file function, but it only
> supports an http call.
>
> 1. Can someone suggest a good alternative
http://www.php.net/curl
--
Stuart
--
PHP General Mai
On Sun, 12 May 2002 00:39:21 +0200, you wrote:
>How can I read all files in a directory, when I don't know which files are
>there?
http://www.php.net/manual/en/class.dir.php
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
27;]
and
$_SERVER['PHP_AUTH_PW']
You might want to read up on what register_globals actually does since
it's clear that you don't fully understand it yet:
http://www.php.net/manual/en/security.registerglobals.php
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
core_functions.php";
> }else{
> $core_functions =
> "http://www.domain.com/path/to/file/core_functions.php";;
> }
> require_once($core_functions);
>
If the code can get core_functions.php from your server, so can they!! A
legal agreement i
Gerard Samuel <[EMAIL PROTECTED]> wrote:
> With register_globals off, switch() has a little handicap.
> ie
> switch($foo)
> {
>
> break;
> }
>
> $foo, is now illegal/not set.
Why can't you just use switch($_POST['foo'])? Or did I le
Gerard Samuel <[EMAIL PROTECTED]> wrote:
> foo can also be $_GET['foo'] in the same script
In that case use $_REQUEST['foo'].
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
notoriousvic_ca <[EMAIL PROTECTED]> wrote:
> Is there anyway I can get all the file and directories in a specific
> directory?
http://www.php.net/readdir
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stuart Dallas <[EMAIL PROTECTED]> wrote:
> notoriousvic_ca <[EMAIL PROTECTED]> wrote:
>> Is there anyway I can get all the file and directories in a specific
>> directory?
>
> http://www.php.net/readdir
And I'd suggest that you read this to avoid sarcast
On 17 May 2002 at 12:23, Jeff Field wrote:
> $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
It's a shortened version of the if...else construct. As in...
condition ? this_if_true : this_if_false
--
Stu
e what I'm aiming at):
This is usually done with Javascript...
http://www.w3.org/TR/html4/loose.dtd";>
Download
The download should start automatically. If it does not, right
click the following link and choose "Save as ..." Download MyFile
--
Stuart
so, make sure the account Apache is running as has the permissions
required to perform that copy.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ile) Apache will
ignore the query string.
> This really seems to be buggering my attempt at passing directories in
> variables, but it seems that a lot of scripts must do this, am I just
> doing something stupid?
I gave the same answer when you asked on the httpd mailing list. Have I
misund
t; review the source code of the mail().
Before you do that you might want to look at what is already available. Have
a Google or at least look at the following resources...
http://www.zend.com/codex.php?CID=11
http://www.phpclasses.org/
In other words, this particular wheel already exists!
[EMAIL PROTECTED] wrote:
> $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1";
>
> I believe that it is an error in the SQL statement
Nope, looks fine. Show us the previous few lines, the error is probably in
those somewhere.
--
Stuart
--
PHP General Mailing List (http
e
data part of the request which is empty for non-POST requests.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ed Gorski <[EMAIL PROTECTED]> wrote:
> lol.what does that return?
Usually a more knowledgable programmer occasionally with a sense of
acheivement attached.
--
Stuart
> At 09:08 PM 5/29/2002 -0700, r wrote:
>> That may and may not work, I would suggest you add the RTFM()
w.google.com/search?q=php_gd.dll
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3,4...
>
> This doesn't works...
>
> $array["untitled_1.jpg"][] = 3 seems to overwrite
> $array["untitled_1.jpg"][] = 0 and then $array["untitled_1.jpg"][] = 4
> overwrites $array["untitled_1.jpg"][] = 3...
>
> How should I sol
get to change the LoadModule line for PHP in
httpd.conf to load php/experimental/apache2filter.dll instead of
php/sapi/php4apache.dll.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t; variables were private to each instance, however, this seems to be acting
> like a static var.
You need to specify $this->conn in each mysql_* function you call otherwise it
will be called against the last connection made.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To u
On Friday, May 31, 2002, 5:17:49 PM, you wrote:
> Can you send the code that is failing to the list - it will help in working
> out the problem...
And include your platform details (OS, PHP version, etc).
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
> ask the user to re-enter this information at every screen?
Sessions: http://www.php.net/session
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rns the ID generated for an AUTO_INCREMENT column by the
previous INSERT query"
In other words, it returns the "id" fields value.
Don't take this the wrong way, but you clearly didn't look this up in the
manual. This list is to help with real problems, not manual looku
e in add.php. Anyone give me a hand on this naive question?
You probably have register_globals turned Off in your php.ini file. If you do
then you can either turn it on or use the recommended method of accessing
POSTed variable: $_POST['firstname'].
--
Stuart
--
PHP Gene
al/scratch-1/ww220/Apache1.3/htdocs/test/add2.php on line 5
Try this...
$query = "INSERT INTO friends (id, firstname, surname) values
(nextval('friends_id_seq'), ".$_POST['firstname'].", ".$_POST['surname'].")";
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t; I got error:
> Warning: pg_exec() query failed: ERROR: Attribute 'andras' not found in
>/local/scratch-1/ww220/Apache1.3/htdocs/test/add2.php on line 6
> ERRORERROR: Attribute 'andras' not found
Show us what is on line 6 and a couple of lines either side of it.
I suggested in a previous message. Change
the $query = line to the following...
$query = "INSERT INTO friends (id, firstname, surname) values
(nextval('friends_id_seq'), ".$_POST['firstname'].", ".$_POST['surname'].")";
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday, June 1, 2002 at 5:37:37 PM, you wrote:
> Sorry.
> I restared apache and php.ini came into effect.
If you're going to run with register_globals on you should make sure you
understand the implications:
http://www.php.net/manual/en/security.registerglobals.php.
--
Stuar
e gonna kick yourself (I did!). You need to enclose the
two values in quotes, like so...
$query = "INSERT INTO friends (id, firstname, surname) values
(nextval('friends_id_seq'), '".$_POST['firstname']."', '".$_POST['surname']."')";
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday, June 1, 2002 at 6:29:59 PM, you wrote:
> Does anyone know of a function within PHP that will convert a hexadecimal
> string (without the leading 0x) into an integer?
FFS!! http://www.php.net/hexdec
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsub
riables the corect way to do this or is
> there a better way?
Not really. Sessions are the established way of persisting data across page
requests.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday, June 3, 2002 at 3:37:48 PM, you wrote:
>$dir = preg_replace('/\.\.\/?/', '', $dir);
Surely a regular expression is overkill for this? It would be more efficient to
use str_replace()...
$dir = str_replace('..', '', $dir);
--
ing it in commercial
projects just yet.
So, if anyone knows of one please direct me to where I can find one.
Thanks in advance
Stuart Schoneveld
www.xs4all.nl/~stuartmx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to access data sent to PHP script via POST. But I can't seem
to find any documentation on how to do this. Only $HTTP_POST_VARS, but
that's not what I want.
Anyone know how?
Thanks
Stuart Schoneveld
www.xs4all.nl/~stuartmx
--
PHP General Mailing List (http://w
Has anyone sucessfully used these two versions together?
I get the following error message from apache when I try & start it ...
Syntax error on line 224 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: un
Yasuo Ohgaki wrote:
> It works fine.
> You probably need to specify libpq location explicitly.
> --with-pgsql=/your/pgsql-7.1.2/somewhere
I have, several times.
and I did a rm config.cache, reconfigure & make clean in between each one
too.
--
PHP General Mailing List (http://www.php.net/)
T
I have recently upgraded PHP to the latest version, and also upgraded
Postgres to the latest version. PHP worked fine after it's upgrade, but
after the Postgres upgrade it is now broken.
I have recompiled & installed PHP, but when I try & start Apache, I get the
following error message:
Synta
x27;t find out after digging through books
and googling, is how / where to actually declare the
variable.
Seems most of the examples use a variable that is set
already by the programmer, not by the user.
Stuart
--- Stuart Felenstein <[EMAIL PROTECTED]> wrote:
> I cant figure out if
; [4] => ) 1
FYI - The skills is a string, skys and slus ints.
Also I had only filled in 3 of the 5 for each.
Thank you
Stuart
--- Robby Russell <[EMAIL PROTECTED]> wrote:
> On Sun, 2004-10-17 at 09:53 -0700, Stuart Felenstein
> wrote:
> > I have 3 arrays. 3 for 3 fiel
They are related in the sense that they are part of
one record in the database.
Fields
Skill YearsUsed LastUsed
When you say array of arrays you are referring to a
multi-dimensional ? I'm not sure what you mean by
are the [0] related.
Thank you,
Stuart
--- Robby Russell <[EMAIL P
ng session variables:
$_SESSION['skills'] = $_POST['skill'];
$_SESSION['skys'] = $_POST['sky'];
$_SESSION['slus'] = $_POST['slu'];
My problem is I do not know how to get these into the
database with one query.
Hope this is clearer.
Thank
ky'];
The second dropdown is:
$_SESSION['slus'] = $_POST['slu'];
So I need to grab the input and
enter into database
where each set of skill, sky , slu is a new record.
I hope this is clearer.
Stuart
--- John Holmes <[EMAIL PROTECTED]> wrote:
> Stuart Felen
N['slus'] = $_POST['slu'];
It looks like the loop above is using the $skills
array to advance through the other arrays ?
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wish I had better news.
Warning: Invalid argument supplied for foreach() in
/home/lurkkcom/public_html/TestMultiTrans2.php on line
90
INSERT INTO LurkProfiles_Skicerts (ProfileID,
SkilCerts, NumYear, Lused) VALUES ()
line 90: foreach($skills as $key => $skill)
To confirm :
I changed to this:
t here and for
hanging in.
Graham, thank you for continuing to help me on this
issue. You are right about manual, and I have been
reading the manual along with some PHP / MySQL books.
I actually have solved a few things on my own. ;)
More reading is in order!
Stuart
--- Graham Cossey <[EMAIL PR
Sorry about the two lists. The echo's are fine. The
problem was iterating through the 3 arrays.
Stuart
--- Graham Cossey <[EMAIL PROTECTED]> wrote:
> Stuart, now I'm confused.
>
> You seem to be posting slightly different versions
> of problems relating to
>
n top that checks all the submitted form
values, or pepper throughout all the transactions ?
Hope my question is clear and am open to any
suggestions or ideas.
Thank you ,
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
otect
me from things like "sql injections" ?
2b- Do selects (menus, dropdowns) need to be validated
for string content. aka, can crafty hackers turn
these into a way to enter some funky data ?
Thank you ,
Stuart
--- Graham Cossey <[EMAIL PROTECTED]> wrote:
> Personally I would do as y
Yes, this is a great reminder, as I thought about it.
Man, can one form be so time consuming ? :)
Stuart
--- Graham Cossey <[EMAIL PROTECTED]> wrote:
> You probably also want to check
> somehow that page2.php
> is actually being called from page1.php and not by
> any other
there a way to search for pronouns.
Last, I guess if I had an un-average formatted resume
it would not work as well.
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uot;skill[]"]))?$_POST["skill[]"]:"") .
"",true,true,true,true,"",false,1);
I can't seem to differentiate between the the elements
because they are all labeled skill[]
So basically validation isn't doing anything .
I'm thinking of findin
My problem is not related to the insert or iteration.
It's related to the validaton of those elements:
skill[]
skill[]
etc.
Clearer ?
Stuart
--- Graham Cossey <[EMAIL PROTECTED]> wrote:
> Not sure I really know where you have the problem,
> but I am assuming you are
> try
Believe it or not I had just thought of doing a
foreach with the validation.
I'll see how it goes.
Stuart
--- Graham Cossey <[EMAIL PROTECTED]> wrote:
> Maybe you would like to post your validation code
> then.
>
> I (we) do not know where the line:
>
>
(((iss
e validation is because
it's part of a class, so what exists in the page is
only part of the code.
Stuart
--- Brent Baisley <[EMAIL PROTECTED]> wrote:
> I think I might know what you are trying to do. You
> want to have a
> "name" associated with the skill (or s
Yes I just found that out :).
Back to the drawing board!.
Stuart
--- Brent Baisley <[EMAIL PROTECTED]> wrote:
> I thought you were using checkboxes based on your
> true/false. So the
> user is actually typing in skills?
>
> Not sure where you are going with skill[0]
$_SESSION['slus'][$key]})";
//$result = mysql_query($query);
$res6 = run_query($query);
echo $query;
}
I understand that in the insert statement I need not
repeat $_SESSION.
The rest though is fuzzy.
It was working, now I'm getting some really odd
behaviour, in that, unless i fill in every field in
the form, I get a mysql syntax error.
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You mean why do i have $_SESSION['skills'] in the
foreach ?
Stuart
--- Andre Dubuc <[EMAIL PROTECTED]> wrote:
> Hi Stuart,
>
> I haven't followed your thread too closely, but I
> did see something that might
> be the cause of your problems:
>
> [sni
4,3)INSERT INTO LurkProfiles_Skicerts (SkicertID,
ProfileID, SkilCerts, NumYear, Lused) VALUES (null,
39, 'd', 5,4)INSERT INTO LurkProfiles_Skicerts
(SkicertID, ProfileID, SkilCerts, NumYear, Lused)
VALUES (null, 39, 'e', 6,5)your insertions were
successful
> }// end if ($skil
#x27; ...
and below "end if ($sky != '')
> foreach($skills as $key => $skill)
{
if ($skill != '' && $skys[$key] != '' &&
$slus[$key] != '')
{
$query = "INSERT INTO LurkProfiles_Skicerts
(SkicertID, ProfileID,
401 - 500 of 1126 matches
Mail list logo