php-windows Digest 22 Jul 2002 20:20:52 -0000 Issue 1252

Topics (messages 14867 through 14877):

PHP 4.1.1, Win98 and ODBC
        14867 by: Duncan Stiphout
        14868 by: Duncan Stiphout

Re: mssql functions not working properly
        14869 by: David Elliott

Array of parameters
        14870 by: Sandeep Murphy
        14871 by: Evan

Re: error compiling example-extension
        14872 by: Brian Huff

Uploading files.
        14873 by: Kit Kerbel

SQL question...
        14874 by: Mircea Goia
        14875 by: George Nicolae

Re: PHP + Access + SQL Help!
        14876 by: George Nicolae

phpnuke
        14877 by: Wayne A. Darby

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Does anybody know what's causing the following problem?

our multiplatform application (all Windows 9x and higher,  and MacOSX) uses
PHP 4.1.1. On all platforms is works well, expect from Windows 98. The
message "A required .DLL file, ODBC32.DLL, was not found." appears. I know
it is a known problem but nowhere I can find the solution.

---
Duncan



--- End Message ---
--- Begin Message ---
Small amplification:

the PHP documentation says that ODBC support is built in so the DLL should
not be needed. And my application requires no ODBC support.

Duncan

Duncan Stiphout wrote in message
<[EMAIL PROTECTED]>...
>Does anybody know what's causing the following problem?
>
>our multiplatform application (all Windows 9x and higher,  and MacOSX) uses
>PHP 4.1.1. On all platforms is works well, expect from Windows 98. The
>message "A required .DLL file, ODBC32.DLL, was not found." appears. I know
>it is a known problem but nowhere I can find the solution.
>
>---
>Duncan
>
>
>


--- End Message ---
--- Begin Message ---
Hail David

On 22 July 2002 at 08:59:37 +0100 (which was 08:59 where I live) David
Elliott emanated these words of wisdom

> I have a valid bit of SQL, but PHP does not correctly run it

I forgot to say that I get this error.

Warning: mssql_fetch_row(): supplied argument is not a valid MS SQL-result
resource in D:\Data\Work\wwwroot\Tocris\shop\_include\test.php on line 37

-- 
 BBFN,                     _______________________________________________
  David                   |    David  Elliott    |   Software Engineer    |
 _________________________|  [EMAIL PROTECTED] | PGP Key ID 0x650F4534  |
| Ratio omnia vincit (perhaps)                                            |


--- End Message ---
--- Begin Message ---
Hi,

Am relatively new to PHP and wud appreciate if anyone can help me out...

My URL using the GET method reads as following..

http://feedback.php?date=10-11-2001&policy_codes=1&cbox=on&desc=aaaa&policy_codes=9&cbox=on&desc=bbbbb&temp=tp

Now, I have to insert the data into an MySQL table but am not able to split the URL 
such that the policy codes,cbox and desc are inserted twice rather than only the last 
one...

The variable has to necessarily be the same name...

any suggestions??

thnx,
sands
--- End Message ---
--- Begin Message ---
try this:
use square brackets as follow:
policy_codes[]

Then in $_GET["policy_codes"] you'll have an array!!!!

Hope this helps,
Evan

"Sandeep Murphy" <[EMAIL PROTECTED]> ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,

Am relatively new to PHP and wud appreciate if anyone can help me out...

My URL using the GET method reads as following..

http://feedback.php?date=10-11-2001&policy_codes=1&cbox=on&desc=aaaa&policy_
codes=9&cbox=on&desc=bbbbb&temp=tp

Now, I have to insert the data into an MySQL table but am not able to split
the URL such that the policy codes,cbox and desc are inserted twice rather
than only the last one...

The variable has to necessarily be the same name...

any suggestions??

thnx,
sands


--- End Message ---
--- Begin Message ---

First of all, we almost never respond to individuals, we always reply to 
the list.  I only CCed you in case you are unaware of that.  We do this 
mostly because then everybody can benefit from the exchange.  If you 
dont read the newsgroups for a response, dont expect to ever get an answer.

Secondly, your problem is still due to not having the proper dlls in 
your linkage step.  Check to make sure that the "php4ts.lib" file 
exists, and is in your include path.

Better yet, try to compile one of the other simple extensions, say 
'aspell'.  Then work backwards from there to make your new extension. 
Be sure to compile the "php4ts.dll" first, so you get your "php4ts.lib" 
to work with.

There could be a hundred things wrong with your build environment - the 
best advice I can possibly give is to compile an extension that ships 
with the core, and then compare the differences.

-- 

Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424

>> we can only be helpful if you actually read our responses to 
>> your question.
> 
> 
> you were the only one who sended a response.
> 
> anyway, thanks for your mail. but i still get the error about unresolved
> symbols. so i commented out the code who was causing this error:
> 
> ---------------------------
> if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &parameter) ==
> FAILURE) {
>         return;
> }
> -----------------------------
> 
> 
> now it compiles with no errors. but when i want to include the extension
> with dl() php tells me this is not a php-extension !? really confusing.
> 
> 
> marco
> 


--- End Message ---
--- Begin Message ---
I'm having a problem uploading files with php to an nt4 server.  Can anyone 
outline a general method for uploading a jpeg/gif to a specified folder.  
Thanks in advance.
Kit



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

--- End Message ---
--- Begin Message ---
Hi,

Which is the difference between these two SQL querys?
~~~~~~~
SELECT * FROM despre WHERE id=1
and
SELECT * FROM `despre` WHERE id=1
~~~~~~~
What it's the use of these apostrophes `` in the second SQL?

Thanks,
Mircea

--
Mircea Goia
Web Developer and web design team coordinator
http://www.deep.ro (DEEP Foundation)
http://www.jiuvalley.com (Jiu Valley regional web portal)
----------------
Mircea Goia
Dezvoltator web si coordonator echipa web design
http://www.deep.ro (Fundatia DEEP)
http://www.valeajiului.ro (portalul regional al Vaii Jiului)


--- End Message ---
--- Begin Message ---
In mySQL only the first query work. Be more explicit.

--


Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com  - Professional Web Design
www.PaginiWeb.com


"Mircea Goia" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Which is the difference between these two SQL querys?
> ~~~~~~~
> SELECT * FROM despre WHERE id=1
> and
> SELECT * FROM `despre` WHERE id=1
> ~~~~~~~
> What it's the use of these apostrophes `` in the second SQL?
>
> Thanks,
> Mircea
>
> --
> Mircea Goia
> Web Developer and web design team coordinator
> http://www.deep.ro (DEEP Foundation)
> http://www.jiuvalley.com (Jiu Valley regional web portal)
> ----------------
> Mircea Goia
> Dezvoltator web si coordonator echipa web design
> http://www.deep.ro (Fundatia DEEP)
> http://www.valeajiului.ro (portalul regional al Vaii Jiului)
>
>


--- End Message ---
--- Begin Message ---
try addcslashes(string str, string charlist).

--


Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com  - Professional Web Design
www.PaginiWeb.com


"Dewey Williams" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I am new to PHP but not programming.  I have created a simple program to
get
> info from a form and put it into an Access database.  Moving to a
different
> database like MySQL is NOT an option!
>
> Everything works fine unless the user puts a single quote (') in one of
the
> form text boxes.  If they do, an ODBC error is generated and my SQL
> statement doesn't work.
>
> I know this has to do with the way PHP handles quoting, and I have tried
> addslashes, magic-quotes on/off, and other methods to solve this problem,
> with no solution.
>
> Here are my specs:
> Windows 2000
> Access 2000
> PHP 4.2.1
> magic-quotes (all) = Off
>
> Here is the short version of my code.  Please let me know where the
problem
> is and how to solve it.
>
> <html>
> <body>
>
> <?php
> $FName = $_POST['FName'];
> $LName = $_POST['LName'];
>
> $db = odbc_connect("MyData", "", "");
>
> $str_AddRecord = "INSERT INTO Alumni ([FirstName], [LastName]) VALUES
> ('$FName', '$LName')";
>
> if (!$resp_AddRecord = odbc_exec($db, $str_AddRecord)){
> echo "Query error! ODBC error: ", odbc_errormsg();
> } else {
> print("<p class='message'>Record Posted!</p>");
> }
>
> odbc_close($db);
>
> ?>
>
> </body>
> </html>
>
> TIA
>
> Dewey Williams
> [EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
I am new to php and am trying to implement a chat client that is based in
php. I am using MySQL, APACHE, & PHPNUKE and I can type in the address and
hit my site just fine. When I try to click on a link I recieve the error
message "Cannot view this page directly".

Is there anyone that can help me with this? I have searched up and down the
php.ini file but haven't found a mistake. Any help would be greatly
appreciated.

Thanks,


--- End Message ---

Reply via email to