David Banning wrote:
>
> I am working with php-mysql
> and am inserting into mysql using a NULL value,
> which allows mysql to auto-insert (increment)
> a number - how could I find out what the value was
> mysql inserted, say on the next line of code after the insert?
http://www.php.net/manual/e
I am working with php-mysql
and am inserting into mysql using a NULL value,
which allows mysql to auto-insert (increment)
a number - how could I find out what the value was
mysql inserted, say on the next line of code after the insert?
--
PHP General Mailing List (http://www.php.net/)
To unsub
<[EMAIL PROTECTED]> wrote ...
> I am creating a web site which allows users to post projects and then
> others to place bids. I am setting up two tables in MySQL 'Projects'
> & 'Bids' my problem is how best to cross reference. What I was
> thinking of doing is creating a number of fields in the Pr
still did not work. Keep returning the same error when I do this:
$HotelName = mysql_fetch_row($resultHotel,1) or die(mysql_error());
And once again I am very sure there is data in the table.
and the error keep saying that : 1 is not Mysql index.
I don't see why? can anyone tell?
cheers
Jack
[EMA
php-general Digest 25 Jan 2001 06:45:47 - Issue 475
Topics (messages 36451 through 36574):
->
36451 by: Karl J. Stubsjoen
36452 by: Cal Evans
36454 by: Karl J. Stubsjoen
36458 by: Joe Stump
36459 by: Chris Lee
36460 by: Cal Evans
Re: mysql_fe
PHPBuilder.com has an article on this:
http://www.phpbuilder.com/columns/rod2221.php3
--david
> -Original Message-
> From: Sefton [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 25 January 2001 4:41 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How do you do this?
>
>
> Hello,
>
>
Hello,
I am still new to PHP but so far, I am getting things sorted reasonably ok
with some great from this group and other sites.
I have a MySql Database, that is working great, but when my results are
returned there is alot of information.
How do you display say only 15 results when doing a q
I want to get the result from first row (the one next from ID field) of the
table using
$HotelName = mysql_result($resultHotel,0,1) or die(mysql_error());
A suggestion:
Why don't you use mysql_fetch_row or any other function that reaches
beyond just getting 1 field?
this would be easier per
or you download the PDF manual, and search it as well...
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=
> -Original Message-
> From: Hrishi [mailto:[EMAIL PROTECTED]]
> Sent: Wedne
I want to get the result from first row (the one next from ID field) of the table using
$HotelName = mysql_result($resultHotel,0,1) or die(mysql_error());
// Note that there is data in the table for sure
and I got the error back said
Warning : 1 is not a Mysql result Index .. ( and point to t
go here :
http://www.php.net/tips.php
it will turn your browser into a search machine. or, get the toolbar
thingee from google :
http://services.google.com/navclient/welcome.html
it is FAR superior then the windows find thing as it highlights words.
the manual everyone is talking abo
$array[0] will be the lang_pref and $array[1] will be the
currency_pref.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"
Can anyone help me I'm trying to read two results from a function by passing
them out via an array but I'm not sure how to access them once I have done
that. In the PHP manual it shows a list call which I can't seem to even find
what the hell it does the code below runs without any errors but does
why dont you download the BIG one-file manual compilation from
http://www.php.net and use the find t0ol in your web browser ?
just my $0.02
---
Yeah, there are more important things in life than money, but they won't go
out with you if you don't have an
The online manual is searchable. Hence the big "Search" button.
But if you don't like that and prefer a Windows-like searchable thing,
well then just download that. It is listed right there on:
http://www.php.net/docs.php
-Rasmus
On Thu, 25 Jan 2001, Jamie wrote:
> I'm one of those ppl wh
Hi,
I am creating a web site which allows users to post projects and then others
to place bids. I am setting up two tables in MySQL 'Projects' & 'Bids' my
problem is how best to cross reference. What I was thinking of doing is
creating a number of fields in the Projects table...
Bid1
Bid2
The PHP manual online is searchable.
If you are reading the HTML version on your local machine, doesn't
your browser have "find"?
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
- - - - - - -
I'm one of those ppl who find it hard to sit and read documentation
especially manuals like the PHP one - presented HTML with no inbuilt search
functions. Being a fairly novice programmer and more of a designer I'm not
even that familiar with the programming terms to figure out what sections to
fi
I did try mysql_error() to see waht exactly is my problem and here hwat I
really need to know. My sniplet was all correct about using last_insert_id()
and the message from mysql_error(0 tells me that "no selected database".
Although I did use mysql_select_db already and I am sure there is nothing
you know Jacky, there's another, less cool and less reliable way to get the
last inserted id:
SELECT id FROM table ORDER BY id DESC;
it will sort them all giving you the biggest id *number* (not what mysql
keeps) and you can keep it for as many milliseconds your script will run
more...
So if no
I run about 8 Cobalt RaQ3 and RaQ4 boxes,
and this is the installation procedure that always works for me.
Don't use the Cobalt RPMs. They're bad & out of date.
-
GET THE SOURCE TARBALLS for MySQL and PHP4
from the command line:
lynx h
>At least you're not sitting in high school calculus and actually
>understanding everything on the board, but not being able to use any of it
>because Texas Instruments is the only company that's figured out how to do
>algebraic manipulation, and you can't exactly run a server on your
>calculator
> Ah, the good ol' days of sitting in college Match classes not
understanding
> all those letters on the chalkboard. :-)
At least you're not sitting in high school calculus and actually
understanding everything on the board, but not being able to use any of it
because Texas Instruments is the onl
$sql1 = "insert into firsttable (firstname, lastname)
values('Jack','Chan')";
$resultsql1 = mysql_query($sql1);
Add ... or die(mysql_error()) to the end of that line.
$sqlLastID = "select LAST_INSERT_ID() from firsttable";
$resultlast = mysql_query($sqlLastID);
Add the same thing here.
$FirstL
You can pass their user_id in the URL as a GET instead of hidden FORM.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: <[EMA
> &Ggr;&egr;&igr;&agr; &sgr;&agr;&sfgr;,
>
> &ggr;&igr;&agr; &tgr;&ogr;&ugr;&sfgr; &egr;&ngr;&dgr;&igr;&agr;&phgr;&egr;&rgr;&oacgr;&mgr;&egr;&ngr;&ogr;&ugr;&sfgr; &dgr;&eegr;&mgr;&igr;&ogr;&ugr;&rgr;&ggr;&eeacgr;&sgr;&agr;&mgr;&egr; &mgr;&igr;&agr; &egr;&lgr;&lgr;&eegr;&ngr;&igr;&kgr;&eeacgr;
> &l
> I have a client uses Meeting-Pro database. Is there any API I can use
with
> PHP that will allow me to interact with Meeting-Pro db?
If Meeting-Pro does ODBC, start looking for ODBC drivers/bridge on
openlinksw.com and easyodbc.com (.org?) etc.
If Meeting-Pro does not do ODBC, you probably wi
> 1. login page has username and password text boxes and a link to my https
> login.php page.
If you're trying to keep the username/password safe in SSL, both the
receiving login.php *AND* the page with the FORM in it need to live on the
secure server.
> 2. after submit, login.php starts a sessi
http://mysql.org should have documentation a date_format() function or
something like that somewhere in there.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
> I have this code in a php script, which takes all pixels from a PNG image
> and produces a second "image"
> with random numbers in HTML format this time. (an example can be found at
> http://www.cyprusnews.org/sub/prog2.php).
>
> Instead of getting ALL shades of red from the pallette, I get onl
I think you can get the SDK from adobe.com
Search for "fDF" I think.
You may wish to specify your OS in your next plea, so people can help more.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: h
> //echo $test."";
> "//" . Without the remark, the code work but I get the error message
> stating
>
> Warning: Cannot add header information - headers already sent by
(output
> started at test.php) in test.php on line **
Yes.
A header is called a header because it come
I don't think I can use mysql_insert_id() because the ID field in the tables
are all BIGINT Auto_Increment and I saw that in the manual, it said
mysql_insert_id will not work corerctly with this type of data.
I hope I am wrong though. But if it is as the manual said, what else could I
do?
Direct q
remove the result - so just type $id = mysql_insert_id() and it should work
fine.
--Joe
On Thu, Jan 25, 2001 at 10:21:17AM -0600, Jacky@lilst wrote:
> Hi people,
> I got here the syntax that is suppose to get the id from the "just inserted" record
>and store it in value, did not work so far an
Hi people,
I got here the syntax that is suppose to get the id from the "just inserted" record
and store it in value, did not work so far and I cannot see what is wrong in there,
can anyone give me a hint what is wrong here? ( And the reason I did not use
mysql_insert_id here is because the ID
Hello
Can someone tell me the present status of debugger_on( ) function?
Does it still exist? the documentation says it does!
Is there someone who is really using it?
Thanks in advance
Tarique
--
=
B2B Application Providers
http://www
I got here the syntax that is suppose to get the id from the "just inserted" record
and store it in value, did not work so far and I cannot see what is wrong in there,
can anyone give me a hint what is wrong here? ( And the reason I did not use
mysql_insert_id here is because the ID field at my
Hiya,
I have a secure area on my site which users log into, once logged in all
areas are linked together but I use a hidden form to authenticate, it works
great but the only problem is if refreshed it makes the user log in again,
just wondering if there are any other decent ways to authnticate
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> I use PHPED (www.phped.com). It has some bugs but I like it. What is
> important that it has online manual (F1 clicked on word you search for)
EditPlus can do that if you have the manual in winhelp format. :-)
--
John R. Marshall - W
I'm trying to read the contents of a directory and it's subdirectories. I
use w while loop with readdir($handle) and then an if statement with
filetype($file)=="dir" and that works that far. The contents of the
subdirectory is listed. After that breaks out of the if statement though,
the script go
The function is mysql_errno() not mysql_errorno()
-Rasmus
On Wed, 24 Jan 2001, CC Zona wrote:
> I use mysql_* functions all the time, PHP was definitely compiled
> --with-mysql, yet for some reason I'm getting "Fatal error: Call to
> undefined function: mysql_errorno()" for this one mysql fun
I use mysql_* functions all the time, PHP was definitely compiled
--with-mysql, yet for some reason I'm getting "Fatal error: Call to
undefined function: mysql_errorno()" for this one mysql function. Ex.:
mysql_query($query,$connect); //echo of $query is successful at
commandline, and $con
can anyone help me figure out a regular expression to find the value of a tag element?
for example:
so in each of the above i need to find either "my value" or "value"...
i tried this but it wont work for every situation:
ereg("element[ ]*[=][ ]*[\"
Hello,
for whom it may concern: We created a greek mailing
list for PHP questions, discussions etc. Many people
lack of fluency of the english language (including
me =) so this list was a MUST.
Subscribe by sending an email at:
[EMAIL PROTECTED]
Thanks,
Demetris Glezos
--
fyi, that little snippet that rasmus presented is being used incorrectly,
i think you are actually wanting :
if($retrn{strlen($retrn)-1} == '&')
as $str was just the string which in this case seems to be $retrn . also,
i think this tutorial will help you with strings :
Using Strings
try
$retrn = "AASIDFIFJ&";
-Original Message-
From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 4:17 PM
To: PHP Mailing List
Subject: [PHP] Finding an '&'
Should this correctly find '&' or is & and special searching character?
# looking for an & at
Should this correctly find '&' or is & and special searching character?
# looking for an & at the end
$retrn = AASIDFIFJ&
if($str{strlen($retrn)-1}=='&')
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
That is a very useful looking link and it has gone into to
my "very useful PHP links" box. I will point out that
"codecharge" and "phpedit" don't appear to be on that
list ...
At 06:19 AM 1/24/01 -0800, Steve Edberg wrote:
>At 4:40 PM +0600 1/24/01, Tshering Norbu wrote:
>>Here is collection I go
Prehaps you can rename the database file in mysql/bin
ie. database_name.sql to new_database_name.sql and that will work?
___
This email may contain confidential and/or privileged information for the
sole use of the intended recipient. Any review or distribution by ot
Could it be the lack of $?
It should be
$retrn =. "$VariableName\=$VariableValue";
I do that all the time. The syntax is so close to javascript that when I'm
typing I often leave out the dollar sign. Especially when I have php and
javascript in the same file.
On Wednesday, January 24, 2001 4:
proposed IF:
>> if(($fname) && ($lname) && ($email))
Alex:
> if (isset($fname) && isset($lname) && isset($email)) {
> echo "test";
> I believe the parens in your code don't do anything. anyway, best o' my
> knowledge that's the way to do it.
First IF tests whether the vars are 'true', Alex's
well, first off, you should md5 the cookie value or something to avoid
having the value correlate directly with your system values.
I like to use at least one level of "shift" in apps, to make sure that user
input is never taken verbatim.
-alex
--
Alex Black, Head Monkey
[EMAIL PROTECTED]
The
Freak'n Duhh! My eyes are still blury to PHP *obviously*.
Thanks!
So $QUERY_STRING eh? I'll look that one up.
Karl
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
Cc: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, Ja
Karl,
it's .=
(read the fine manual ;-) )
> retrn =. "$VariableName\=$VariableValue";
> retrn =. "&";
Variables in PHP need a $dollarsign. Money makes the world go round
Chris
Send reply to: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
From: "Karl J. Stubsjoen
you cannot independently control the bottom scrollbar. if you want to get
rid of it, find the problem in your table code, or if you layout is just too
wide, make it less-wide :)
I wish I could control that too, but nay.
-alex
--
Alex Black, Head Monkey
[EMAIL PROTECTED]
The Turing Studio, Inc
I want to set a link to download an email-attachment, but
I don't know where to point the link to get the
attachment - I am only able to view an attached image or text!
--
**
* Jochen Kächelin*
* Ihr WEBberater - Werbeagentu
if(($fname) && ($lname) && ($email))
{ echo "test"; }
>
> Is there an easier way to write the IF line?
if (isset($fname) && isset($lname) && isset($email)) {
echo "test";
}
I believe the parens in your code don't do anything. anyway, best o' my
knowledge that's the way to do it.
"_)
-a
You could of course just check $QUERY_STRING
As for your error, you a missing a $ in front of retrn at the beginning of
that line.
-Rasmus
On Wed, 24 Jan 2001, Karl J. Stubsjoen wrote:
> I've tried and tried to figure out what is wrong with this function, but I
> can't. Could you please have
I don't think you need the \=, just the = should do.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"LINUX is obsolete"
the only thing I can think of, would be to eliminate the () around
$fname, $lname, and $email
if they all test true in the first place, the () are kinda obsolete. :)
Nathan Cook wrote:
>
> I have always wrote code this like:
>
> if(($fname) && ($lname) && ($email))
> { echo "test";
if ($fname && $lname && $email)
echo "test";
If by easier you mean typing less. ;)
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I've tried and tried to figure out what is wrong with this function, but I
can't. Could you please have a look. This function reconstructs the
querystring values passed in the querystring:
function PassOnGetVars() {
global $HTTP_GET_VARS;
#initialize retrn value
$retrn = "?";
#loop th
I have always wrote code this like:
if(($fname) && ($lname) && ($email))
{ echo "test"; }
Is there an easier way to write the IF line?
Thank You
.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
> Hello, I'd like to check for a character at the end of a string, if it
> exists remove it, example:
>
> Looking for - Z
> In string - StringZ
> Result would be - String
>
> -or-
> Looking for - Z
> In string - StringZzz
> Result would be - StringZzz (no change)
if($str{strlen($str)-1}=='Z') $st
> I have a variable(s) that hold the string:
>
> "name"
>
> and I'd like to kill the quotes so it contains:
>
> name
$new = str_replace('"','',$old);
Using a regex as others have suggested is a bad idea for something this
trivial.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To
Hello, I'd like to check for a character at the end of a string, if it
exists remove it, example:
Looking for - Z
In string - StringZ
Result would be - String
-or-
Looking for - Z
In string - StringZzz
Result would be - StringZzz (no change)
Thanks! Karl
BTW: You guys are great!
--
PHP Gen
Hi All,
I have a client uses Meeting-Pro database. Is there any API I can use with
PHP that will allow me to interact with Meeting-Pro db?
Thanks in advance for any comments.
James R. Butzen
NEBIS Tech. Support
http://www.nebis.com
--
PHP General Mailing List (http://www.php.net/)
To unsubs
In article ,
Michael Zornek <[EMAIL PROTECTED]> wrote:
> I have a variable(s) that hold the string:
> "name"
> and I'd like to kill the quotes so it contains:
> name
$name = ereg_replace("\"","",$name);
Maybe,
Nik
--
--
PHP General Mailing List (
> I have a variable(s) that hold the string:
> "name"
> and I'd like to kill the quotes so it contains:
> name
> I am aware of the strlen() function but can find the concant
$newVar = eregi_replace( "\"", "", $varWithAboveData );
Chris
I have a variable(s) that hold the string:
"name"
and I'd like to kill the quotes so it contains:
name
I am aware of the strlen() function but can find the concant
Little Help?
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
CDitty [[EMAIL PROTECTED]] wrote:
> Ok, I have looked at all my sources, including the manual and I cannot find
> any method of converting the Unix timestamp to a displayable date/time. I
> have probably just overlooked it each time, but all I can find are methods
> to convert the current dat
Haha, well I apologize for not seeing this earlier when I was hunting
through the documentation.
Silly me.
Thanks a bunch!
At 04:02 PM 1/24/2001 , you wrote:
>So sprach Matt am Wed, Jan 24, 2001 at 03:56:37PM -0600:
> > string is a mixture of PHP code and HTML. I want to be able to output the
> (Wac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes:
>
> Wac> Can anyone tell me how to turn off the bottom scrollbar in both
> Wac> IE and Netscape??
Open the page from another page using javascript to open a window with
feature not to scroll.
See FAQS on www.irt.org or the Netscape Javasc
At 23:10 24.01.2001, CDitty said:
[snip]
>Ok, I have looked at all my sources, including the manual and I cannot find
>any method of converting the Unix timestamp to a displayable date/time. I
>have probably just overlooked it each time, but all I can fi
Guessing here:
Define can't take a variable. It has to have a constant.
define("RUSER", 1);
would compile but not give you the results you want. I'm not sure you can do
what you want.
have you tried:
define("RUSER", '$REMOTE_USER');
Cal
http://www.calevans.com
-Original Message-
Hmm... that may work for what you're trying to do and it may
not... if your string contains something like this:
$str = <
Ok, I have looked at all my sources, including the manual and I cannot find
any method of converting the Unix timestamp to a displayable date/time. I
have probably just overlooked it each time, but all I can find are methods
to convert the current date/time to a Unix timestamp.
Can anyone gi
What I meant to say, was that the top snippet works in php 3.0.16 but
does not work in php 4.0.3pl1
yet the bottom corrected snippet works fine.
Question being... why the changes, and does anyone have any clues about
this occuring?
Sorry about that. :)
Original Message
Return
Assuming you are using GET (since you have a QUERY_STRING in url) :
foreach ($HTTP_GET_VARS as $key => $value) {
print "$key is $value \n";
}
For form you can use POST and loop through HTTP_POST_VARS too. These
are predefined variables :
http://www.php.net/manual/en/lan
At 3:07 PM -0700 1/24/01, Karl J. Stubsjoen wrote:
>What is the simplest way to set up a procedure to loop through all passed
>querystring values and/or form values?
>
>I'm very new to PHP, and don't know how to set up loops at all.
>
reset($HTTP_GET_VARS);
while (list($VariableName, $VariableVal
Using the following snippet of code.
--
http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Enable track_vars in php's config and use
$PHP_COOKIE_VARS['cookie_id'] to get the value of the
cookie.
--Toby
- Original Message -
From: "April" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 5:06 PM
Subject: [PHP] Cookie semi-security.
> S
So sprach Matt am Wed, Jan 24, 2001 at 03:56:37PM -0600:
> string is a mixture of PHP code and HTML. I want to be able to output the
> string with the PHP code inside the string processed. Right now the PHP
http://www.php.net/manual/en/function.eval.php
Alexander Skwar
--
How to quote: http
> Instead of checking if(!$id), perhaps you would be better off to check the
> result of your query (which in this example was successful, since you got
> a return from mysql() ).
I am. I just didn't include it in my previous message as it as I was trying
to
keep extraneous code down to a mini
Stupid question, but I'm stumped.
I'm passing a persons id through a cookie, then using that to determine if
they're allowed to be doing what they're trying to do (change listings,
etc.). Right now, I'm getting the value of the cookie by just accessing
$cookie_id, without anything fancy. The pro
What is the simplest way to set up a procedure to loop through all passed
querystring values and/or form values?
I'm very new to PHP, and don't know how to set up loops at all.
Thanks! Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
Instead of checking if(!$id), perhaps you would be better off to check the
result of your query (which in this example was successful, since you got a
return from mysql() ).
Also, what is the last_insert_id() function that you are referencing in your
$insertIDQuery string?
As for things getting
""Thor M. Steindorsson"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Some of your single quotes between values are missing (the . "','" . ),
> messing up the query.
> However it would probably be easier to do the addslashes() beforeyou do
the
> query so you
On a project I am working on, I have a string variable, and inside the
string is a mixture of PHP code and HTML. I want to be able to output the
string with the PHP code inside the string processed. Right now the PHP
isn't processed on output, it is merely cut out. I have been able to do
this
Some of your single quotes between values are missing (the . "','" . ),
messing up the query.
However it would probably be easier to do the addslashes() beforeyou do the
query so you don't have to break the query up like that.
So I'd do it like this:
}else{
// Insert new entry
$Name = addslashes
> You probably stated this in your previous post, but what is
> the result from your call to mysql() ? Is this call failing so
> that when you get to mysql_insert_id(), the id doesn't exist?
I did. It's returning a numerical one (1).
What I'm doing now is as follows. It's getting me the val
Read this:
http://www.php.net/manual/en/features.connection-handling.php
-Rasmus
On Wed, 24 Jan 2001, [iso-8859-1] Timo Mika Gläßer wrote:
> Hi,
> I had this problem over and over again: A script takes a long time to
> execute and is interrupted in the middle of its action by either a IE-Crash
You probably stated this in your previous post, but what is the result from
your call to mysql() ? Is this call failing so that when you get to
mysql_insert_id(), the id doesnt exist?
HTH
Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]
-Original Message-
F
try this:
http://www.dogpile.com";
header ("Location: $rdrct");
exit;
?>
Thor M. Steindorsson - [EMAIL PROTECTED]
http://www.netwood.net - Find Out Why We're Better.
-Original Message-
From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 1:03 PM
To:
I recently downloaded a phpDownload app. I'm having problems with it and
can not reach the creator of this app.
The INSERT query from the Admin portion of this app will not insert the info
passed from a form. Can someone offer any help with this?
Here is a portion of the code:
} else {
// In
On Wed, Jan 24, 2001 at 04:29:11PM -0500, Toby Butzon wrote:
> Perhaps the PHP page should have a page of editors with
> feature lists/ups & downs to each editor... a little
> research & a public page by one person (and maybe
> intermittent updates; moderated feedback might also be good)
> would
> >One thing that occurs to me -- stdout starts off by being
the browser, so
> >it's kinda funky to open it -- You've already got it
open... I *think* it
> >really only makes sense to fopen() stdout from the
command line. At least,
> >I'm not clear on what it would mean to open it from a
HTTP en
So my Point is:
What if you require "stored cookies" - cookies written to the users disk?
Hmmm, this cookie test would return true if "per-session" cookies was
enabled and "stored cookies" was disabled.
Karl
- Original Message -
From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
To: <[EMAIL
Just when this thread seems to die it comes back...
Perhaps the PHP page should have a page of editors with
feature lists/ups & downs to each editor... a little
research & a public page by one person (and maybe
intermittent updates; moderated feedback might also be good)
would save us from even a
Step 1:
Ask this question on the MySQL mailing list. :)
(Sorry, I couldn't resist)
The easiest way I can think of is to use MySQLDump to dump the schema and
data, delete the original database, change the output of mysqldump to
reflect the new database name and pump it back into mysql. Depending
1 - 100 of 244 matches
Mail list logo