Hi all,
I got the error " Constraint Violation " when I did an "INSERT" .
Gone thru the code umpteen times but to no avail..Wondering where my
error was??...Below is a snip of the block of code:
$db = DB::connect ($dsn); if (DB::isError ($d
elivered-To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 10 Dec 2003 10:37:10 +0100
From: Sophie Mattoug <[EMAIL PROTECTED]>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3
X-Accept-Language: fr-fr
MIME-Version: 1.0
To: [EMAIL P
AIL PROTECTED]>
Date: Wed, 10 Dec 2003 10:37:10 +0100
From: Sophie Mattoug <[EMAIL PROTECTED]>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3
X-Accept-Language: fr-fr
MIME-Version: 1.0
To: [EMAIL PROTECTED]
References: <[EMAIL PROTECTED]>
In-Repl
[EMAIL PROTECTED] wrote:
Hi all,
I am creating a user form whereby I will do an "INSERT" , "SELECT" , "UPDATE"
and of course "DELETE" for the form. Right now I am trying to create a form
whereby when user choose to update their info, they wil be directed to a form
where the fields region ar
Paul Duggan wrote:
if I create a text box:
how do I go about extracting a surname from a mysql database?
will it be something along the lines?
select firstname,surname
from employees
where surname = textbox.surname;
"SELECT firstname, surname FROM employees WHERE surname =
'{$_G
I can tell you for France :
zip code : 5 digits (may begin by '0')
state : not relevant
phone number : 10 digits or +33 and 9 digits
Rankin, Randy wrote:
I have a form which captures US addresses ( address, city, state ) and
telephone numbers ( 10 digit ) and am writing this data to a MySQL table.
Jay Blanchard wrote:
[snip]
Is there anyway to use CHMOD:
chmod ("/somedir/somefile", 0755);
but have it set all files, folders etc to the CHMOD setting I want?
I have a folder, and within that, I wanna quickly, jsut set it all to
CHMOD 777.
all sub DIR's and files etc...
can it be done simply
Jay Blanchard wrote:
[snip]
I am running php as an apache module, which is why I used 'START' in
exec("START http://blablalga";.
Not sure if this is the correct way of doing it but I cannot use -q with
start.
[/snip]
What is it that you are trying to accomplish? Then perhaps I can better
help.
Eve
le is always (please, other list-members, tell if I'm wrong) faster
than extracting from a database.
Hope this helps,
--
Cordialement,
-------
Sophie Mattoug
Développement web dynamique
[EMAIL PROTECTED]
---
--
PHP General Mailing List (http://www.ph
See www.php.net/passthru
Karam Chand wrote:
Hello
I have got an app wherein you need to pass a name as
the first parameter and it will output that is cout <<
a registraion code for my app based on the name.
I would like to give a web based interface wherein a
user can give his name on the for
Would it be possible you have a problem with line-feeds while uploading
from win ti linux ?
--
Cordialement,
---
Sophie Mattoug
Développement web dynamique
[EMAIL PROTECTED]
---
See Kok Boon wrote:
Hellox experts..
I am making a quiz for a
s few queries to the database
as possible. Is that a correct assumption, or am I wrong there?
Totally wrong ! It's always better to have maximum work done by MySQL
Hope this helps,
--
Cordialement,
-------
Sophie Mattoug
Développement web dynamique
[EMAIL
You can do something like
$str = "'".implode("', '", $arr)."'";
$query = "SELECT * FROM table WHERE id IN ($str)";
Hope this helps,
--
Cordialement,
---
Sophie Mattoug
Développement web dynamique
[EMAIL PRO
The French php community has its site already :
http://www.communautephp.com. Myabe it can give you some ideas...
Chris Shiflett wrote:
PHP has one of the largest developer communities in the world, yet we have
no community gathering place like those you can find for other languages
(Perl has ht
Sophie Mattoug wrote:
Adam i Agnieszka Gasiorowski FNORD wrote:
I'm trying to develop a regex for matching
with preg_match_all, I want to match such things
like image name, image alt text, image title in
construct like this:
html...
text
html...
The rexex as for n
d?
Sincerely
Victor
This is a perfectly normal behaviour ! See www.php.net/include to
understand what this function does. (comparing to www.php.net/require)
Hope this helps,
--
Cordialement,
---
Sophie Mattoug
Développement web dynamique
[EMAIL PROTECTED]
--
gt;", $your_text, $img_array);
$i = 0;
foreach ($img_array as $img) {
while (ereg("^(.+)=\"(.+)\"", "", $img, $regs))
$images[$i][$regs[1]] = $regs[2];
$i++;
}
Hope this helps,
--
Cordialement,
---
Sophie Mattoug
Développement
Shaun wrote:
Thanks you for your replies,
is there a reason why i couldn't use the following?
$_POST = $_POST;
You want to assign to the $_POST array of the third page the value of
the $_POST of the seconde one ? You cannot do the way you wrote because
it's not on the same page !
--
PHP Gene
foreach ($_POST as $k => $v) {
//everything you want to do
}
Shaun wrote:
Hi,
is it possible to capture $_POST variables sent from a previous page so i
can send them on to the next page?
Thanks for your help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
See these pages www.php.net/fopen and www.php.net/file
good luck!
Nitin wrote:
hi all,
I've a situation, where i want to supply some data to my script, which is dynamic and is available on a web page. How can i fetch that particular data from a page, if there's a way...
Thanx in advance.
Nitin
Joseph Szobody wrote:
Folks,
I'm taking some user input, and creating a folder on the server. I'm already
replacing " " with "_", and stripping out a few known illegal characters (',
", /, \, etc). I need to be sure that I'm stripping out every character that
cannot be used for a folder name. Wha
If you do phpinfo(), do you see in the section names "*Configure
Command*" this directive: "--with-mysql=something" ? If not, you must
re-compile PHP lwith MySQL support
Binay wrote:
Hi all!
Its really strange/weird problem for me.
it says:::
Fatal error: Call to undefined function: mysql_co
Wouldn't it be possible to stop this troll ? Or go on, but in private
between people who are interested by this matter...
Thanks
Jay Blanchard wrote:
[snip]
If you would stop using M$ Outlook and switch to a better
mail client that supports mailing lists, your problem would
be solved.[/snip]
pe this helps
--
Cordialement,
-------
Sophie Mattoug
Développement web dynamique
[EMAIL PROTECTED]
---
$id = $myrow ['id'];
echo"Error! There is another row in the database with a rating
value of $rating\n
You must first edit the row with a rating of
to fill that form for me. Would that be possible? Are
there any other solutions?
"Sophie Mattoug" <[EMAIL PROTECTED]> skrev i melding
news:[EMAIL PROTECTED]
Anonymous wrote:
I was just wondering if it's possible to get a PHP script to fill a form
for
you? You
Anonymous wrote:
I was just wondering if it's possible to get a PHP script to fill a form for
you? You see, I'm trying to make PHP fetch a password protected website for
me and there's a form with username and password that protects it.
Can anyone help me? Perhaps give me another sollution?
ech
And mly opinion is it's _really_ _very_ useful (I just sent my message
to someone instead of the list! Gr Annoying!)
Sophie Mattoug wrote:
It's the way we do on [EMAIL PROTECTED], and everything is fine !
David T-G wrote:
Thomas --
...and then Thomas Svenson said...
Just a stupid idea : are you sure you have '>' in your text and not '>' ?
Scott Fletcher wrote:
I thought about that also, so I took your suggestion and tried it. Still
doens't work... I tried those...
"\]]>";
"\]\]>";
Scott F.
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL P
The way I do is, on the result page, to create a variable (for example
$done) and I put to into the session. So if this variable already
exists, I don't re-execute the form treatment code.
Hope this helps
--
Cordialement,
---
Sophie Mattoug
Développement web dyna
$i = 0;
foreach ($fruit as $k)
if ('prange' == $k)
$i++;
(The result is $i, of course)
Jeff McKeon wrote:
How would I count the number of elements in an array that had a certain
value?
In other words, if I have
$fruit = array(orange,orange,apple,bananna,orange,apple,pear);
How could I get th
Jay Blanchard wrote:
Or colons. It is a Bad Practice[tm] to use any special characters in
user names and/or passwords. It is not universally allowed from OS to OS
I disagree with this : special characters are useful to have better
passwords (more difficult to crack), but as apache stores the so
I think I can remember semi-colon is not allowed in apache logins or
passwords...
Chandu Nannapaneni wrote:
hello all ,
I'm able to get successfully http authenticated from my php scripts
Ex :
$header = "POST /myscript.php HTTP/1.0\r\nAuthorization: Basic ";
$header .= base64_encode("$us
Maybe you can try this
for ($letter = 'A'; $letter++; $letter <= 'Z')
echo "$letter\n";
Hope this helps
Steve Buehler wrote:
I am using PHP 4.3.4 and am trying to come up with a function that
will step through the alphabet so that I get a menu/links that can be
clicked on like below:
A
B
C
etc..
33 matches
Mail list logo