db2_fetch_assoc [message #9261] Sun, 25 March 2007 00:25
Go to next message jonfparis is currently offline
jonfparis Messages: 13 Registered:
April 2006 Junior Member Based on this example while ($row =
db2_fetch_assoc($stmt)) { echo ($row['TKiEY'] .
"<br />"); } in the thread:
http://www.zend.com/forums/index.php
t=msg&goto=8437& ;S= &srch=db2_fetch_assoc
#msg_8437 laptop battery
I have been working with db2_fetch_assoc and I must be
missing something somewhere. I'm jet lagged so maybe
that's the answer but ... This works: $row =
db2_fetch_assoc($stmt); print_r($row); But this based on the
example above doesn't: print_r($row); } In fact it produces
an "Assignment in condition" error. What's the
difference between what I have and the quoted example that
causes this thinkpad
dzarder is currently offline dzarder Messages:
37 Registered: February 2007 Member Hi
Jon, I tried out this code myself: This WHILE loop is the same
method I have been using in most of my php scripts and it runs
fine for me. Although it does mention the "Assignment in
condition" message when I press the "Analyze
Code" button in Zend Studio, the code does run. microsoft
Are you wondering why this error message is displayed in the
Code Analyzer or does your script not even run when you try to
execute it Dave Re: db2_fetch_assoc [message #9634 is a
reply to message #9632 ] Fri, 13 April 2007 12:31
Go to previous message Go to next message dzarder wrote
on Fri, 13 April 2007 12:04 Are you wondering why this
error message is displayed in the Code Analyzer or does your
script not even run when you try to execute it laptop computers
Hi Dave - thanks for looking at this. The answer is
"Both" actually. I'd like to know why it throws
the error message but more importantly why it doesn't work.
I can't see any significant difference between them but the
single row retrieve works and displays the data but the version
in the when loop displays nothing. Re: db2_fetch_assoc [message
#9636 is a reply to message #9261 ] Fri, 13
April 2007 14:38 Go to previous message Go to next
message laptop computer
Jon, I was able to get rid of the "Assignment in
condition" message by changing my code to the following:
while ($row) { But, being somewhat of a php newbie, I don't
know if this logic would work in your example or not. Re:
db2_fetch_assoc [message #9637 is a reply to message
#9636 ] Fri, 13 April 2007 14:24 Go to
previous message Go to next message dzarder wrote on Fri, 13
April 2007 14:38 desktop computer
Thanks Dave - I'll switch to the primed loop if all else
fails. [Updated on: Fri, 13 April 2007 14:24] Re:
db2_fetch_assoc [message #9638 is a reply to message
#9261 ] Fri, 13 April 2007 15:32 Go to
previous message Go to next message cwabbott is currently
offline cwabbott Messages: 15
Registered: April 2007 You could change the
level at which your error messages stop your script from
running. Using the assignment in condition is pretty standard -
although it does throw a low level warning. notebooks
Showing record like in a SUBFILE [message #9192] Wed, 21
March 2007 17:29 Go to next message maniva is currently
offline maniva Messages: 6
Registered: March 2007 Junior Member Can
somebody help me giving an example of a PHP page that show a
table paged. lenovo
For example 10 record per page and at the end show the total
number of page. I hope I'm clear Thanks Report
message to a moderator Re: Showing record like in a
SUBFILE [message #9219 is a reply to message
#9192 ] Thu, 22 March 2007 19:57 Go to
previous message Go to next message chris_hird is currently
offline chris_hird Messages: 75 hard drive
Registered:
August 2006 Member Not sure what you are trying to achieve,
but looks like you just want a total number of records
displayed If so put a counter which is incremented each time
the record is read and displayed in the table. This would be
carried forward for every page you create. You must have a
counter to determine the number of records per page so its just
a counter which supplements this Using a cookie or session
variable would suffice I think travelstar
maniva wrote on Sat, 24 March 2007 12:12
Suppose I've a file with 1000 records. Can anibody help
me [Updated on: Wed, 28 March 2007 07:10] Re: Showing record
like in a SUBFILE [message #9320 is a reply to message
#9318 ] Wed, 28 March 2007 10:02 Go to
previous message Go to next message ewilson is currently
offline ewilson Messages: 22 gateway
Registered:
October 2006 I certainly don't have the complete answer
but I'll give this a try. The ratio of replies to views in
this forum concerns me. It might be possible to use a
scrollable cursor and include the desired record number in your
POST. Maybe submit buttons for going forward and back. There
might be a possibility of records being added or deleted
between views. If that looks like a problem you could build a
temporary table first then run your selects over it. laptop parts
Hope this helps, Eddie Re: Showing record like in a SUBFILE
[message #9389 is a reply to message #9192 ]
Thu, 29 March 2007 20:04 Go to previous message Go to
next message markus_bergh is currently offline markus_bergh
Messages: 24 Registered: September
2006 Location: Australia Yes, I agrea with the
previos post. I also wanted to know the anser to this. In the
end I came up with the code below but I would loooooove to hear
some ideas from anyone who is willing to give an opinion. software
I suppose this question/idea is not specific to the AS400
(aka i5 etc). This problem must have been solved before by
people who use other platforms but I cant find the answer. <
php # Copyright: markus, feel free to send money. # # This
example uses a "SCROLLABLE" cursor. # This allows you
to fetch a record by cursor number. # You realy need to make
sure that you increment the cursor number otherwise hard drives
# you will create a loop. # $conn = ... whatever you do to
connect. # The next section of code builds and executes the sql
statement. $sql = "select * from library.monkey";
$stmt = db2_prepare($conn, $sql, array('cursor' =>
DB2_SCROLLABLE)); if (!$stmt) { ... whatever } $result =
db2_execute($stmt); if (!$result) { .... whatever >
<table border='1'> <tr> <thead>
<td><b>Monkey</b></td> electronics
By: rohitvi on Thu, 01 February 2007 2 984
Thu, 01 February 2007 08:03 By: rohitvi download a
file By: ronysamuel on Wed, 31
January 2007 3 1331 Wed, 31 January 2007 23:34 By:
ronysamuel Using Zend Framework GData to access
Spreadsheets By: quibus on Wed, 31
January 2007 0 897 Wed, 31 January 2007 15:27 canon
By: quibus Download form puzzle...Can you solve
it By: PhPete on Mon, 29 January 2007
5 1602 Wed, 31 January 2007 00:41 By: PhPete Zend
optimizer By: arupphp on Mon, 29
January 2007 1 771 Tue, 30 January 2007 12:33 By:
coffear Autoresponse mail By:
pavi99 on Tue, 30 January 2007 1 646 Tue, 30
January 2007 12:31 desktop pc
icon9.gif function.include - not available in PHP
5
By: Freelancealot on Thu, 25 January 2007
7 1341 Mon, 29 January 2007 09:51 Using $this when not
in object context By: nanus on Sun,
28 January 2007 2 958 Mon, 29 January 2007 09:44 Apache
Installation Error By: ilavaa on Mon,
29 January 2007 0 1002 Mon, 29 January 2007 09:40 desktop computers
By: ilavaa Extract data from a text file, question
from a newbie By: sdothard on Tue, 17
October 2006 3 1704 Mon, 29 January 2007 09:39 Error
Connecting to postgres By: jobs4imran
on Mon, 29 January 2007 0 860 Mon, 29 January 2007 01:41 By:
jobs4imran BTW of ......... By:
whisher on Sun, 28 January 2007 0 833 Sun, 28
January 2007 10:24 think pad
BTW of .........
By: whisher on Sun, 28 January 2007 0 833
Sun, 28 January 2007 10:24 By: whisher icon5.gif How
can I expose the object's method and properties
By: madman0 on Thu, 25 January 2007 2 679 Sat,
27 January 2007 10:30 By: coffear Matching values in
two arrays By: thefinerminer on Fri,
26 January 2007 3 1127 Sat, 27 January 2007 10:43 repair
By: thefinerminer care need to take By:
chaitanyajak on Sat, 27 January 2007 0 886
Sat, 27 January 2007 04:45 By: chaitanyajak Run time
script size By: jpedrobarbosa on Thu,
25 January 2007 3 1075 Fri, 26 January 2007 10:52 By:
mpb001 Is there a command that helps to understand what
the function does data recovery
By: madman0 on Thu, 25 January 2007 1 554
Thu, 25 January 2007 19:11 By: greg8872 URL vs
URI By: riksi on Wed, 17 January 2007
1 823 Thu, 25 January 2007 18:35 Combining
Data By: farazyashar on Mon, 15
January 2007 1 775 Thu, 25 January 2007 18:27 expain
this line By: sekarganesh on Sat, 20
January 2007 2 884 Thu, 25 January 2007 14:17 cisco
By: dzr_rtw webservice returning
DOMDocument By: janbom on Thu, 25
January 2007 1 666 Thu, 25 January 2007 13:09 By:
beninblack AOL Email Issue By:
vijayamin_it on Wed, 24 January 2007 0 801
Wed, 24 January 2007 23:40 By: vijayamin_it Hello
Developers ! By: sekarganesh on Wed,
17 January 2007 1 692 Wed, 24 January 2007 12:25 keyboard
By: jgarrouste on Thu, 16 February 2006 0
27966 Thu, 16 February 2006 03:25 By: jgarrouste
ZendEncoder: Unable to locate a valid license! By:
raksoft on Thu, 26 January 2006 1 7261 Wed, 15
February 2006 03:44 Fatal error: Unable to read 320
bytes in xxxx/xxx.php in line 0 By:
jimheng83 on Sun, 12 February 2006 1 3928 Sun,
12 February 2006 07:19 monitor
By: jimheng83 Zend Team make a statement! Files can
be decoded! By: jimplush on Thu, 05
January 2006 2 9367 Fri, 27 January 2006 13:50 By:
jplush76 Check if source is zended By:
natio on Sun, 01 January 2006 1 6612 Wed, 18
January 2006 09:38 Pages (4): [ « < 1
2 3 4 > »] Create a
new topic Goto Forum: desktop
Topic Replies Views Last message Newbie with PHP
Issues
By: grizzlyduck on Mon, 02 July 2007 0
2573 Mon, 02 July 2007 20:21 By: grizzlyduck Help: Zend
on google calendar By: lamuk on Wed,
30 May 2007 1 2933 Tue, 12 June 2007 23:34 By: chuck505
Survey, iPod and T-shirts.... infosys
By: yossi_zend1 on Wed, 16 May 2007 0 6112
Wed, 16 May 2007 14:18 By: yossi_zend1 icon10.gif
Problem with SMTP By: Jemison on Wed,
25 April 2007 1 2629 Thu, 03 May 2007 04:38 By: srobert
$HTTP_POST_FILES By: nikii on Wed, 14
February 2007 1 6047 Thu, 01 March 2007 11:50 By:
harsh789 refurbished laptops
learn me
By: abosaif on Sat, 10 February 2007 0
13830 Sat, 10 February 2007 05:04 By: abosaif upgrade
from PHP 5.0 to 5.2 By: hwang2404 on
Wed, 10 January 2007 1 6888 Tue, 06 February 2007 01:32 By:
coder123456 icon1.gif certification/training Centers in
Pune By: kamleshpdude on Wed, 20
December 2006 1 2700 Wed, 27 December 2006 23:56 wipro
By: dhwani Is there any Audio Tutorils Online for
PHP By: jirilmongeorge on Tue, 05
December 2006 2 3356 Mon, 18 December 2006 02:01 By: Anonymous
Coward Which training By:
ilyaz44 on Sun, 03 December 2006 3 3030 Thu,
07 December 2006 19:57 Php certification By:
redframe on Wed, 15 March 2006 2 22975 Thu, 30
November 2006 19:59 lap top
New to these waters
By: lukeurtnowski on Mon, 17 July 2006 1
9687 Thu, 28 September 2006 07:10 By: straawberry What
Knowledge Do I Need By: drezard on
Thu, 16 March 2006 1 19352 Wed, 30 August 2006 13:00 By:
seanboy23 Webcast missed - is there an archive
By: joda33 on Fri, 28 July 2006 2 4207 Wed, 02
August 2006 02:03 refurbished
Zend - The PHP Company
Search Search FAQ FAQ
Login Login Home Home
nitrobear's Profile Date Registered: Thu, April 20, 2006
Message Count: 3 Messages(s) (0.01 average messages per day)
Show all messages by nitrobear Real Name: Jean
Szabo Status: Junior Member memory
Jens Flister, Division Manager Development Streamdesign
Perfect protection with the Zend Guard
Streamdesign faced a dilemma common to commercial
software developers: how to hide its intellectual property when
distributing applications to customers running
streamdesign's code at their sites. "Before we found
out about the Zend Guard, our only choices were to write our
own pre-compiler or to use a programming language other than
PHP, " recalls Jens Flister, division manager of
streamdesign's development. intel
The German firm had in fact begun work on an in-house
compiler. However, after becoming a beta site for Zend Guard,
Jens and his team realized they had found an answer to their
problem: "The Zend Guard protects our source code
perfectly, and the cost was far less than developing our own
compiler, " he says. as400
Launched in January 1999, streamdesign develops and
distributes Web applications ranging from groupware systems to
integrated e-commerce/enterprise resource planning solutions.
The company, which works with an international network of
partners and customers, creates Web-based applications that get
companies talking and working together. Now, with the one-time
investment in the Zend Guard, streamdesign has been able to
distribute the company's encoded applications to an
unrestricted number of end users. averatec
For streamdesign, knowing that Zend provided quality-assured
testing, documentation and support services for its encoder
also factored into the company's decision to acquire the
Zend Guard. streamdesign's development environment is based
on PHP 4.0.3 and the Apache server on Red Hat, Debian and SuSE.
The company has two commercial solutions currently shipping.
Jens reports that customers who received the Zend-encoded
applications "did not notice any difference in
performance. From their point of view, nothing had
changed." hardware
At the same time, he notes, "from our point of view, a
lot had changed. streamdesign saved significant time-to-market
and development expense by eliminating the costs of creating an
in- house pre-compiler. Yet we still achieved the benefits of
protecting our intellectual property -- all because of Zend
Guard." dual xeon
" Software is the core of our business and represents
years of development effort. With the Zend Guard, we can
protect our intellectual property while continuing to give our
customers the performance and convenience they expect from
ScheduleOnline. " storage
Bob Fronabarger, Vice President of Engineering
ScheduleOnline Online and on time, thanks to the Zend
Guard. For ScheduleOnline, keeping to
a deadline is a top priority and a matter of reputation. So
when the company had to ship its entire Web site to a client,
company executives were faced with a challenge: how could they
encode their entire site and still send it out on time seagate
With the Zend Guard we were able to quickly encode our
entire Web site and ship it to an important customer, while
staying on schedule, " recalls Bob Fronabarger, vice
president of engineering. "Now, with the Zend Guard, we
can license each corporate customer a complete working version
of the software, while still protecting our proprietary code,
" says Bob. "Since almost all of our Web pages are
created dynamically through PHP scripts, we do not want to
reveal our intellectual property. With the Zend Guard, we
don't have to." computer sales
monebaggasse
-Zend and IBM Sponsor Wiki for System i PHP Redbook Development ( 12) //www.itjungle. story07.html 5. Announcements There will be many announcements regarding PHP and Zend over the next three months that will interest all who are reading this and many who are not receiving these monthly updates. It is a very exciting time for those on the System i platform wishing to build web applications and we, Zend, look forward to working closer with all of you.
Zend Core for IBM is the industry' box, PHP production environment, C and features seamless integration with IBM's DB2 and Informix databases. to download your copy of Zend Core for IBM now! For rmation also see //www.ibm. zendcore.