Good comments made by all, no doubts. Something said by Justin though, sticks out
above the rest.
I strongly recommend to everyone to never, EVER edit or manipulate LIVE code! I know
we're all good at what we do, but accidents happen (perhaps you didn't specify a WHERE
clause in your delete
directly, as I'm unsubscribing
after I send this last mail. Against my will, no doubt, but leaving just the same.
Take care, everyone, and as always...
Happy Coding! :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
that
starts at $i (0, 8, 16, 24, etc) and grabs 8 characters. So here is how the data
should be retrieved.
1st loop: 0-7 (8 elements)
2nd loop: 8-15 (8 elements)
3rd loop: 16-23 (8 elements)
4th loop: 24-26 (3 elements)
Let me know how it works out for you :o)
Martin Clifford
H
cannot use the back button without getting mishapen
results, then it doesn't sound as if the site is designed very efficiently.
Just my opinion.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> Petre &l
ally is no limit to how you want to do this. Then just use explode() with the
same arguments (although replace array with the comma_seperated string) to go back to
an array.
HTH!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
Because you HAVE to use it if you have register_globals OFF. Only when
register_globals is ON can you do what you thought is more efficient, but isn't.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>>
http://myaddress/php/mypage.php?modo=123&color=red&size=3
Just separate name/value pairs with ampersand (&).
HTH
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Saci" <[EMAIL PROT
Copy and paste the code (minus and indisclosurables) and we can take a look at it :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> Varsha Agarwal <[EMAIL PROTECTED]> 07/29/02 04:27PM >>>
Hi
or as before, since a hard return was entered before the
parser began it's work, therefore finishing the headers and sending the data to the
client for rendering. Hope this clears something up :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.com
\n\n";
?>
Something similar will work fine.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> Kelly Meeks <[EMAIL PROTECTED]> 07/29/02 04:00PM >>>
Sorry for the off topic post, but thi
You can't send headers after the page has left the server. If you try to write to the
HTML file in ANY way, even a hard return in your code, then you are telling the server
that the headers have been completed and should be sent to the client (browser).
Martin Clifford
Homepage:
element. That string is then passed to
the PHP page, where it can be parsed (ala implode/explode) and put into a new array.
I hope that made some sense :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> &quo
I always just register an extra variable to track logged in users. If the user has
logged in, it is set to TRUE, if not, FALSE. Then I just do comparisons on that
variable.
Something along those lines.
>>> "Tyler Durdin" <[EMAIL PROTECTED]> 07/26/02 03:28PM >>>
alrigh I have switched eve
1) To echo the variables name instead of it's value, surround it instead by single
quotes, not double.
echo '$var' OUTPUTS $var
echo "$var" OUTPUTS the contents of $var
2) Checkout the func_get_args() function.
http://www.php.net/manual/en/function.func-g
are going to use the header() function without
output buffering, then it should be just like this:
—--top of text editor
—-- End of text editor
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Ty
You have to have session_start() in each page in order to carry over session
variables. :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "DonPro" <[EMAIL PROTECTED]> 07/26/02 04:06PM >&
Yes, that will indeed return the rows specified, but the result is very unstable. By
it's nature, MySQL does not have to conform to any sorting method unless you specify
it. So it's very good practice when retrieving multiple rows to ALWAYS order them.
Just my thoughts :o)
Martin
>>> "Tech
<>
Why didn't you just say, "Charge by whichever will screw the client the worst."?
Jesus.
Martin
>>> Tyler Longren <[EMAIL PROTECTED]> 07/25/02 11:44AM >>>
Charge by which ever will get you the most money.
tyler
On Thu, 25 Jul 2002 11:46:38 -0400
Gerard Samuel <[EMAIL PROTECTED]> wrote:
>
You would need to use SQL to identify which columns and rows you need to retrieve,
then use various MySQL PHP functions to gather the information.
For your two queries, they would appear thus, respectively:
SELECT firstname FROM tablename WHERE id=16
and
SELECT firstname FROM tablename ORDER
Sign up now if you
haven't all!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Jay Blanchard" <[EMAIL PROTECTED]> 07/25/02 10:15AM >>>
Top 10 Locales --
Washington DC (9 members)
It is on whatever installation my host is running :o) I know it's 4.x, though I
should really make them upgrade.
>>> "Phillip S. Baker" <[EMAIL PROTECTED]> 07/24/02 02:34PM >>>
At 11:26 AM 7/24/2002 Wednesday, Martin Clifford wrote:
>Shouldn't
I've never had a problem with this. Even using a textbox with only the required
parameters works fine as far as hitting the return key to get a newline. If you're
talking about hitting the return key to submit, that's something else entirely, hehe.
Martin Clifford
Shouldn't it be:
$result = mysql_query($sql, $link_id);
PHP will be quick to tell you that there is a missing link identifier in the
mysql_query() call. It's happened to me plenty of times. HTH!
Martin Clifford
Homepage: http://www.completesource.net
Developer'
With phpMyAdmin, just scroll down until you see the dumping section. Select the
appropriate information, tick the "save as file" box, then "Go". It'll prompt you to
save the file. You just use that file, then, as a query to your next database.
Martin
>>> "1LT John W. Holmes" <[EMAIL PROTECT
yours.
BTW, I hadn't intended this to become a chapter, but it did... sorry for the length :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> <[EMAIL PROTECTED]> 07/24/02 12:46PM >>>
I have ju
Awesome! Learn something new everyday!
That's why I love this list :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Chris Sharkey" <[EMAIL PROTECTED]> 07/24/02 11:01AM >>&g
trick. But like I said, once the parser begins to write HTML to the
browser, then you can no longer send HTTP headers.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Roberts, Mark" <[EMAIL PROTECTED
PHP is server-side, so it can't do anything that would help with the layout of HTML on
the client-side. You might want to look into Cascading Style Sheets (CSS) to format
the page so that it validates the way you want it to :o)
HTH!
Martin Clifford
Homepage: http://www.completesourc
Put an ampersat symbol (@) in front of the function name to suppress errors.
$link = @mysql_connect("host", "user", "pass");
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> &
t is what section of code will execute.
Hope that helps!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Javier Montserat" <[EMAIL PROTECTED]> 07/23/02 10:03AM >>>
is there a more pro
"unless defined otherwise" was what I said. When I said that, I simply meant that you
declare the variables as global within the function and/or class.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>>
variable types.
I'm sure there's a much better way to explain it, but it works for me :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Matt Babineau" <[EMAIL PROTECTED]> 07/22
";
?>
Output in IE6:
this should be printed out: this is a second line
regards,
KK<<<
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-----
Do You Yahoo!?
Yahoo! Health - Feel better, l
Just my opinion, but it is ALWAYS a good idea to terminate statements with semicolons,
no matter if there is or isn't additional statements.
But thanks Chris for at least using standardized HTML coding practices. I can't stand
it when I see tags and the like that don't cooperate with standards
Firstly, many thanks to Richard and Dan...
>>A quick test script in PHP would have been faster than asking... :-)<<
It was just one of those questions that I had burning in my mind at the time, and
since I don't have access to PHP at work (As if the Government would allow that!), I
had to ask
;a'? I find this confusing for some reason, hehe. Any help
would be great!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I would assume you just do it as if you didn't have any scripts in it in the first
place.
The link in frame A might be like below:
Click here to see the content
Then, in frame b, content.php will show up and you can then use $show to decide what
to do. I might be totally off on this one, but
Oh well. And HTH means "Hope to Help".
> For some unknown reason the OP specifically does not want to use
> mysql_fetch_assoc()!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
--
PHP General Mailing Lis
Try this:
while($row = mysql_fetch_assoc($result)) {
// code here
}
This way, the resulting array will ONLY be associative.
HTH!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> Henning Sittler <[EMA
You can blend the two... sort of.
I'm not aware of any PHP vars that hold screen information.
HTH
Martin
The error is pretty self-explanatory. You aren't starting the session before
soemthing is being written to the page.
This will yeild the same error:
—-top of document--
d want to be able to do it as a career. I just don't know where
the hell to start, and I know that some of you might be able to offer some advice in
this area.
Thanks in advance! This is very important to me, so I thought I'd ask the people that
would know best :o)
certain columns from the row, then list those columns in
place of the wildcard.
SELECT first_name, last_name FROM table WHERE id=1 LIMIT 1
HTH!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Phil Schwarzmann
Ignore that, I'll just go grab my copy of Hooked on Phonics so I can learn to read
before replying.
:trots off:
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Martin Clifford" <[EM
Define the value of $count before registering it, and it should work fine :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Henry" <[EMAIL PROTECTED]> 07/17/02 10:14AM >>&
Unless the file is getting retartedly big (10-20K), then I wouldn't separate them.
Though if you have enough functions, you could justify making separate files for your
database functions, output functions, backend functions, etc.
Martin Clifford
Homepage: http://www.completesourc
d be helpful if
you include those in your message so that we might be able to deduce the error from
it's cryptic nature :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Divyank Turakhia" <
It's called "here doc" formatting, and follows the pattern below:
$chunk = <<< EOF;
// stuff here
EOF;
Hmm. For some reason that just doesn't look right. I'm sure someone will correct it
if I'm wrong though :o)
Martin Clifford
Homepage: http://www.comp
Try enclosing it in curly braces.
echo "${db->field('name_long')}";
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> Michael Zornek <[EMAIL PROTECTED]> 07/16/02 01:45PM >>>
RTFM re: Exit and Continue.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> Michael Zornek <[EMAIL PROTECTED]> 07/16/02 01:08PM >>>
Ok,
So I'm creating a details.php page where I'm
If you only want to update the row if it exists, then you need to use a WHERE clause
to make sure it does exist.
"Blah blah blah WHERE row_id='$id' LIMIT 1" might work. I'm lazy and didn't want to
retype what you had. :o)
Martin Clifford
Homepage: http://www.
ethod, while others stay with the procedural side of things (using
>functions). It's all a matter of preference, and just yet I haven't decided which is
>more useful :o)
Good luck!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completes
ssigns the new object, "passat", the properties relating to it's make and model,
using the methods setMake and setModel. I'm sure this is right, but I'm sure I'm
probably wrong (hehe, confused?). I'm also sure someone will correct me if I am! :o)
"Make" and "Model"), then those two
properties can be readily accessible to any method within the class. At least I think
that's how it works. I'm not all that knowledgeable on the subject :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's
Just try eregi_replace("\^k[.+]", "", $container);
Regular expressions are the MASTERS of the INTARWEB! :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> Jimmy Brake <[EMAIL PROTECT
You're right Andrew, got a little ahead of myself :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Andrew Brampton" <[EMAIL PROTECTED]> 07/15/02 03:23PM >>>
Shouldn't
Yes, everyone please join up! I would love to find more developers in the Maryland
area, and I'm sure others would in their areas as well! Let's do the great american
get togeth... err... the great php get together!
Martin Clifford
Homepage: http://www.completesource.net
Develope
Y the row
where the maximum value of the posted column equals itself, thereby being the latest
date. Just an idea.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Alexander Ross" <[EMAIL PROTECTED]
? Tell me about the Pros and Cons to OOP, and why
you prefer to use it/not use it!
Personally, I've always used regular functions to accomplish my repetetive tasks, and
OOP seems rather daunting for me, but I'm always open to new (and hopefully, more
efficient) ideas! Thanks!
Mart
heck out a sample of what it can do in the
forums link below. Good Luck!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> <[EMAIL PROTECTED]> 07/15/02 06:26AM >>>
phpbb is a good forum or phorum
both
ll come to pass! :o)
I emplore all PHP Developers to sign up for MEETUP. You have nothing to loose, and
everything to gain!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Jay Blanchard" <[EMAIL P
been done.
Projects that find solutions? That could be anything from a Weight Loss Tracking
System to an advanced encryption/decryption algorithm.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Serdar
Use addslashes() on ALL strings before inserting them into your database. Then, on
your frontend, extract the data and use stripslashes() on all strings.
Hope to help!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>
being helpful, and it being a hinderance.
Just my $20.00 (big mouth, you know)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Jay Blanchard" <[EMAIL PROTECTED]> 07/12/02 09:40AM >>>
Howdy gr
I would think that there would only be a limit on the SMTP server that the mail
function sends the mail through. I'm no expert on the subject though, just makes
sense. :o)
Martin Clifford
http://www.completesource.net (Now Open!)
>>> "Shane" <[EMAIL PROTECTED]>
As far as I'm aware, the first argument to the in_array() function is the needle (what
you're searching for) and the second is the array to be searched through (the
haystack).
So if $type represents what you're searching for, then it would be written as:
in_array($type, $CheckArr);
If you sup
When you request a page, for instance, php.net, your web browser sends HTTP headers to
the server that holds php.net on it. When the server receives these HTTP headers, it
knows which page is needed, and sets up it's own headers to send back to the browser,
such as location, file types, etc.
The easiest way to accomplish that is by using switches. Here is an example:
switch($pageid) {
default:
include("default_page.inc");
break;
case "18":
include("page_18.inc");
break;
}
With that in your index.php page, it will look for the variable $pageid, and de
Fixing the below, since it would produce a parse error (I forgot a parenthesis, hehe)
Martin Clifford
http://www.completesource.net (Now Open!)
>>> "Martin Clifford" <[EMAIL PROTECTED]> 07/11/02 09:29AM >>>
You'd have to separate it like so:
if($var1 ==
You'd have to separate it like so:
if($var1 == 1 AND ($var2 == "a" OR $var2 == "b" OR $var2 == "c") {
// do stuff here if true
} else {
// do stuf here if false
}
HTH
Martin Clifford
http://www.completesource.net (Now Open!)
>>> "Rw
I usually always have my content dynamically generated by functions, or displayed in
include files. I'm not a fan of cluttering up my apps with content.
Martin Clifford
http://www.completesource.net (Now Open!)
>>> "Lazor, Ed" <[EMAIL PROTECTED]> 07/10/
e from the $_GET superglobal, and if it was, reload the page without any URL
extensions. It sounds good in theory, though I haven't tested it, so it might not
work as I think it should (it NEVER does!).
My $20.00 (big mouth)
Martin Clifford
http://www.completesource.net (Now Open!)
>&
Homesite (at least version 5.0) has support for more languages than DW4. Though I
believe in DW4 you can customize the syntax highlighting to match any languages that
*aren't* supported. I love Homesite 5. Not to mention that it runs a lot faster than
DW because it doesn't have to load as ma
Did you restart your server after changing register_globals? Try that.
>>> Derick Rethans <[EMAIL PROTECTED]> 07/10/02 02:30PM >>>
Hai,
did you check the setting of register_globals really changed? See the
phpinfo(); output if it's really set to on. If not, place your php.ini
file in the corr
WYSIWYG does nothing more for me than screw up my code. I'm very anal about how my
code looks, firstly. Secondly, most WYSIWYG editors add superfluous markup into code
which not only inflates the file size of your documents, but also slows down
processing of them.
I'm not saying that WYSIWYG
SELECT DISTINCT kat FROM tablename; should work.
Martin
>>> <[EMAIL PROTECTED]> 07/10/02 01:40PM >>>
Hello
I have a problem with mysql.I create a table with a field "kat".In this field are
entries like this :
Light
Dark
Dark
Light
Robot
Find
Dark
Light
You see that all entries are not uniqu
That all depends on what the form is for, what it has to do, how many fields it needs,
etc. You'd be better off writing a function to create your forms, if you ask me.
Just my $20.00 (big mouth)
Martin
>>> "CM" <[EMAIL PROTECTED]> 07/10/02 01:14PM >>>
Are there any php scripts or classes that
Have you tried like this?
Yahoo!
...
PHP.net
Then access the array on the processing page.
Martin
>>> "Joseph Szobody" <[EMAIL PROTECTED]> 07/10/02 02:02PM >>>
This is sorta OT, but involves PHP.
I have a fairly large List/Menu on a form, which allows for multiple selections. I
Exactly. Homesite is, in essence, Dreamweaver MX without the WYSIWYG. Syntax
highlighting and code completion make it a very viable editor. I can't stand that
WYSIWYG crap. I'm plenty good at messing up my own code without assistance, thank you
very much! :o)
Martin
>>> "Bret L Conard" <[
I use the almighty Notepad for my coding. When I'm at home, however, I typically use
Macromedia Homesite 5 (simply because it has PHP syntax highlighting). I tried using
PHPEdit, but I thought it was horrible. It was buggy, and annoying.
PHP Master Editor is VERY good, and you can probably f
Hi Alexander :o)
You have to have session_start() at the top of EACH page that will hold session
registered variables. So just rewrite it like this:
Page 1:
Click here
Page 2:
Hope this helps!
Martin
>>> "Alexander Ross" <[EMAIL PROTECTED]> 07/10/02 11:23AM >>>
I'm trying to understan
There are no brackets necessary if you only have one line of code to be executed in
the case. For example:
if($var == 1)
echo "Var equals 1";
} else {
echo Var does not equal 1";
}
But this is not valid:
if($var == 1)
echo "Var equals ";
echo "1";
} else {
}
HTH
Mar
Set the cookies expiration to a date that has already passed. The cookie will only
last until the browser is closed, since the browser must have just created it. Then
it's deleted from the computer since it's past due.
Martin
>>> "Alexander Ross" <[EMAIL PROTECTED]> 07/10/02 09:43AM >>>
How
You're gonna have to give me quite a bit more to go on than that. What are you using
to store the data? An array, flatfile, database, etc?
Also, we're not really all about telling you what code you need, as much as helping
you to find the answer (without GIVING the answer), you know? At leas
Since it's not an associative array, you can just use sort($Lang); and that should
work just fine.
Martin
>>> "vins" <[EMAIL PROTECTED]> 07/10/02 08:36AM >>>
I have an array
$Lang = array('English','German','French','Zulu');
I want it in alphabetical order
do i reset the arrray first or us
Dear Lord, where is the admin to boot this guy?
Martin
>>> "Erik Hegreberg" <[EMAIL PROTECTED]> 07/09/02 03:25PM >>>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You would have to set up a dummy variable to hold the value of two concatenated
variable names. I'd love to write an example, but work is draggin' me down, sorry!
Martin
>>> "Joseph Szobody" <[EMAIL PROTECTED]> 07/09/02 02:12PM >>>
So here's what I'm trying to do:
I have a form submitting doz
My advice is to use mysql_connect(). The only instance I would consider using
mysql_pconnect() would be if I had to access multiple databases and servers at the
same time.
Martin
>>> SpamSucks86 <[EMAIL PROTECTED]> 07/09/02 10:26AM >>>
I'm running windows 2000 and the latest releases of PHP a
In that case, the question marks are part of the PHP opening and closing tags.
There are several ways to open and close sections of PHP script, mainly being , , and <% %>. What the below equals is , since http://www.completesource.net (Now Open!)
>>> "Alexander Ross" <[EMAIL PROTECTED]> 07/09/0
You only have to register the session variables once. If you need to register the
same variables again (such as for a different user), then you should use
session_destroy() before registering the variables again.
The variables should be available throughout your pages as long as session_start(
No need to open a new window to reset the cookies. Just have a function that is
trigged onunload().
Martin
>>> Pete James <[EMAIL PROTECTED]> 07/08/02 03:18PM >>>
You could also try using Javascript to popup a window when they close
the current one, and reset your cookies (and/or destroy your
Just create a hidden form field with the value you want to pass.
HTH
Martin
>>> "Anil Garg" <[EMAIL PROTECTED]> 07/08/02 01:35PM >>>
Hi,
sorry for going a lil out of way of php.
can i hide a drop down menu.(as i always want to pass the default value
selected in the drop down.
thanx and rega
I'm sure there is a phpBB specific userbase out there that could answer this question
for you. My guess would be... I don't know, something like http://www.phpbb.com.
Martin
>>> "BrettM" <[EMAIL PROTECTED]> 07/06/02 12:35PM >>>
I wanna be able to do some stuff, which involves getting data fro
>>How do you know their certificate hasn't been stolen, and they haven't even
figured it out yet? How do you know they were trustworthy people in the
first place?<<
Why do you ASSUME that they're NOT trustworthy people? Do you go through your entire
life in that shell?
>>The more I think abou
If you're using one of the more recent releases of PHP4+, then register_globals is set
to OFF by default in your php.ini file. Change this to ON or use
$_GET['variable']/$_POST['variable'] to access the values.
Martin
>>> "Tony Tzankoff" <[EMAIL PROTECTED]> 07/05/02 12:43PM >>>
Is it possible
PHP now comes with register_globals set to OFF by default, as far as I'm aware. You
can access the variables using $_POST['variable'] and $_GET['variable'], or turn
register_globals back ON. :o)
Martin
>>> "Jay" <[EMAIL PROTECTED]> 07/03/02 03:46PM >>>
I just installed php 4.2.1 and i have a
What address are you using the run the program?
Try using http://localhost/hello.php and see if that works. I don't use IIS, so I
couldn't tell you anything relating to configuration.
>>> Varsha Agarwal <[EMAIL PROTECTED]> 07/03/02 03:42PM >>>
Hi,
I am completely new to PHP and webserver thing
Sessions make life so much eaiser, in my opinion. I used to do what you do, passing
from one page the next. Now, when a user successfully logs in, ONE line of code
passes all the necessary variables from page to page without me having to do a damn
thing.
I don't personally see TOO much wrong
This may sound like a stupid question, but... within a regular expression, are the
values in brackets evaluated consecutively, or no? For example:
Does [a-zA-Z0-9] (yes, I know [:alnum:] is the same) mean that there can be a number,
but it has to follow a letter? Or would you just do [a-zA-Z]
while($row = mysql_fetch_array($result_set)) {
$field1 = $row['field1'];
$field2 = $row['field2'];
echo "\n";
echo "$field1\n";
echo "\n";
echo "$field2\n";
echo "\n";
}
This will cycle through the rows, adding the values of field1 and field2 to the
respective variables, th
1 - 100 of 117 matches
Mail list logo