I'm working with a simple form which submits field
data to a MySQL database. This is for the purpose of
generating a dynamic news page for my site.
Interestingly enough I've found that any time I try to
submit data that contains an apostrophe ' it gives
me an error and will not send the data
What about a function
function nameyouchoose ($query,$link) {
if ( ! isset($query) || ! isset($link) )
return;
mysql_selectdb($link);
return mysql_query($query);
}
- Original Message -
From: PHP freak [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent:
See the manual at php.net:
addslashes()
stripslashes()
I've found it easier to just turn on magic-quotes in the php.ini file
This is all covered at php.net
Robert
- Original Message -
From: Nick Patsaros [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sorry , I accidentally posted the same thing twice. Just diregard this one.
Carl E Shmidt [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have an admin site where users can upload files. Information about the
file like file name and song name are stored in a
You actually have several options here and some things could complicate the
issue too.
A previous poster suggested that 36 page views a second would be
satisfactory - this sounds reasonable but it's also my experience that in
the Windows world the way the systems tend to fail is to become
How does one use trusted connections with mssql_connect()
?
Also, the manual says something about an interfaces file. Where do I find
this? Where is this interfaces file documented?
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
there is a page that when user go to need to be looged in,so it automaticaly go back
with him to loggin page but after login i want him to go back to the page he was
in.how?
using history()? and how.
thanks guys
Rehab M.Shouman
try header(Location : http://the.page.where.you.want.to.return );
(search in phpmanual)
its me a écrit :
there is a page that when user go to need to be looged in,so it automaticaly go back
with him to loggin page but after login i want him to go back to the page he was
in.how?
using
If the variable $SCRIPT_NAME does not suit your needs, try the other
environment variables here:
http://www.php.net/manual/en/language.variables.predefined.php
Adam
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php