Script Head wrote:
Nobody has mentioned Fusebox (www.fusebox.org). I have been using it to
develop PHP applications for about 2 years. It has proven to be extremely
flexible when a large number of developers collaborate on one project.
jedit :)
Love macros and plugins!
http://www.jedit.org/
Hello,
I have one MySQL table with about 500 rows. I need to read the table one row
at a
time, make some changes to data in one field and then store the changed data
to another table.
I'm using PHP to change the data but I have no idea how to select one row at
a time from the DB table. There's o
> From: William Stokes [mailto:[EMAIL PROTECTED]
> I have one MySQL table with about 500 rows. I need to read the table one
> row at a time, make some changes to data in one field and then store the
> changed data to another table.
1. May be add a column, CHANGED_FL with default value N.
2. Selec
William Stokes wrote:
I have one MySQL table with about 500 rows. I need to read the table one row
at a
time, make some changes to data in one field and then store the changed data
to another table.
I'm using PHP to change the data but I have no idea how to select one row at
a time from the DB t
Bagus Nugroho wrote:
Hi All,
Is mysqli module enable by default on php 4 as mysql module.
no
If not enable by default, where I can get this module(hopefully a direct link
to download)
you can't, it *requires* PHP 5
Thanks in advance
--
PHP General Mailing List (http://www.php.net
On 12/28/05, Bagus Nugroho <[EMAIL PROTECTED]> wrote:
> Is mysqli module enable by default on php 4 as mysql module.
No, because it's a PHP5 module (if you look at the documentation for
it, all the php.ini settings for it have only been available since
5.0.0).
> If not enable by default, where I
Richard Lynch wrote:
I'm creating some XML data, but not using any of the built-in PHP XML
functions, as they are not necessarily available on all servers.
I need to encode Data (CDATA) such as URLs etc.
htmlspecialchars() works on all my test cases so far, but is it
"right"?...
I don't think
On 12/28/05, William Stokes <[EMAIL PROTECTED]> wrote:
> I have one MySQL table with about 500 rows. I need to read the table one row
> at a
> time, make some changes to data in one field and then store the changed data
> to another table.
>
> I'm using PHP to change the data but I have no idea how
What does 'list' do in a php query?
$result = mysql_query($query) or die('Error, query failed');
list($name, $type, $size, $content) = mysql_fetch_array($result);
found it in this example...
http://www.php-mysql-tutorial.com/php-mysql-upload.php
--
PHP General Mailing List (http://www.php.ne
Ross wrote:
What does 'list' do in a php query?
there is no such thing a php query (unless you count asking a pph
related question). list() is a language construct
an explanation of it can be found in the manual
http://php.net/list
please always read/search the manual before asking question.
Hi,
As there are only 500 rows, there is not any harm in fetching all
records through one query and then do the update between while loop
$query="select * from table";
$result=mysql_query($query);
while($row=mysql_fetch_array($result))
{
$newquery="update YOUR STATEMENT where uniquefiel
working form this example
http://www.php-mysql-tutorial.com/php-mysql-upload.php
my code is as follows, all I get is a corrupt pdf file.
$query= "SELECT * FROM publications WHERE alphabet='a'";
$result= mysql_query($query);
while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){
are people supposed to smell what is not working?
do you get any errors? is it possible the PDF was corrupt
when you uploaded it?
Ross wrote:
working form this example
http://www.php-mysql-tutorial.com/php-mysql-upload.php
my code is as follows, all I get is a corrupt pdf file.
$query= "
The pdf is fine, there are no errors . All I get is a small (130byte) pdf
file which is corrupt when I try and open it.
Thanks,
R.
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> are people supposed to smell what is not working?
> do you get any errors? is it possib
Hi,
I'm using the following code in a PHP 5.1, Windows CLI environment:
$p = new PDO('odbc:driver={Microsoft Access Driver
(*.mdb)};Dbq=beispieldatenbank.mdb');
$s = $p->prepare('INSERT INTO ADDRESSES(TITLE0, LASTNAME0) VALUES(?, ?)');
$s->execute(array('test1', 'test2'));
I'm always getting
Ross wrote:
> The pdf is fine, there are no errors . All I get is a small (130byte) pdf
> file which is corrupt when I try and open it.
>From the code I gather you are saving the uploaded file in the database.
1 - What field type are you using for this?
2 - Are you using some form of encoding (
> Ross wrote:
>> $query= "SELECT * FROM publications WHERE alphabet='a'";
>>
>> $result= mysql_query($query);
>>while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){
>>
>> $row['pdf_size'] = $row['pdf_size']/ 1024;
>> $row['pdf_size']= number_format($row['pdf_size'], 0);
>> $size= $r
M. Sokolewicz wrote:
Bagus Nugroho wrote:
Hi All,
Is mysqli module enable by default on php 4 as mysql module.
no
If not enable by default, where I can get this module(hopefully a
direct link to download)
you can't, it *requires* PHP 5
I've been running mysqli on 4.3.x and 4.4
--
Joh
Hello,
Could you tell me a efficient solution for change page (new location) in
PHP? I tried this code : header("Location: mypage.php");
But in some case, I have error message "heade already send". Then I use a
javascript solution : window.location.href="mypage.php";
Is there a good solution in
[snip]
Could you tell me a efficient solution for change page (new location) in
PHP? I tried this code : header("Location: mypage.php");
But in some case, I have error message "heade already send". Then I use a
javascript solution : window.location.href="mypage.php";
Is there a good solution in p
Christian Ista wrote:
> Hello,
>
> Could you tell me a efficient solution for change page (new location) in
> PHP? I tried this code : header("Location: mypage.php");
>
note: HTTP/1.1 requires an absolute URI
http://php.net/header
> But in some case, I have error message "heade already send". T
Hi,
How do I install pdo_informix?
There's not much info on it's homepage
http://pecl.php.net/package-changelog.php?package=PDO_INFORMIX and it's
not yet in cvs php-src. Although it's in the root of cvs (
http://cvs.php.net/viewcvs.cgi/pecl/pdo_informix/ ).
I'd like to add it to the stable
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]
> Header is a good solution, and is the only one available in PHP for
> redirects. It requires that you do not send anything else out to the
> browsers before sending the redirect, which is what is causing your error.
> You can always use the output b
[snip]
Ok but there is something more strange.
I use "header location" in a switch/case. An header location by case. I
don't understand at the end of the case, the header location don't work and
I go through the others cases.
Any idea why ?
[/snip]
Not without seeing code.
--
PHP General Maili
M. Sokolewicz wrote:
John Nichel wrote:
M. Sokolewicz wrote:
Bagus Nugroho wrote:
Hi All,
Is mysqli module enable by default on php 4 as mysql module.
no
If not enable by default, where I can get this module(hopefully a
direct link to download)
you can't, it *requires* PHP 5
John Nichel wrote:
M. Sokolewicz wrote:
Bagus Nugroho wrote:
Hi All,
Is mysqli module enable by default on php 4 as mysql module.
no
If not enable by default, where I can get this module(hopefully a
direct link to download)
you can't, it *requires* PHP 5
I've been running mysqli
I have an Openlink Single Tier Driver on an XP pro machine with windows
installed on drive f: because I have a dual boot with Red Hat. Database
is Progress 8.3c on a SCO Unixware 7.1.4 Dell Server. I can connect to
all progress databases and pull data utilizing a System DSN via
Openlink, how
Jeremy Schreckhise wrote:
I have an Openlink Single Tier Driver on an XP pro machine with windows
installed on drive f: because I have a dual boot with Red Hat. Database
is Progress 8.3c on a SCO Unixware 7.1.4 Dell Server. I can connect to
all progress databases and pull data utilizing a Sy
On 12/28/05, PHP Superman <[EMAIL PROTECTED]> wrote:
>
> I agree with Greg, if you guys don't care about new versions lets all
> downgrade to Pentium 1 computers using dial up, if we don't move from PHP 4
> to PHP 5 now, then when PHP 6 comes with a truckload of new features and
> changes to progra
I have some experience with PHP, but not with these operators:
->
=>
Can someone explain how they are working in this snippet from Yahoo's search API
foreach($xml->Result[$i] as $key=>$value)
I don't see anything about them in the "Array Operators" documentation..
Thanks
please read
http://www.php.net/manual/en/language.oop.php
explaining what Objects are exactly (since it's looping over an object
property which just so happens to be an array)
http://www.php.net/manual/en/control-structures.foreach.php
explains what => is (part of foreach())
- tul
Henry Krinkl
Here is a PHP5 hosting company:
http://www.a2hosting.com/
(Please try Google to find more PHP5 hosting companies.)
Please don't make comments like removing older versions of PHP from the
download page. We have delivered solutions to clients that run on PHP4.
Those clients need the ability to con
$xml->Result[$i] - a method call for object $xml
$key=>$value - array notation
Henry Krinkle wrote:
I have some experience with PHP, but not with these operators:
->
=>
Can someone explain how they are working in this snippet from Yahoo's search API
foreach($xml->Result[$i] as $
- Original Message -
From: Erik Saline
To: php-general@lists.php.net
Sent: Wednesday, December 28, 2005 1:08 PM
I installed Apache, PHP, and Mysql during the Fedora Core 4 installation.
PHP 5.0.4
MYSQL 4.1.14
I used php -i to show that mysql and mysqli were installed.
Configure Comm
you are not missing anything, you are actually adding to much. Using "new"
is for making objects, if you take away the "new" in the $result variable
declaration it should work fine.
On 12/28/05, Erik Saline <[EMAIL PROTECTED]> wrote:
>
>
> - Original Message -
> From: Erik Saline
> To: php-
While not PHP, this is a JS question..
My Account
Sign Up!
function jump_page() {
with ( document.JumpForm ) {
if ( JumpItem.value != "" )
document.location = JumpItem.
Hey everyone, is there a way to return all the variables from a string into
an array, for example
$Var1="Yo";
$Var2="Man";
$SQL="SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2";
$AllVars=MySpecialFunction($SQL);
print_r($AllVars);
would ideally print an array like:
{
array
$Var1="Yo"
$Var2=
I want to be able to determine the browser language and
redirect to the correct web folder. However, I want this folder to be
symbolic, since I do not want multiple copies of the same information.
Then the next step would be to pass the browser language to a service
like Google Translate!
--
Best
On Wed, Dec 28, 2005 at 11:58:02AM -0500, John Nichel wrote:
> M. Sokolewicz wrote:
> >John Nichel wrote:
> >
> >>M. Sokolewicz wrote:
> >>
> >>>Bagus Nugroho wrote:
> >>>
> Hi All,
>
> Is mysqli module enable by default on php 4 as mysql module.
> >>>
> >>>
> >>>
> >>>no
> >>>
> I
On Wed, Dec 28, 2005 at 09:43:19PM -0600, Dan Jallits wrote:
> I want to be able to determine the browser language and
> redirect to the correct web folder. However, I want this folder to be
> symbolic, since I do not want multiple copies of the same information.
> Then the next step would be to pa
On Wed, Dec 28, 2005 at 10:30:04PM -0500, PHP Superman wrote:
> Hey everyone, is there a way to return all the variables from a string into
> an array, for example
> $Var1="Yo";
> $Var2="Man";
> $SQL="SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2";
> $AllVars=MySpecialFunction($SQL);
> prin
On Wed, Dec 28, 2005 at 04:56:31PM +0200, Aleksander wrote:
> Hi,
>
> How do I install pdo_informix?
Some information on installtion is here:
http://php.net/pdo_informix
This is a basic pecl installation, the general process goes
something like:
1) get latest release (or if daring cvs che
On Wed, Dec 28, 2005 at 03:15:09PM +0100, Christian Ista wrote:
> Hello,
>
> Could you tell me a efficient solution for change page (new location) in
> PHP? I tried this code : header("Location: mypage.php");
>
> But in some case, I have error message "heade already send". Then I use a
> javascri
Is there any easy php script to run to view an xml file such as new
headlines like so: http://news.google.com/?output=rss or can anyone point
me in the right direction for good online tutorials or books.
On Wed, Dec 28, 2005 at 02:14:43PM +0100, Markus Fischer wrote:
> Hi,
>
> I'm using the following code in a PHP 5.1, Windows CLI environment:
>
> $p = new PDO('odbc:driver={Microsoft Access Driver
> (*.mdb)};Dbq=beispieldatenbank.mdb');
> $s = $p->prepare('INSERT INTO ADDRESSES(TITLE0, LASTNAME0
On Wed, Dec 28, 2005 at 08:33:58AM -0500, Cesar Cruz wrote:
> This error happens in my Web http://www.millonarios.com.co/
>
> Process limit exceeded for uid 10337 [25 >= 24]
>
> as it can be the cause?
This sounds like some sort of OS error, probably due to your uid
not being able to go over
On Wed, Dec 28, 2005 at 01:03:55PM -, Ross wrote:
> The pdf is fine, there are no errors . All I get is a small (130byte) pdf
> file which is corrupt when I try and open it.
Open the file in notepad and look at the 130 bytes, it probably
will give you a clue.
>
> Thanks,
>
> R.
>
> "Joche
47 matches
Mail list logo