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
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.