The first script works ' modify_values.php' showing the values and a modify
link next to each but the next script it parses to 'modify_values2.php' is
obviously not working. I have tried to modify it from another script and
cant get it to pass the correct variables-- it always shows the first r
There's a big difference between the first and second scripts your using.
The second one isn't using a while loop so will only return the first row in
the recordset. See below.
HTH
Cheers
Matt
- Original Message -
From: "Anasta" <[EMAIL PROTECTED]>
To:
Sent: Sunday, December 18, 2005 8
Aside from the 20 suggestions you've already got, let me add this one:
elseif( ($page != "one") or ($page != "two") or ($page != NULL) ) {
Echo "Undefined!page isn't
defined correctly!";
}
is useless code. Why?
$page = null; never happens (you made sure of that further up the page).
$page
Hi,
I am looking for a full time online Job. Please have a look at my CV at the
below link. any one looking for freelancer or permanent employee 8 hours a
day, 5 days a week.
Salary 1000 USD per month
www.bsdinfotech.com/loveneesh1.htm
Regards,
- Original Message -
From: "Matt Stone
Jared Williams wrote:
> Hi,
> Just unset the ones you've picked
>
> #random images example
> #this is your file
> $file = "images.txt";
> #open the file
> $openFile = file($file);
> #generate a random number
> srand((double)microtime()*100);
> #get one of the entries in the file
> for
Silvio Porcellana [tradeOver] wrote:
>
>
> $file = "images.txt";
> $openFile = file($file);
> $num_images = 10;
> # don't need this is PHP > 4.2.0
> srand((float) microtime() * 1000);
> $random_keys = array_rand($openFile, $num_images);
> foreach ($ra
Thank you very much. This is exactly what I wanted to do.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It just wont insert new data into DB--any ideas as i have gone over and
over.
Edit";
}
}
?>
">
Name: " SIZE=15 maxlength="15">
Rating: " SIZE=3 maxlength="3">
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
On Sun, 2005-12-18 at 07:41, Anasta wrote:
> It just wont insert new data into DB--any ideas as i have gone over and
> over.
Your not doing any inserts, two selects and one update...
insert in t1 values('foo','bar','1 1 2 3 5 8 13');
--
s/:-[(/]/:-)/g
BrianGnuPG -> KeyID: 0x04A4F0
Manuel Lemos wrote:
I built PHP 5.1 with Apache 2.2 following these instructions and it
works:
http://ww.php.net/manual/en/install.unix.apache2.php
Seems to work now... maybe Apache meant that the 2.0 vs. 2.2 module info
was valid only for precompiled binaries...
--
PHP General Mailing List
Hi Johnson,
what is not working in this code?
what is the problem? It will always execute the first part of if condition,
i.e.
It will print
Page OneIt works!!http://lom.game-host.org/uploads/erik/index.php?page=two";>Nice...<
/body>
What you are expecting from this script?
One recommendation,
Well. Here's an example of the page --
http://lom.game-host.org/uploads/erik/
It is just loading the second page, no matter what. I haven't added the
isset thing yet, but I'll try it. BTW: I'm only 14, so I have yet to use an
older version, and upgrade to a newer PHP. ;-)
Thanks,
Erik Johnson
I was wondering.. how exactly does the isset function work? I saw that
Robert Cummings wrote:
$page = isset( $_GET['page'] ) ? $_GET['page'] : null;
What exactly does that mean?
Zareef Ahmed napisał(a):
Hi,
Hi
what is not working in this code?
That's how I see it
http://lom.game-host.org/uploads/erik/";;
// yes the isset is ok here
If(!isset($page)) {
$page = "one";
}
if($page == "one") {
// as far as I know echo is all low case written but maybe it's not a
mus
Hi,
I think you should read a beginner tutorial about SQL. there are just
four things Insert, Delete, Update and select, that need to be known for
working with database in normal conditions, after that you can move to
create, drop, alter or much more like joins etc.
http://www.lmpx.com/mys
- Original Message -
From: "Erik Johnson" <[EMAIL PROTECTED]>
To:
Sent: Sunday, December 18, 2005 10:41 AM
Subject: Re: [PHP] Someone please help me with this PHP script.
I was wondering.. how exactly does the isset function work? I saw that
Robert Cummings wrote:
$page = isset( $_GE
The ? And : are a shortcut for ifelse, that could also be written
If (isset($_GET['page'])
{
$page = $_GET['page'];
}
else
{
$page = null;
}
The shortcut is a lot quicker to write (if you understand it) but not as
readable.
isset just returns true if a variable has been set, false if not :)
h
Thank you very much. My dad is in college, but I have been teaching myself
HTML, Java, VB6, and PHP. I've been learning to do graphical artwork with
Adobe Illustrator, and Photoshop. I actually started programming before my
dad was in school, and I got him started I guess! Anyway; I've learnt a
I still can't seem to get it to work. If you want to see my phpinfo(), then
go to http://lom.game-host.org/uploads/erik/info.php .
I'll keep trying, and hope for the best! It may be my php.ini file, but I
have no clue.
$sql = "UPDATE leaderboard SET Name='$Name', Rating='$Rating' WHERE
ID=$id";
//replace news with your table name above
$result = mysql_query($sql);
echo "Thank you! Information updated.";
}
}
?>
You don't set id in this case. Of course, from some of your other
code,
modify_values2.php
++
You'll want to do something like:
$id = mysql_real_escape_string($_GET['id']);
$sql = "Select * from leaderboard WHERE ID='$id'";
David Hall
--
PHP General Mailing List (http://www.php.net/)
T
- Original Message -
From: "M. Sokolewicz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "PHP LIST"
Sent: Sunday, December 18, 2005 4:34 AM
Subject: Re: [PHP] Someone please help me with this PHP script.
> Aside from the 20 suggestions you've already got, let me add this one:
> elsei
Okay.. I was just wondering; What's the difference between = and ==? Would
it matter if I changed them? It seems as though if I put = instead of the
=='s, it comes up ONLY page two no matter what $page equals, and if it's ='s
instead of =='s, then it comes up with only page one no matter what $pag
Hi Johnson,
I am glad to know about you. In my view, PHP is one of easiest
language of world. Only one problem for beginners is the numbers of
functions in it , PHP has more than 4500 functions, ( infact, it is the
strength of PHP), so they face problems when every other person tell them
ab
I understand that some people aren't nice to newer people that try their
hardest to figure out a problem. Older, more experienced people see this
and they think that it's an easy fix, and that they just aren't trying, but
in essence.. they are trying just as hard as someone much more experienced.
Erik Johnson napisał(a):
Okay.. I was just wondering; What's the difference between = and ==? Would
it matter if I changed them? It seems as though if I put = instead of the
=='s, it comes up ONLY page two no matter what $page equals, and if it's ='s
instead of =='s, then it comes up with only p
Woohoo! I got it to work. Thanks everyone! This is exactly what I needed:
making multiple-page files in one file. It saves me the hassle of trying to
know what file is what, and where. Instead.. one big file!
On 12/18/05, Łukasz Hejnak <[EMAIL PROTECTED]> wrote:
>
> Erik Johnson napisał(a):
>
Has anyone seen a photo gallery that will do the following:
- Allow several people to upload images to various subdirectories via
FTP, and then a cron script or something periodically scans the
directories and creates any needed thumbnails and creates new pages
for all new images;
- Is te
Actually, I disagree with the explenation here. The reasoning behind it
is correct, but the explenation contains a number of incorrect statements.
The = (a single '=') is the so-called assignment operator. This operator
assigns the right-hand value to the left-hand variable. So, when you
write
Hi there!
Is it possible to load a -list with databasinfo without reloading a
page???
/G
http://www.varupiraten.se/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, Dec 18, 2005 at 08:28:22PM +0100, Gustav Wiberg wrote:
> Hi there!
>
> Is it possible to load a -list with databasinfo without reloading a
> page???
With AJAX, yeah.
Curt.
--
cat .signature: No such file or directory
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
hello,
I have encountered this on several cds and well when i went to a friend's
ftp site in windows, using linux and php(i think its a linux mainly
question) but i have run accross files and directory names like this:
they appear like this in linux, path\ of\ the\ windows\ file.txt
i am try
I just figured out my own answer to the previous post so i guess just
ignore the question :p
i'll learn to try things first one of these days lol
matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Original Message -
From: "Gustav Wiberg" <[EMAIL PROTECTED]>
To: "Curt Zirzow" <[EMAIL PROTECTED]>
Sent: Sunday, December 18, 2005 8:46 PM
Subject: Re: [PHP] Load from db into -list
Ajax? What is that?
/G
- Original Message -
From: "Curt Zirzow" <[EMAIL PROTECTED]>
To:
Richard Davey wrote:
There are various issues re: SQL injection and lack of filtering going
on here, but perhaps not best to dwell on those -just yet-, as long as
you are aware that your script is lacking in all forms of security?
Then you can address that once you've got it working
Gustav Wiberg wrote:
Ajax? What is that?
http://en.wikipedia.org/wiki/AJAX
php is a server side language, so you must refresh the page to have php
do it directly, so using AJAX, you can talk to the server from the page.
D. Hall
--
PHP General Mailing List (http://www.php.net/)
To unsu
Curt Zirzow wrote:
On Sun, Dec 18, 2005 at 08:28:22PM +0100, Gustav Wiberg wrote:
Hi there!
Is it possible to load a -list with databasinfo without reloading a
page???
With AJAX, yeah.
Curt.
call it 'remote scripting', dammit! it rarely seems to get used as
'ajax' strictly.. unless you'r
Labunski wrote:
"PHP does not support function overloading."
So, is there any other way of getting a number of parameters(variables)
passed to a function?
aka.
function fruits($apple, $banana, $kiwi, $grape){
#should (somehow) output 4
}
OK. if it was an array, than I could use count($array
On Sun, 2005-12-18 at 15:22, Gustav Wiberg wrote:
> > Ajax? What is that?
Asynchronous JavaScript and XML, or Ajax, is a web development technique
for creating interactive web applications using a combination of:
- XHTML (or HTML) and CSS for marking up and styling information
- The Document Ob
On Mon, Dec 19, 2005 at 08:24:15AM +1100, joshua may wrote:
> Curt Zirzow wrote:
> >On Sun, Dec 18, 2005 at 08:28:22PM +0100, Gustav Wiberg wrote:
> >>Hi there!
> >>
> >>Is it possible to load a -list with databasinfo without reloading
> >>a page???
> >
> >With AJAX, yeah.
> >
> >Curt.
>
> call i
comex wrote:
xml_set_element_handler($this->xmlParser, "$this->startTag",
"$this->endTag");
xml_set_element_handler($this->xmlParser, array(&$this, 'startTag'),
array(&$this, 'endTag'));
i copied this from a posting about two weeks ago by Jochem Maas:
in this case there is an alterntive:
ht
hello again
I am trying to figure out how i can read the list of files in a directory
using the opendir() and readdir() functions. Normally this goes fine but
within the loop, what i am wanting to do is echo the filename if it is a
jpg file, but if its a .gif, just continue.
I have several fi
On Sun, Dec 18, 2005 at 05:12:33PM -0600, matt VanDeWalle wrote:
> hello again
> I am trying to figure out how i can read the list of files in a directory
> using the opendir() and readdir() functions. Normally this goes fine but
> within the loop, what i am wanting to do is echo the filename if
PHP doesn't natively support function redefining.
Functions with variable length arguments are a different ballgame in
PHP. Have a look at func_num_args[1] and the other functions in the
"Function handling" section of the manual.
1: http://php.net/func_num_args
Labunski wrote:
> "PHP does not
hello again
I am trying to figure out how i can read the list of files in a directory
using the opendir() and readdir() functions. Normally this goes fine but
within the loop, what i am wanting to do is echo the filename if it is a jpg
file, but if its a .gif, just continue.
I have several fi
> >> xml_set_element_handler
> >> (
> >> $parser,
> >> array( $this, 'xml_start_element' ),
> >> array( $this, 'xml_stop_element' )
> >> );
> >>
Thanks for helping me out :).
Warm regards,
ah
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
hi!
We are looking for PHP programmers from hyderabd.
If you are an experienced PHP programmer, and have experience of developing
calendar or dairy , message board application, please send your CV to
[EMAIL PROTECTED]
All PHP programmers are welcome to apply!.
Best regards,
Vikram.
On Mon, Dec 19, 2005 at 02:58:00AM +0100, Vikram Kumar wrote:
> hi!
>
> We are looking for PHP programmers from hyderabd.
>
> If you are an experienced PHP programmer, and have experience of developing
> calendar or dairy , message board application, please send your CV to
> [EMAIL PROTECTED]
>
On Dec 18, 2005, at 6:19 PM, Curt Zirzow wrote:
On Mon, Dec 19, 2005 at 02:58:00AM +0100, Vikram Kumar wrote:
We are looking for PHP programmers from hyderabd.
You can stop sending these messages to the list.
I am with Curt on this one. I get enough spam as it is already.
WhTF is Hyderabd an
On Fri, Dec 16, 2005 at 09:09:08AM -0500, Eric Butera wrote:
> Hello all,
>
> I have an image gallery script I created and I seem to be having some
> difficulties with it. I am using this script on many different platforms
> and different PHP versions. I have tried it on 4.4.0 (linux) and
> 4.3.
Hi,
Using AJAX or JSRS you can do this.
See
http://www.ashleyit.com/rs/main.htm
Zareef Ahmed
- Original Message -
From: "Gustav Wiberg" <[EMAIL PROTECTED]>
To: "PHP General"
Sent: Sunday, December 18, 2005 2:28 PM
Subject: [PHP] Load from db into -list
> Hi there!
>
> Is it
Hyderabd, India?
Would you stop flaming the list with these requests?
Looking at your website, not a single experienced programmer would even
consider applying to the job mentioned. Not only does the website look like
it's made by someone with the know-how of a thirteen year old kid but the
compa
Hi,
I am posting a request to a server from a PHP and getting a result. When I
trap the response, it comes with all the contents. Is there a method to
strip off the extra information and just capture the result?
For example I get
HTTP/1.1 200 OK
Date: Mon, 19 Dec 2005 07:25:38 GMT
Server: Apache/
53 matches
Mail list logo