This code works:
$diagnose = $_POST['diagnose'];
$_POST['diagnose'] = ereg_replace("\"",""",stripslashes($diagnose));
Now, I want to add these one:
$_POST['diagnose'] = ereg_replace("\'","´",stripslashes($diagnose))
How can i use...
OK, "hey" becomes \\\\\\\"hey\\\\\\\"
but, 'hey becomes
So, when the user use ' in the inputfiled, the data gets lost!
Is the any solution and answer for this problem?
I've create a background image.
My website is create within 5 frames, one top, nbottum, main, left and right frame ...
The image should be as one background-image at all the frames.
I've sliced the images and saved the parts for the different frames. At each frame, I've set the right part of the...
Hey,
At home I had a mysql server (3.23), PHP (4.2.2)and an apache server ... until the big crash :(
Now, I've saved my files at a server of a friend.
But when I run the scripts, I get the follow error:
"Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result...
This is the goodone:
//Execute query
$result = mysql_query("
SELECT * from cijferlijst
WHERE 1
AND vak = '". $vakkeuze1 . "'
");
Thx 4 all
I am using php4.2.2 and the newest version of mysql.
The database
CREATE TABLE cijferlijst (
Kwartaal int(1) default NULL,
vak varchar(5) default NULL,
cijfer1 varchar(4) default NULL,
cijfer2 varchar(4) default '-',
cijfer3 varchar(4) default '-',
cijfer4 varchar(4) default '-'...
It didn't worked ... I've tried 10 other variants, but use a variable in the update or select line still didn't worked ...
Anyone knows more about this problem?
Ok, now I've this select line:
//Execute query
$sql = 'SELECT * FROM `cijferlijst` WHERE 1 AND `vak` = \'Proj1\' LIMIT 0, 30';
$result = mysql_query($sql);
Phpmyadmin advise me to use a variable in the line like this:
$sql = 'SELECT * FROM `cijferlijst` WHERE 1 AND `vak` =...
Hmmz...disapointed, it didn't work
I create another file to test the update line. This works and I copy and past it into update2.php:
<?php
if ( $_POST[vakkeuze]>A ) { $vakkeuze1=$_POST[vakkeuze];
echo "$vakkeuze1<br>";
} else {
echo "Voer de juiste vakafkorting...
Ok, it's working now.
I forgot to remove the php.ini file in the php directory ... This file was conflicting with the php.ini file in the directory windows.
Thx 4 all
In the post above, IE6 explorer siad he couldn't find the file. But it was there ...
Now, I've setup httpd.conf again and install php as module instead of cgi in the post above...
The changes are:
Added/changed the lines:
#
# ScriptAlias: This controls which directories contain server...
Hey,
I've installed apache and php.
Apache is working very good, but php not ...
I hope you can help me to configure it to a good way.
I've done the follow steps:
In apache:
ServernameAdmin = themarti_m@hotmail.com
ServerName = 213.93.xxx.xx (my ip-adress)
Added/changed the lines...
Short question:
I've always used JDK1.1.8, now I want to update to jdk 1.2.2. So I went to http://java.sun.com/ and opened the download page.
But I can only download JDK1.1.8, and JSE en SDK?
What's the difference between them, and which file is the new JDK-software?
Ok, I know how to read some numbers in java, for example with the 'MyInput' methode...
But how can java decide if the numbers are positief (or negative) and which of the (5) numbers is the bigest number of them?
I don't expect a whole code, but just a few words, which can help me to make the...
ok, stupid of me ... the code is:
'..\index.html'
site = http://www.techcorps.org/webteacher/winexp/navigate/path.html
Close this thread and sorry for posting it ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.