[PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Mark Sargent
Hi All, get the following error when calling data from mysql, *Warning*: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in */var/www/html/phpmysqltable.php* on line *36 * Below are snippets of my code, Line 22: $result = mysql_query(SELECT product_name,

[PHP] Having a problem

2005-04-25 Thread Rittwick Banerjee
Hi friends, This is Rittwick Banerjee I have a problem with PHP and MySql while i'm trying to give a code into a PHP file. The main problem is I can't delete any kinds of records from my MySql database using a PHP code . Can any help me ? If there any code possible please e-mail that to me at

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Drewcore
just put a @ symbol before the function calll, eg while ($myrow = @mysql_fetch_row($result)) { etc On 4/25/05, Mark Sargent [EMAIL PROTECTED] wrote: Hi All, get the following error when calling data from mysql, *Warning*: mysql_fetch_row(): supplied argument is not a valid MySQL

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Mark Sargent
Drewcore wrote: just put a @ symbol before the function calll, eg while ($myrow = @mysql_fetch_row($result)) { etc On 4/25/05, Mark Sargent [EMAIL PROTECTED] wrote: Hi All, get the following error when calling data from mysql, *Warning*: mysql_fetch_row(): supplied argument is not a valid

Re: [PHP] Having a problem

2005-04-25 Thread Chris Ramsay
On 4/25/05, Rittwick Banerjee [EMAIL PROTECTED] wrote: Hi friends, This is Rittwick Banerjee I have a problem with PHP and MySql while i'm trying to give a code into a PHP file. The main problem is I can't delete any kinds of records from my MySql database using a PHP code . Can any help

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Hegeds Balzs
Hi all, ever tried to test if your connection to the database succeeded? maybe that's why it shouted that ...not a valid result resource... msg. Balazs Hegedus Mark Sargent wrote: Drewcore wrote: just put a @ symbol before the function calll, eg while ($myrow = @mysql_fetch_row($result)) { etc

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Hegeds Balzs
Hi again, just another tip...it's from the php man: *manmysql_query()* will also fail and return *FALSE* if the user does not have permission to access the table(s) referenced by the query./man Balazs Hegedus Mark Sargent wrote: Drewcore wrote: just put a @ symbol before the function calll, eg

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Mark Sargent
Hegeds Balzs wrote: Hi all, ever tried to test if your connection to the database succeeded? maybe that's why it shouted that ...not a valid result resource... msg. Balazs Hegedus Mark Sargent wrote: Drewcore wrote: just put a @ symbol before the function calll, eg while ($myrow =

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Satyam
I rarely use the @ sign. It is what I call 'balistic programming'. You know, a shell, once it leaves the cannon, is not controlled in any way, you just hope it will get where you want to go. Instead you should check for errors and recover from them as gracefully as possible.. You will see

[PHP] remote call

2005-04-25 Thread Uro Gruber
Hi! I need some sort of RMI style with PHP. For example: 10 servers with backend server in php. Then on frontend server I need to get request from this servers. regards Uros -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Having a problem

2005-04-25 Thread Petar Nedyalkov
On Monday 25 April 2005 10:46, Rittwick Banerjee wrote: Hi friends, This is Rittwick Banerjee I have a problem with PHP and MySql while i'm trying to give a code into a PHP file. The main problem is I can't delete any kinds of records from my MySql database using a PHP code . Can any help

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Janet Valade
Mark Sargent wrote: Hi All, get the following error when calling data from mysql, *Warning*: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in */var/www/html/phpmysqltable.php* on line *36 This means that $result is not a valid result resource. You can

[PHP] Opera 8.0 cache ????

2005-04-25 Thread William Stokes
Hello, Is there somethigh special about Opera 8 and it's way to locally store variable values? I have a application which uses 2 variables to determine what information to retrieve and output from DB. At the first page user has to decide what to do and after that his given 2 variables

[PHP] Flash integration with PHP

2005-04-25 Thread khuram noman
Hello I want to develop a shopping car in flash using php so there any good tutorial or sample code that explain the flash integration with php Regards Khuram Noman __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: [PHP] Flash integration with PHP

2005-04-25 Thread Evert | Rooftop
khuram noman wrote: I want to develop a shopping car in flash using php so there any good tutorial or sample code that explain the flash integration with php Check out amfphp (http://www.amfphp.org). Flash people tend to love it =) grt, Evert -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Flash integration with PHP

2005-04-25 Thread Dan Rossi
From my knowledge amfphp is now vapourware, I am assuming lawsuits etc . PHPObject is the alternative, it however doesnt use the flash remoting component but has its own, it streams serialized data as an array from php classes. the sucky thing is you cant use the remoting monitor in

[PHP] reservation/booking script for a hotel

2005-04-25 Thread Angelo Zanetti
Hi all. I have searched the net for some PHP scripts to do reservations for hotels. Where there are multiple rooms which can be booked for a single day or multiple days. However what I've found is not good enough and am considering writing my own customing booking scripts, but before I start I

Re: [PHP] Flash integration with PHP

2005-04-25 Thread Evert | Rooftop
I'm sure they would tell something about that on the mailing list or website. From what I know it is still active and there's almost a 1.0 coming out grt, Evert Dan Rossi wrote: From my knowledge amfphp is now vapourware, I am assuming lawsuits etc . PHPObject is the alternative, it

Re: [PHP] remote call

2005-04-25 Thread Johannes Findeisen
On Monday 25 April 2005 10:45, Uro Gruber wrote: I need some sort of RMI style with PHP. For example: 10 servers with backend server in php. Then on frontend server I need to get request from this servers. I think there is not the same technology available for PHP. RMI is a JAVA based

Re: [PHP] Flash integration with PHP

2005-04-25 Thread Dan Rossi
Its been in active freeze for two years ? Besides PHPObject is AS2 compatible now. On 25/04/2005, at 8:41 PM, Evert | Rooftop wrote: I'm sure they would tell something about that on the mailing list or website. From what I know it is still active and there's almost a 1.0 coming out grt, Evert

[PHP] Why wont apache parse my php on wamp set up?

2005-04-25 Thread Tom Whitbread
Hey, This is the strangest problem I have had in a long time. I have tried using apache 2 with php 4 as a module and CGI and on both PHP will not be parsed, I have also tried php 5 and had exactly the same problem. I am now trying apache 1.3 and php 5 as a module and it doesn't parse the php and

RE: [PHP] Why wont apache parse my php on wamp set up?

2005-04-25 Thread Jay Blanchard
[snip] This is the strangest problem I have had in a long time. I have tried using apache 2 with php 4 as a module and CGI and on both PHP will not be parsed, I have also tried php 5 and had exactly the same problem. I am now trying apache 1.3 and php 5 as a module and it doesn't parse the php and

Re[2]: [PHP] Why wont apache parse my php on wamp set up?

2005-04-25 Thread Richard Davey
Hello Jay, Monday, April 25, 2005, 12:51:21 PM, you wrote: JB Were there any problems during the compile? Is this on Windows or JB Linux or BSD? You really don't offer enough information for us to JB get started on this. It's Windows I guess from the WAMP in the subject :) To the original

Re: [PHP] reservation/booking script for a hotel

2005-04-25 Thread Angelo Zanetti
yes it will be real time and yes open source is what we're looking for. For this hotel there are only 15 rooms so performance issues wont really come into play. Devraj Mukherjee wrote: Is your system going to be real time? We worked with some reservation products in the past but the

[PHP] Re: Flash integration with PHP

2005-04-25 Thread Manuel Lemos
Hello, on 04/25/2005 06:17 AM Khuram Noman said the following: I want to develop a shopping car in flash using php so there any good tutorial or sample code that explain the flash integration with php It depends on what you mean by Flash integration. Here you may find several classes that

[PHP] Re: Opera 8.0 cache ????

2005-04-25 Thread Jason Barnett
William Stokes wrote: ... This works fine in IE and Firefox but Opera remembers users previous choice and prints wrong info to user. After pressin refresh button it's back to normal. So does Opera store variable values to a local cache so that unset() won't clear them? Sounds odd? If this is

[PHP] Change Object Type

2005-04-25 Thread marc serra
hi, i'm looking for a solution to change the object's class. i got a class and a derived class like this: (just for example, completly stupid ^^) class Ex{ var a; var b; } class Ex2 extends Ex{ var c; } i want to create an object Ex and after change the object class to Ex2 to complete

[PHP] Problems reading a DOMDocument out of a session

2005-04-25 Thread Cas
Hi, I'm trying to read a (XML object) DOMDocument from an session but when I try to do this from another page then where it's declared, it can't be read it. I _can_ read the DOMDocument on the same page out of the session. and also print_r(_SESSION); shows it still is a DOMDocument on all

Re: [PHP] Flash integration with PHP

2005-04-25 Thread Evert | Rooftop
You should check out the CVS, I think you will be suprised. Evert Dan Rossi wrote: Its been in active freeze for two years ? Besides PHPObject is AS2 compatible now. On 25/04/2005, at 8:41 PM, Evert | Rooftop wrote: I'm sure they would tell something about that on the mailing list or website.

Re: [PHP] reservation/booking script for a hotel

2005-04-25 Thread Steve Buehler
Go to http://www.hotscripts.com and type in hotel reservation in the Search For text box, change the category to PHP and then click on Search. Steve At 08:10 AM 4/25/2005, you wrote: yes it will be real time and yes open source is what we're looking for. For this hotel there are only 15 rooms

[PHP] phpclasses formerly Flash integration

2005-04-25 Thread Ryan A
Hello, on 04/25/2005 06:17 AM Khuram Noman said the following: I want to develop a shopping car in flash using php so there any good tutorial or sample code that explain the flash integration with php It depends on what you mean by Flash integration. Here you may find several classes

Re: [PHP] phpclasses formerly Flash integration

2005-04-25 Thread Chris Ramsay
I must admit, I agree with Ryan A's points - I used to visit the site regularly, but the ads and stuff have put me off a little bit these days... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpclasses formerly Flash integration

2005-04-25 Thread Ryan A
On 4/25/2005 4:31:42 PM, Chris Ramsay ([EMAIL PROTECTED]) wrote: I must admit, I agree with Ryan A's points - I used to visit the site regularly, but the ads and stuff have put me off a little bit these days... The main reason I am so pissed right now is, I recommended the site to a pal of

Re: [PHP] Zend Certification Exam

2005-04-25 Thread M Saleh EG
Any advice from the ones that passed? Thanks On 4/23/05, Greg Donald [EMAIL PROTECTED] wrote: On 4/23/05, M Saleh EG [EMAIL PROTECTED] wrote: Anyone who passesd? If I can pass.. well, good luck! :) -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General

[PHP] Re: Problems reading a DOMDocument out of a session

2005-04-25 Thread Cas
Because I'm not sure if attachments are included in this mailinglist, I copied the source of my sample script: - start file -- ? session_start(); if (!$_POST) { // Make new DOMDocument $dom = new DOMDocument('1.0', 'utf-8'); $dom-loadXML('rootnodeThe almighty

Re: [PHP] Change Object Type

2005-04-25 Thread Jochem Maas
marc serra wrote: hi, i'm looking for a solution to change the object's class. i got a class and a derived class like this: (just for example, completly stupid ^^) class Ex{ var a; var b; } class Ex2 extends Ex{ var c; } i want to create an object Ex and after change the object class to

Re: [PHP] Zend Certification Exam

2005-04-25 Thread Aaron Gould
M Saleh EG wrote: Any advice from the ones that passed? Thanks What exactly are you after? Why does it matter if a person has passed or not? As long as someone has taken the exam, that should be sufficient enough to provide some advice. A couple tidbits of advice have already been given to

[PHP] link generating script

2005-04-25 Thread Ed Dorsch
I'm scripting a photo gallery page that generates links (1 through $max), sends the selected number in the url, then displays a set of photos based on the number. However, I want it to display the number of the current gallery differently than the other numbers. If the browser clicks on "3"

Re: [PHP] Change Object Type

2005-04-25 Thread Pedro Luis Cruz Riguetti
-- mierdas saquenme de aca carajo --- Banco de Crédito BCP - Dedicados a hacerte la Banca más simple. Visita nuestra Banca por Internet http://www.viabcp.com

Re: [PHP] link generating script

2005-04-25 Thread Ryan A
On 4/25/2005 5:23:16 PM, Ed Dorsch ([EMAIL PROTECTED]) wrote: I'm scripting a photo gallery page that generates links (1 through $max), sends the selected number in the url, then displays a set of photos based on the number. However, I want it to display the number of the current gallery

RE: [PHP] link generating script

2005-04-25 Thread Ryan A
Hey, This is a common mistake...have a look at what you wrote: if ($n=$Pagenum) {print ' strong ' . $n;} take a look againsee the problem? The above will always validate to true...reason being...you gotto use the equal to equal to instead of just equal to...like this: if ($n==$Pagenum)

[PHP] array from folder

2005-04-25 Thread Ed Dorsch
Can PHP generate an array based on file names in a folder? For example, if I have a folder called "photos" that includes three files -- tree.jpg, house.jpg and boat.jpg -- can PHP "look" at the file and generate a variable $photos= array("tree", "house","boat"). Any ideas for how to

RE: [PHP] array from folder

2005-04-25 Thread Jay Blanchard
[snip] Can PHP generate an array based on file names in a folder? For example, if I have a folder called photos that includes three files -- tree.jpg, house.jpg and boat.jpg -- can PHP look at the file and generate a variable $photos= array (tree, house,boat). Any ideas for how to sniff out a

[PHP] Hidden File Downloads

2005-04-25 Thread Stuart Nielson
I am trying to setup a script that allows people to upload files for specific, permissions-based, projects. i.e. There are logs that are viewable to clients only after login. The admin also has the ability to upload files. These files should be associated with a particular log, and then should

Re: [PHP] array from folder

2005-04-25 Thread Jason Barnett
Jay Blanchard wrote: [snip] Can PHP generate an array based on file names in a folder? For example, if I have a folder called photos that includes three files -- tree.jpg, house.jpg and boat.jpg -- can PHP look at the file and generate a variable $photos= array (tree, house,boat). Any ideas

Re: [PHP] Change Object Type

2005-04-25 Thread Jochem Maas
Pedro Luis Cruz Riguetti wrote: heh Pedro did you want to say something?... you sent an empty email! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Hidden File Downloads

2005-04-25 Thread Jason Barnett
Stuart Nielson wrote: ... Does anybody know how to do this with php? I'm not sure how to find the file in the backend and kick it back to the user with the Save As box popping up. I'm thinking maybe it has something to do with headers, but I'm not sure. Thanks. Stuart Usually when you

Re: [PHP] Hidden File Downloads

2005-04-25 Thread Pascal Polleunus
Stuart Nielson wrote: I am trying to setup a script that allows people to upload files for specific, permissions-based, projects. i.e. There are logs that are viewable to clients only after login. The admin also has the ability to upload files. These files should be associated with a particular

Re: [PHP] Problems reading a DOMDocument out of a session

2005-04-25 Thread Jochem Maas
Cas wrote: Hi, I'm trying to read a (XML object) DOMDocument from an session but when I try to do this from another page then where it's declared, it can't be read it. I _can_ read the DOMDocument on the same page out of the session. and also print_r(_SESSION); shows it still is a DOMDocument

Re: [PHP] array from folder

2005-04-25 Thread Kim Briggs
I have a sloppy, insecure script that does this posted on the web, which I use at home to make pages for my personal homepage: http://kimbriggs.com/computers/computer-software/create-html-table.txt You seem to be passing variables programmatically. This is how I use it

Re: [PHP] Re: Hidden File Downloads

2005-04-25 Thread Philip Hallstrom
Does anybody know how to do this with php? I'm not sure how to find the file in the backend and kick it back to the user with the Save As box popping up. I'm thinking maybe it has something to do with headers, but I'm not sure. Thanks. Stuart Usually when you send the header

Re: [PHP] problem with the pager class not found

2005-04-25 Thread Tomás Rodriguez Orta
I continue with the error page class not found, this class where can I see?, in my disk I have the packet DB.php, pear.php and page.php. somebody can Help me?. some body worked with this class pager best regards TOMAS - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: Tomás

[PHP] Error en PHP

2005-04-25 Thread Patricio Reyes
Tengo instalado WIN98SE PWS PHP 4.3.11 y cuando ejecuto el archivo *.php me sale el siguiente error: PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'msql.dll' acepto y me sale lo siquiente: PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP\php_domxml.dll' -

[PHP] Re: array from folder

2005-04-25 Thread Matthew Weier O'Phinney
* Ed Dorsch [EMAIL PROTECTED]: Can PHP generate an array based on file names in a folder? For example, if I have a folder called photos that includes three files -- tree.jpg, house.jpg and boat.jpg -- can PHP look at the file and generate a variable $photos = array (tree, house,boat). Any

[PHP] Re: phpclasses formerly Flash integration

2005-04-25 Thread Manuel Lemos
Hello, on 04/25/2005 11:28 AM Ryan A said the following: Hello, on 04/25/2005 06:17 AM Khuram Noman said the following: I want to develop a shopping car in flash using php so there any good tutorial or sample code that explain the flash integration with php It depends on what you mean by Flash

Re: [PHP] Error en PHP

2005-04-25 Thread Pedro Luis Cruz Riguetti
como puedo salir de sta lista q esta llenando mi correo. -- --- Banco de Crédito BCP - Dedicados a hacerte la Banca más simple. Visita nuestra Banca por Internet http://www.viabcp.com

[PHP] Re: remote call

2005-04-25 Thread Jeremiah Fisher
For RMI/RPC/Object Proxying/Remoting in PHP, check out PHPBeans (http://www.phpbeans.com/) and memcached (http://www.danga.com/memcached/). I was going to combine the two until the alloted time for the project got slashed. The result would have been a PHP driven system with the only single

Re: [PHP] Problems reading a DOMDocument out of a session

2005-04-25 Thread Cas
On both systems i use libxml 2.6.18, both Gentoo (2005.0) machines. I asked in the irc channels if more people could run my script to be sure it wasn't my system and two of the two people also had the problem (dunno what their systems are, but one runned PHP 5.0.4). I think it's weird I get

[PHP] Persistent Database Connections

2005-04-25 Thread Michael Phillipson
[Please note that even though I cite Interbase in my example, I believe my question can be generalized to all databases that allow persistent connections] I recently installed a trial version of Interbase on a development server that includes a nifty tool that allows me to monitor, among other

Re: [PHP] Persistent Database Connections

2005-04-25 Thread Philip Hallstrom
I recently installed a trial version of Interbase on a development server that includes a nifty tool that allows me to monitor, among other things, the number of active connections to my server. After playing with this feature briefly, I noticed that SEVERAL connections are opened between my web

Re: [PHP] phpclasses formerly Flash integration

2005-04-25 Thread Manuel Lemos
Hello, on 04/25/2005 11:52 AM Ryan A said the following: On 4/25/2005 4:31:42 PM, Chris Ramsay ([EMAIL PROTECTED]) wrote: I must admit, I agree with Ryan A's points - I used to visit the site regularly, but the ads and stuff have put me off a little bit these days... The main reason I am so pissed

Re: [PHP] link generating script

2005-04-25 Thread Cas
Maybe it's also an idea to close the strong tag ;-) to make life easier: if ($n=$Pagenum) { print 'strong'.$n.'/strong'; }else{ print 'a href=pag_gallery.php?Pagenum='.$n.''.$n.'/a'; } On 4/25/05, Ryan A [EMAIL PROTECTED] wrote: Hey, This is a common mistake...have a look at what you

Re: [PHP] Problems reading a DOMDocument out of a session

2005-04-25 Thread Cas
Tried the newest libXML stable release (2.6.19) and recompiled mod_php with it but I still have get the error: Warning: Couldn't fetch DOMDocument in /var/www/localhost/htdocs/pluxbox/test.php on line 20 foo May I ask what your system specs are? (OS, PHP and libXML version). Greetings, Cas On

[PHP] Timetables

2005-04-25 Thread Richard Collyer
Hello, This is probably more of a db question but... I am writing an employee database for work. The majority of it is simple enough however I am stuck on the timetabling. It has to be done in PHP as there are 40 plus team leaders whose computers are all old and have IE on them as one

RE: [PHP] Timetables

2005-04-25 Thread Chris W. Parker
Richard Collyer mailto:[EMAIL PROTECTED] on Monday, April 25, 2005 3:15 PM said: My idea of doing this was to have a database with each record being a day for a particular employee. Recording ID, Start Time, Finish Time in TimeStamp. You need to tie those records to the employee records.

[PHP] Unexpected T_IF

2005-04-25 Thread ztuni ztuni
I'm experiencing an unexpected T_IF error, and after digging through miles of code, came up empty. The relevant code, along with the if statement Parse error: parse error, unexpected T_IF in /var/www/html/phpBB2/posting.php on line 562 if ( !($result = $db-sql_query($sql)) ) {

Re: [PHP] Timetables

2005-04-25 Thread Richard Lynch
On Mon, April 25, 2005 3:14 pm, Richard Collyer said: This is probably more of a db question but... Probably. I am writing an employee database for work. The majority of it is simple enough however I am stuck on the timetabling. It has to be done in PHP as there are 40 plus team leaders

Re: [PHP] Persistent Database Connections

2005-04-25 Thread Richard Lynch
On Mon, April 25, 2005 1:40 pm, Michael Phillipson said: What I am baffled by is the fact that the total nunber of connections between the web server and my database seems to max out at 9. Why 9? Either you never had more than 9 users at one time during your test, so only 9 Apache children

Re: [PHP] Error en PHP

2005-04-25 Thread Richard Lynch
On Tue, April 19, 2005 4:54 pm, Patricio Reyes said: Tengo instalado WIN98SE PWS PHP 4.3.11 y cuando ejecuto el archivo *.php me sale el siguiente error: No habla Espanol. PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'msql.dll' PHP 4.1 - msql.dll != PHP 4.0 -

Re: [PHP] problem with the pager class not found

2005-04-25 Thread Richard Lynch
On Mon, April 25, 2005 3:47 pm, Tomás Rodriguez Orta said: I continue with the error page class not found, this class where can I see?, in my disk I have the packet DB.php, pear.php and page.php. Install more of PEAR so you have Pager.php? somebody can Help me?. Show us the FULL error

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Unexpected T_IF

2005-04-25 Thread Mattias Thorslund
ztuni ztuni wrote: I'm experiencing an unexpected T_IF error, and after digging through miles of code, came up empty. The relevant code, along with the if statement Parse error: parse error, unexpected T_IF in /var/www/html/phpBB2/posting.php on line 562 if ( !($result = $db-sql_query($sql)) )

Re: [PHP] Flash integration with PHP

2005-04-25 Thread Richard Lynch
On Mon, April 25, 2005 2:17 am, khuram noman said: I want to develop a shopping car in flash using php so there any good tutorial or sample code that explain the flash integration with php You may also want to check out Ming, which would let you use PHP to generate the Flash movie in the first

Re: [PHP] Unexpected T_IF

2005-04-25 Thread Richard Lynch
On Mon, April 25, 2005 4:29 pm, ztuni ztuni said: I'm experiencing an unexpected T_IF error, and after digging through miles of code, came up empty. The relevant code, along with the if statement Parse error: parse error, unexpected T_IF in /var/www/html/phpBB2/posting.php on line 562

Re: [PHP] array from folder

2005-04-25 Thread Richard Lynch
On Mon, April 25, 2005 10:54 am, Jason Barnett said: Jay Blanchard wrote: [snip] Can PHP generate an array based on file names in a folder? For example, if I have a folder called photos that includes three files -- tree.jpg, house.jpg and boat.jpg -- can PHP look at the file and generate a

Re: [PHP] Re: Hidden File Downloads

2005-04-25 Thread Richard Lynch
On Mon, April 25, 2005 11:47 am, Philip Hallstrom said: Does anybody know how to do this with php? I'm not sure how to find the file in the backend and kick it back to the user with the Save As box popping up. I'm thinking maybe it has something to do with headers, but I'm not sure.

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Unexpected T_IF

2005-04-25 Thread The Disguised Jedi
oops.sorry...gmail sorted things out wrong and i didn't see the whole conversation. On 4/25/05, The Disguised Jedi [EMAIL PROTECTED] wrote: please post the whole file, or a few lines before... On 4/25/05, Mattias Thorslund [EMAIL PROTECTED] wrote: ztuni ztuni wrote:

[PHP] PHP Designer 2005

2005-04-25 Thread The Disguised Jedi
Some might consider this OT, but I need to figure this out somehow, and google has been no help. I downloaded and installed PHP Designer 2005, and I really like it so far, but I'm having some problems. Any time it is running, my CPU Usage goes up to 100% and the process phpDesignerPrg.exe is

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Unexpected T_IF

2005-04-25 Thread The Disguised Jedi
please post the whole file, or a few lines before... On 4/25/05, Mattias Thorslund [EMAIL PROTECTED] wrote: ztuni ztuni wrote: I'm experiencing an unexpected T_IF error, and after digging through miles of code, came up empty. The relevant code, along with the if statement Parse

[PHP] Help outputting an array?

2005-04-25 Thread Brian Dunning
Hi all - it seems the longer I use PHP, the stupider my questions are getting. I finally got my XML parsed into an array, but perhaps my skills at dealing with the array are not where I thought they were. My array print_r's out like this: Array ( [PARAS] = Array ( [PARA] = Array

[PHP] Mixed Up Values

2005-04-25 Thread Mark Sargent
Hi All, with the below code, $myrow[1] should = product_name's value, $myrow[2] should = product_model_number's value and $myrow[3] should = product_serial_number's value, but, product_name's value is not being displayed, and the values are being moved to the left 1. Meaning

Re: [PHP] Mixed Up Values

2005-04-25 Thread Matt Harnaga
Mark Sargent wrote: Hi All, with the below code, $myrow[1] should = product_name's value, $myrow[2] should = product_model_number's value and $myrow[3] should = product_serial_number's value, but, product_name's value is not being displayed, and the values are being moved to the left 1. Meaning

Re: [PHP] Help outputting an array?

2005-04-25 Thread Mark Sargent
Brian Dunning wrote: Hi all - it seems the longer I use PHP, the stupider my questions are getting. I finally got my XML parsed into an array, but perhaps my skills at dealing with the array are not where I thought they were. My array print_r's out like this: Array ( [PARAS] = Array (

[PHP] problem connecting php and mysql

2005-04-25 Thread rahot man
I have windows server 2003, PHPv5.0.3, Mysql v4.1 and IIS 6 and i am working in Macromedia Dreamweaver MX2004 i am unable to connect to the mysql server. but my php files are running fine and my mysql server is also running fine. i) i had changed the php.ini-dist file to php.ini. ii)i