Hi,
Muhammad Khairuzzaman wrote:
> Hi, thanks for the help!
>
> I worked, but i dont get it, why use $_POST['name'] or $_GET['name'] when
> the text from the internet and books I've read says just put a dollar sign
> before the variable's name.
from php version 4.?.x on register_globals is turn
Hi,
Jonathan Rosenberg wrote:
> I have been digging through the documentation for a while, but I can't find
> the answer to this ...
>
> If I have a form with multiple submit buttons, how can I tell in PHP which
> button was clicked?
just give them different names e.g. submit1, submit2 ... and
> for ($i=100; $i>0; $i++)
shouldn't it be $i--? this loop would run forever...
> print "\n";
>
> But, I presume you would rather do this:
> for ($i=100; $i>0; $i++)
> print "\n";
>
> because I can't imagine why you would want to escape double quotes in
> HTML.
>
> Jeremy
>
> Jeremy Brand ::
try this:
$sql = "SELECT * FROM table
WHERE town LIKE '%$search_data%' ";
if ($reference != "")
$sql .= "OR whatever";
""James, Yz"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
93vs2p$cng$[EMAIL PROTECTED]">news:93vs2p$cng$[EMAIL PROTECTED]...
> OK, I got a simple search page working (thanks
> Ah, so you can constantiate (right word?) the query?
I don't know what you mean by 'constantiate', but glad to hear it worked
otis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
you have to set the 'session.save_path' in your php.ini.
be careful with the slashes you use. as you can see from
the error msg by default it's '/' but windows uses '\'.
good luck
Johannes
"Jimmy Bäckström" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
001201c08564$f7398660$554d59d5@broder">news:0
07801c0859d$8ef1e0f0$554d59d5@broder">news:007801c0859d$8ef1e0f0$554d59d5@broder...
Yeah I used a path name with '\' instead of '/' but it still does not work.
Help!
"Johannes Janson" <[EMAIL PROTECTED]> wrote in message
94kpfm$4cc$[EMAIL PROTECTED]"&
Hi,
I think you can put more than one recipient into the mail-function
by seperating them with a ",". Look in the manual for detailed info.
Johannes
"Bruno Freire" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
454D444FF5C0D211891800A0C98C7D90359A44@SERVIDOR">news:454D444FF5C0D211891800A0C98C7D9035
Hi,
there is NO way of hiding the html from the user.
the browser can't output otherwise. You can only
try to make it difficult to get the source.
Where does the " 's " problem come in? More detail plz.
Is it a part of a text? Then try htmlspecialchars() or
htmlentities().
Johannes
""Dddogbru
use srtipslashes() before writing it to the
file.
Johannes
""Dddogbruce (@home.com)"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > there is NO way of hiding the html from the user.
> > the browser can't output otherwise. You can only
> > try to make
Hi,
put: include("connect.php"); at the beginning of query.php.
Johannes
""Picard, Cyril"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I would like to query a postgresql db with the php language.
> Today I wrote a script (connectandquery.php) perfor
Hi,
Why destroying it "before" a user logs in? Isn't it
better to start the session "after" a successful login?
And then destroying the session when the user logs out.
Or did I get it wrong. A few lines of code would help
to understand.
Johannes
"Jens Kisters" <[EMAIL PROTECTED]> schrieb im Ne
Hi,
this will list all your posted variables with name and
the posted value.
while (list($key, $value)=each($HTTP_POST_VARS) ) {
echo "$key = $value ";
}
Johannes
""Mat Marlow"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
9bk11q$dvq$[EMAIL PROTECTED]">news:9bk11q$dvq$[EMAIL PROTECTE
.
cheers
Johannes
--
Grüße aus dem schönen Tübingen
Johannes Janson ;)
"Jens Kisters" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Why destroying it "before" a user logs in? Isn't it
In case the user did not log out p
Hi,
to get the first 150 chars of a mysql filed do this:
SELECT LEFT(YourField, '150') FROM YourTable WHERE YourCondition=true;
This does it in MySQL and for PHP follow the mentioned substr-method.
cheers
Johannes
""Jorn van Eck"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
9bkpd8$r77$[EMAIL PRO
Hi,
a general thought at first. When posting a rahter long sxrpit it
would be helpful to mark the lines which produce the errors.
But now straight to the point. change the inside of
your if/elseif parethesis from just the variable to
(isset($variable)) respectively to (! isset($variable)).
hope
""shawn"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
001c01c0cce3$c114c420$5c52a040@admin">news:001c01c0cce3$c114c420$5c52a040@admin...
>Could someone tell me how to actually execute this script please?
$mysql_query = mysql_query("INSERT INTO $userstable (client, contact, email,
address, city, s
hi,
by .= you assign the value to a var in this case a string.
$test = 1;
$var = "test";
$newvar = $$var;
echo $newvar; // outputs "1"
Johannes
"AJDIN BRANDIC" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
Pine.OSF.3.91.1010426114338.17213A-10@leofric">news:Pine.OSF.3.91.1010426114338.1721
Hi,
have a look at this article:
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/
it describes the setup of Apache, PHP, SSL and MySQL.
Johannes
"Web master" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I am using PHP as my main
Hi,
I just don't get it...I have a form where the user enters name, surname
and a personal code. The action page checks for correct input which
is only letters for the two names and only numbers for the code.
If there is a wrong input in one of the fields a variable is set
which is then (amongst
Well, what can I say??? Magic windows
Reboot the system or post a message and it works!
johannes
""Johannes Janson"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
9d93c3$7d8$[EMAIL PROTECTED]">news:9d93c3$7d8$[EMAIL PROTECTED]...
> Hi,
>
> I just
Hi,
>I got a series of string value in this format ie: 1,2,3, say pretend that
these are telephone number, which is one feild >in user table.
>I need to update this telephone number field, I got 3 user ID in series
like this too, ie: 3,4,5 and normally it is like
>
>update set where userID I
Hi,
> update $T1 set caption = $caption where name = $name
put single quotes aroud the variables: caption='$caption'.
You can do this aswell:
$result = mysql_query("UPDATE $T1 SET caption='$caption WHERE name='$name'",
$DB)
or die(mysql_error());
if (! $result) {
send the haeder...
}
hope it
Hi,
> i created a helloworld php file and put it in my
> inetpub/wwwroot/php folder and then tried to display
> it in the browser but all i saw was my html code.
> Can someone help please?!
You'll need to configure IIS to parse your PHP files. Use the instruction
below.
If you wonder which one t
Hi,
> does anybody know which extension I need to connect to a MSSQL DB, and
wher
> I could get it?
go to www.php4win.de they offer a .exe with lots of extensions.
hope it helps
Johannes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
Hi,
> "checking lex output file root... ./configure: lex: command not found"
> "configure: error: cannot find output from lex; giving up"
you have to go into YaST an install a programm called lex. It might be
that you also need flex. Just install lex and see if you get more errors.
hope it help
Hi,
> Does anyone know where I can get mcrypt.dll?
I'm not sure but it might be included in the dist from
www.php4win.de
johannes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the l
Hi,
get an editor which suits your needs and demands, a server and
(if needed somr database app) and just do it by trial and error.
tutorials on php:
www.phpbuilder.com
www.webmonkey.com
www.devshed.com
feed any search engine with "php tutorials" and find more.
good luck
Johannes
p.s. what's
Hi,
i'm sorry but I don't quite get what you mean. Which button is
pressed. or post the code.
Johannes
"Augusto Cesar Castoldi" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
Pine.GSO.4.10.10103271417160.12546-10@venus">news:Pine.GSO.4.10.10103271417160.12546-10@venus...
> I had a form with
Hi,
if ($name == " ") { checks for a space in $name.
"empty" is either if (§name == "") without a free space
between "" or you could do it with empty($mane)
if (empty($name)) is true if it is empty (who would
have thought this?)
Johannes
"Louis Brooks" <[EMAIL PROTECTED]> schrieb im Newsbe
Hi Louis,
you cuold try it with if (empty($fname)) { redirect...
just check again that your form is ok.
Johannes
"Louis Brooks" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks for everyone's response. I am still not able to get the
>
> if(($fname
Hi,
i'm not that much into mail functions but my manual tells
me that impa_delete selects a message to be deleted.
imp_expunge delets all selected messages.
look into the correct syntax
Johannes
"Miguel Carvalho" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECT
Hi,
for the haeder just make sure that there is NO output
whatsoever before the header-call. even if line 1 of your
script is empty before the schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks for all the help. I finally got it to work. I ended up using a
bunch
> of if
Hi,
SELECT a.list FROM db1 a, db2 b WHERE a.email!=b.email;
this shoulds work
Johannes
<[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I have two database`s with one table in each. (MySQL)
>
> Is there a way that I can select data from one tabl
Hi,
this is the regular expression from a PHP book.
ereg("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-z]{2,3})$,
$formfield");
looks horrible but works.
"Sharat Hegde" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
30402B4CB8C7D311A3C600C04F1513BC3BDAE4@bg2ipmail">news:30402B4CB8C7D
"Brandon Orther" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I there a way for me to find out what variables are being sent to script?
> Example:
>
> http://www.myscript.com/myscript.php?var1=asdf&var2=asdf
>
> that above would be $var1 and
Hi,
I'll spare you from the stuff with stupid question and answers
http://httpd.apache.org/dist/httpd/binaries/win32/ is the address
to the win32 binary. get 1.3.19 cause some more einvironment variables
are supported. To set the wholee thing up I can recommend this:
http://www.devshed.com/Se
Hi,
>Dear all folks,
>I want to get the url of the previous page that my visitor came from. Is
this correct to use http_header? Or what function that will help me >do this
job?
the variable $HTTP_REFERER will do the job but not all browsers support it.
Manual -> Variables -> predefined variables
Hi,
>
I'd do it like this:
Now you have an array containing all the checked magazines. To get and write
them into
the DB you could use implode() in combination with a field of the type SET
or
do a
while (list($key,$value)=each($magazines)) {
Do some query stuff with your primary key in $va
Hi,
>$query = "SELECT * FROM question WHERE answer<>'1' AND id>250 ORDER BY id
DESC";
>
>$result = MYSQL_QUERY($query);
add "or die(mysql_error())" see what MySQL doesn't like about the query.
cheers
johannes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hi,
I'm not sure but I think it's "--with-config-file-path=/path/to/dir.
Good Luck
Johannes
""Steve Haemelinck"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
003901c08a14$3f692bd0$0200a8c0@shaemeli">news:003901c08a14$3f692bd0$0200a8c0@shaemeli...
> I want to put the php.ini in /etc/php
>
> Whic
reset($array), if this is what you need.
this resets (who would have thought it?) the internal pointer back to the
first
position.
""Julia A . Case"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is it possible to move through an array that is returned
e.g.
>
Johannes
"Victor Hamutenya" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi, my name is Victor from Namibia, I do web development with PHP, I
> hapenned to find your email address on one of the PHP sites on the Net,
> as one of the contributor
Hi,
first of all being desperate for help is okay but please don't write in
cabs.
try this:
while ($row = mysql_fetch_array($result) ) {
echo "http://tias.kub.nl/programs/$row[opleiding_afkorting]/
$row[leergang_afkorting/
virtuele.klas/programma/blok$row[module_nummer/$row[leergang_afkorting]_b
44 matches
Mail list logo