As the subject say, when putting " or ' in text field, \' or \" is returned.
I'm not sure why, but it only happerns when it is returned in a input ->
text field box.
Could you tell me how to fix this.
Thank you.
Code Snip:
$nl = "";
$ascii = "$ascii";
$text_form = ereg_replace (" "
How do I get a DB table open easily?
So far, I've been using a metod that sometimes works and some times doesn't,
I just want to know the easy way to do it.
My code of what I'm doing now is below:
$db = mysql_connect("localhost","root");
mysql_select_db("misc",$db);
$result = mysql_query("
And example script i'm trying to use is below:
$result2 = mysql_query($sql2);
$row2 = mysql_fetch_array($result2);
$sql = "SELECT * FROM main WHERE id=$id";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
"Ben Houlton" <[EMAIL
Total newb question... lol, but how do I get this to work with a form...
lol, very embarasing to ask this...
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The following function converts minutes to years, monthes, weeks, days,
> hours, minutes. For instance, 61 minu
Is it posable to execute multiable queries at one time, so that I can switch
tables and switch back with ease?
I've been trying for a while to figure out a way of doing this, but with no
luck.
Any help would be appreciated.
Thanks.
- Ben
I use
echo $msg;
eval("\$msg = \"$msg\";");
echo $msg;
and it comes up with
include("menu.php");
on the live page
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> www.php.net/eval
>
Is there a way to get PHP script/code out of a DB? Becasue, when I enter PHP
code into the textbox and hit submit, and go check the page it has nothing
there with and just shows the code, e.g.
include("menu.php"); without the tags, the code I'm using to import
the DB text is below:
} elsei
I'm trying to make a PHP script that automaticly makes a link on the side
menu to the id page that was just made, under certain catagories. But I
edited my code to cleen up soem errors and all of a sudden 3 errors came up,
and I haven't been able to fix them! They are:
Warning: mysql_fetch_array():
In this code I'm tring to make it that It includes the 5 files (main, menu,
pages, add a page, images add/view) and will also be editable, the add a
page one is messed up becasue everytime I try and update it it doesnt
update! But when I go and add a page it works... So please look over my
code, Th
I'm trying to add a number from my database ($id) and add it to a number (1)
so that the link with http://x/index.php?id=#(+1) (no +1 this is just
example) has a the right id number not the one before it.
But I'm stuck on the problem where the http://x/index.php?id=0 not the
latest id numbe
The bit of my code that I'm working on is here:
if ($submit) {
if ($id) {
$sql = "UPDATE pages SET sub='$sub'
msg='$msg',name='$name',email='$email',newday='$newday' WHERE id=$id";
} else {
$sql = "INSERT INTO pages (sub,msg,name,email,date,time,newday) VALUES
('$sub','$msg','$name
I've set the SMTP setting correctly (I've checked like 50 times) but it sill comes up
with:
Warning: mail(): Failed to connect to mailserver at "mail.ihug.com.au" port 25, verify
your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in
C:\Inetpub\wwwroot\test1.php on line 6
Any ideas
How do I make it so when I log in the options such as delete message, edit message,
are viewable, but when someone else logs in they can't view it. Could someone guide me
to a tutorial or alike?
Thanks.
The MySQL mailing list is just a list where the emails people send for help
get send to EVERYONE on the mailing list so every message sent to the MySQL
mailing list gets sent to you and everyone else. It's not spam it's just a
crazymailing list idea... I joined of a day a, went to bed next morning
taken straight from google.com translation page... ( i'm not really
portuguese ;))
ei myphp Well-taken care of with what it speaks the Cellular one... it
tb has heard... to remove [EMAIL PROTECTED] of our list he answers this
email and he places to remove in them pardons the upheaval... ok?
I've tried this code on a web server and it worked, but on my localhost server it did
not work. It just looped the "ADD RECORD" text (not including database infomation).
My code is below:
Return to $sub.";
} elseif ($delete==areyousure) {
$sql = "SELECT * FROM edit WHERE id=$id";
$result =
Now I get a blank page and all the code... that I can think of is the same...
Look here:
Return to $sub.";
} elseif ($delete==areyousure) {
$sql = "SELECT * FROM edit WHERE id=$id";
$result = mysql_query($sql);
echo "Are you sure you want to delete $sub?Yes | No";
} elseif ($delete==true)
I thought it was the gobal command i tried global $submit; (etc..) earlier
today but It didn't work so could you give me an exampe of how it works
please?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
But the $id is ment to be a number sorting out each record. Not an on/off
function.
If I'm reading your message wrong sorry.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Return to $sub.";
} elseif ($delete==areyousure) {
$sql = "SELECT * FROM edit WHERE id=$id";
$result = mysql_query($sql);
echo "Are you sure you want to delete $sub?Yes | No";
} elseif ($delete==true) {
$sql = "DELETE FROM edit WHERE id=$id";
$result = mysql_query($s
When I use the if ($xxx) fuction to use the web addresses function to call
up a command it desnt work! All it does is come up with the command line
with:
}else {
if (!id && !edit) {
echo "blah blah blah";
}
}
I'm using PWS and localhost//HPPAV server.
Please help!
--
PHP
21 matches
Mail list logo