[PHP-DB] MySQL and apostrophes, interesting problem. 42082

2002-03-10 Thread Nick Patsaros
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

Re: [PHP-DB] two different MySQL connections without always select_db?

2002-03-10 Thread Clever
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:

Re: [PHP-DB] MySQL and apostrophes, interesting problem. 42082

2002-03-10 Thread Robert Weeks
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]

[PHP-DB] Re: File Upload and MySQL-Please Disregard

2002-03-10 Thread Carl E Shmidt
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

Re: [PHP-DB] Hosting - what's needed to handle 650K queries?

2002-03-10 Thread Frank Flynn
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

[PHP-DB] Mssql trusted connections ?

2002-03-10 Thread Kearns, Terry
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

[PHP-DB] login

2002-03-10 Thread its me
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

Re: [PHP-DB] login

2002-03-10 Thread Marius Ursache
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

[PHP-DB] RE: login

2002-03-10 Thread Adam Royle
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