Is there some way of making PHP even more dynamic?
What I would like is that selecting a value from a box would
change some info on the page - without having to click a refresh button
or something like that.
Or do I have to resort to javascript for such things?
M.
--
PHP General Mailing Li
Mark Charette wrote:
>
>> > What's the best way of finding out if a specific array key is in an
> array?
>> > I have an associative array which *may* look like
>> > (car =>saab, house => mansion, countyW=> A) but can equally well look
> like
>> >
>> > (boat => daycruiser, house => flat, county =
What's the best way of finding out if a specific array key is in an array?
I have an associative array which *may* look like
(car =>saab, house => mansion, countyW=> A) but can equally well look like
(boat => daycruiser, house => flat, county => B).
I want to find out if the key "car" is in the
Altunergil, Oktay wrote:
> I was actually interested in the answer to this. I believe one can write
> in English if one can read English. (PS: It's not my first language
> either)
>
AS it was my question I'll answer.
He said that he was sceptical about using our accented character in code
and t
Jimmy Lantz wrote:
>
> Hej, jag hade nog inte använt åäö i case men det är bara en vana, kanske
> du kan använda en dold variabel via html-formuläret istället och använda
> den i case satsen? Men det svarar ju inte på din fråga men lycka till.
> / iImmy
Fixat!
Problemet låg någon annanstans, vi
Going grey haired again. In this code only the first case is working
(adding stuff to tables). The second and third are producing - Warning:
Supplied argument is not a valid MySQL-Link resource in
/chroot/htdocs/diarium/settings.php on line 31 (which is $query_res /ms)
error:
I've even cop
idban secandri wrote:
> On Saturday 28 April 2001 00:37, you wrote:
>> I've built php from a tarball. Now I need to specify a special include
>> path in the php.ini file. But I can't find it. There is a php.in-dist in
>> the build catalog but I can't find a production php.ini anywhere.
>> The doc
[EMAIL PROTECTED] wrote:
> On Fri, Apr 27, 2001 at 08:06:54PM +0200, Christian Reiniger wrote:
>> On Friday 27 April 2001 15:15, Johan Holst Nielsen wrote:
>> > > Hey everyone...
>> > >
>> > > I've been programming in perl for about 3 years now, i have installed
>> > > php and have been working o
I've built php from a tarball. Now I need to specify a special include path
in the php.ini file. But I can't find it. There is a php.in-dist in the
build catalog but I can't find a production php.ini anywhere.
The docs says that it should be in the install catalogue (which is where?,
/usr/local
Carlos Fernando Scheidecker Antunes wrote:
> Hello all!
>
> I would like to know if anyone has or know any PHP code to verify if a
> form entered e-mail address is valid?
>
> I would like that things like 4$%^%$@@.com.br could not be sent. I only
> has to verify the syntax of it, the existance
IS there a standard way of "auto-updateing" the contents of a page after a
databas insert or edit? Do a SELECT updates the contents I can update
tables I've noticed. Contents in select boxes (as in
while ($row = mysql_fetch_row($secquery_res)) {
print "$row[0]";
J. Jones wrote:
> Forgive me for my ignorance, but I've noticed some unwanted behavior (IMO,
> at least) with the is_link() function. Given the simple code..
>
> if ( is_link ("/tmp/this_is_a_symlink") )
> print ("Success\n");
>
> and the file..
> lrwxrwxrwx 1 root root 5 Apr 23 21:19 /tmp/thi
I have a function on an include page that says
function update_stuff($database)
{
include("includes/connect.inc.php");
include("config/db.conf.php");
$query="SELECT * FROM $database";
$query_res=mysql_query($query, $mysql_link);
$isequip=mysql_num_rows($query_res);
}
If I call it from a script a
James, Yz wrote:
>If anyone has any comments on this, I'd like to
> hear
> them (there's probably a simpler way around what I have done). Here's the
> URL:
>
> http://www.yorkshire-zone.co.uk/date_increment.php
>
> And here's the code that powers it:
>
>
>
>
>
> $date = date("2001-04-28"
PHPBeginner.com wrote:
> I am not sure on how your possibilities are,
> but doing this in PHP means literally "adding useless lines and loops"
>
> If possible, do it with SQL queries. Read the documentations on date
> datatypes, this is so much easier... almost magic.
>
AND
> You can (mySQL,
PHPBeginner.com wrote:
>
> INSERT INTO table SELECT date+INTERVAL 10 DAYS AS date FROM table WHERE
> bla=bla;
>
> it is just a way to do it. you will definitely have to play with it.
>
> However you can easily make two queries to read the previous date
> combining it with INTERVAL and then do
How do I increment dates past the turn of the month (or year)?
Say I've got a booking of equipment A for the 28 April to 5 May and want to
add each instance to a calendar (mysql table).
Can I increment the variable (format 2001-04-28) holding the date
($txtDate++) somehow so that it doesn't add
[EMAIL PROTECTED] wrote:
> You're missing a single quote after the value of MAXLENGTH on the line
> that's not working... Maybe that's the problem.
>
Yes!!
Thanks! I thought I was going crazy.
Martin S.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECT
I'm blind!!
Whats wrong here? $besk has a value at one place but not in another?
Jeez
M.
$besk=$row1[0];
print "beskr $besk"; <-- prints value of $besk
print ""; <-- works
print " "; <-- DOES NOT PRINT A THING!!
print " "; <-- works
print " "; <--works
I'm trying to edit the specific item for each row found in the snippet
below. Each item gets a row in a table and I want to pass the item Id (s_id
below) to $item. It seems however that the array *item * is not
incrementing. For all rows I get the value of the first row.
Any ideas of what wron
Kath wrote:
> Professional PHP Programming:
>
http://www.amazon.com/exec/obidos/ASIN/1861002963/qid=987388364/sr=1-12/ref=
> sc_b_13/002-2263539-0333643
I've got Beginning PHP 4 (recommended) on the back cover of which it says
that the next book could be "Professional PHP Programming.".
Howeve
Richard wrote:
> Greetings.
>
> I have no problem writing an email client in PHP, which sends emails
> and
> such things. One thing only, can I check someones POP3, such as mine,
> through PHP? If so, what should be needed to complete it..? The server I
> am using is running Linux FreeBS
Adam wrote:
> try sending us the sample code. I use netscape 4 for testing and it seems
> to work just fine.
My whole project is based on inserting pieces of html. Works like a dream
in Netscape 4.75 Linux.
M.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
On my login page (index.php) I have at the top
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]
Tyler Longren wrote:
> In line 3, you don't need your tags again.
> This is how you have it:
> print "TID detail view - Document #";
>
> this is how it should be:
> print "TID detail view - Document #$id";
Ofcourse, I've seen that all the time - and yet ...
oh well ... a bug in the carbon base
It's not first of April today is it?
In:
";
print "TID detail view - Document #";
$sql="select * from tid_tbl where id=" . $id;
$result1=mysql_query($sql, $mysql_link);
$row = mysql_fetch_array($result1);
echo '';
echo 'Subject' .
$row["subject"] . '';
echo 'Issue/Info'
. ereg_replace (1
Stig Venaas wrote:
> So the arrays contain one string each? array_diff() won't work then.
Sorry - my fault.
I'm getting the values from a database - not manually added.
> Try this:
>
> $a = array(1, 2, 3, 4, 5);
> $b = array(1, 2);
> $test = array_diff($a, $b);
> $lines = count($test);
> echo
Thanks everyone for all the responses.
I think I'll look into sessions in the future. Meanwhile I'll have to see
what others come up with.
Thanks,
Martin S.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
I'm experiencing all kinds of problems with, what we suppose is the cookie
setting. This is the code:
if (isset($authentication)) {
setcookie("status", $status, time()+600);
setcookie("user", $user, time()+600);
setcookie("group", $group, time()+600);
setcookie("authentication", $authent
How do I make a variable persistent between webpages?
V e r b a l
--
PHP General 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-mail: [EMAIL PROTECTED]
Sorry bout the length I'm a newbie to PHP/MySQL so bare with me ...
Here's a snippet of an app I'm hacking. I have a form that should update a
client form. the cl_ are taken from a database table and works nicely.
The point of this that they should possibly be replaced by txtXXX and put
31 matches
Mail list logo