I'm confused by the behavior of my ODBC connection in regard to adding single slashes.
Do all I need to do is a single AddSlashes call to any data i put into the DB, and a
single RemoveSlashes on all data I get out ? What about data that is already in the DB
which has'nt had an addslahes in it?
UNIVERSITY DIPLOMA
Obtain a prosperous future, money earning power,
and the admiration of all.
Diplomas from prestigious non-accredited universities
based on your present knowledgeand life experience.
No required tests, classes, books, or interviews.
Bachelors, masters, MBA, and doctorate (PhD
Hi John,
The essential difference between PHP and JavaScript is that PHP is
server-side and JavaScript client side. What this means is that when a
user requests a PHP page, all the functions, commands etc are run on the
server and then sent to the users machine, where as with JS the code is
effec
Hello Miller!
John Miller wrote:
> I know that this is off the subject,
yes, it is.
> but I am hoping that some would be
> kind enough to tell me what I would like to know. In java script there is
> an alert "command" that will cause a message box to popup. Is there a way
> to do
what is probably happening is that your file, page.html is setting the
variable user_name to a value at some point in the script. The URL you
gave effectively is the same as making the first two lines of the file
read
$user_name='name';
$password='password';
Hence if a subsquent line in the scrip
I know that this is off the subject, but I am hoping that some would be
kind enough to tell me what I would like to know. In java script there is
an alert "command" that will cause a message box to popup. Is there a way
to do it in php. Better information would be to tell me where I could fi
Hello!
JJeffman wrote:
> There is the "nl2br()" function too :
> // From php manual :
>
> nl2br -- Converts new lines to HTML line breaks.
> Description
>
> string nl2br(string string);
>
> Returns string with '' inserted before all new lines.
>
Sure, but never add any html tag
Try converting the ROWID to a character string first:
select rowidtochar(rowid), field1 from table1
Now you can echo it out or do whatever you would do with a character
string. There's also the Oracle function CHARTOROWID to go the other
way around.
signup wrote:
>
> On Mon, Jan 22, 2001 at
There is the "nl2br()" function too :
// From php manual :
nl2br -- Converts new lines to HTML line breaks.
Description
string nl2br(string string);
Returns string with '' inserted before all new lines.
HTH
Jayme.
http://www.conex.com.br/jjeffman
-Mensagem Original-
De: Rubanowicz
The "mysql_db_query()" and "mysql_query()" functions only return false (0)
when you have an error in your query or parameter definition, otherwise they
always return a positive result identifier. So, if you must know if is there
any valid record you should ask for the row number returned :
// Chec
Hi,
$db = mysql_connect("localhost", "root");
mysql_select_db("mydb",$db);
$sql = "SELECT * FROM employees where first = '$login'";
$result = mysql_db_query ("mydb", $sql);
echo "$result";
If I run this cose then $result always = Resource id #2 even if $login is not a mem
I'm not sure if this is my problem but it's wigging me out.
I've got a login page posting only the user_name and password vars. No
matter what it's using the same name over again.
http://.../page.html?user_name=name&password=password
When i open page.html and do echo $user_name it still doe
This file comes with the Win distribuition that you can find on the following address:
http://www.php.net/do_download.php?download_file=php-4.0.4pl1-Win32.zip&source_site=www.php.net
Best regards,
Fábio Ottolini
> -Original Message-
> From: Ingvild Segersam [mailto:[EMAIL PROTECTED]]
Thanks for all the replies. I finally made things readable. A little
easier to follow now. instead of scrolling for days :}
John
On Tue, 23 Jan 2001 [EMAIL PROTECTED] wrote:
> Addressed to: John Starkey <[EMAIL PROTECTED]>
> [EMAIL PROTECTED]
>
> ** Reply to note from John Starke
I have problems getting php running because php4ts.dll is missing. Where can
I get this file??
Ingvild Segersam
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e
> > if(! mysql_query('$sql'))
> Why the single quotes around $sql. It's a string so you shouldn't have to
> quote it at all.
It's likely the single quotes that's causing the problems now. Like perl,
single quotes in PHP are for 'absolute' strings, double quotes for
'interpreted' strings (strin
Man, do I feel dumb. My wwwuser didn't have the right privledges to add or remove
from the database.
Works fine now. Thanks for all the suggestions.
Hi. This is the qmail-send program at toye.php.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<[EMAIL PROTECTED]>:
ezmlm-manage: fatal: message already has a Mailing-List header (maybe I should
Hi. This is the qmail-send program at toye.php.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<[EMAIL PROTECTED]>:
ezmlm-manage: fatal: message already has a Mailing-List header (maybe I should
Hi. This is the qmail-send program at toye.php.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<[EMAIL PROTECTED]>:
ezmlm-manage: fatal: message already has a Mailing-List header (maybe I should
Hi,
I am trying to check for the existance of a certain value (ie $login, taken from my
first PHP page: member.php) in the "first" column of my database "mydb.
The value of "$login" is passed from member.php.
My data base "mydb" contains 1 table called emplyoees which was created as follows:
CRE
SORRY IF YOU ALREADY GOT THIS BUT I DIDN'T RECEIVE IT EVEN THOUGH I AM ON THE MAILING
LIST SO I WASN'T SURE IF IT SENT OR NOT!!
Hi,
I am trying to check for the existance of a certain value (ie $login, taken from my
first PHP page: member.php) in the "first" column of my database "mydb.
The val
Od: "magor" <[EMAIL PROTECTED]>
Temat: [PHP-DB] Problems with character sets
> Hello everybody,
>I have problems concerning character sets.I use InterBase database.
> I have data in columns with character set NONE, but the data is in fact in
> win1250 coding. I have other columns with charac
I am a beginner but did it like this, with a little help from my friends!!
$query = "INSERT INTO guests ";
$query .= "(guest_id, guest_name, ";
$query .= "guest_email, guest_time, guest_message) ";
$query .= "values(, '$name', '$email', NULL, '" .
str_replace("\n","", $message) . "
Hi,
I am trying to check for the existance of a certain value (ie $login, taken from my
first PHP page: member.php) in the "first" column of my database "mydb.
The value of "$login" is passed from member.php.
My data base "mydb" contains 1 table called emplyoees which was created as follows:
CRE
Hello!
I have just installed the Interbase 6.01 on a debian server. I compiled
he php with:
"/configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.14
--enable-track
-vars --with-interbase=/opt/interbase"
but I get this error message:
"Fatal error: Call to undefined function:
26 matches
Mail list logo