Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 19th, 2003, 09:09 AM
Registered User
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default php recordset and email

Hi,

I have 2 problems with php stuff:

1. When I use odbc_connect connect to SQL Server, I used the following statement to execute sql query:
$result=odbc_exec($con,$sqlstr);

Then if I need to execute another query, I found that I have to unset($result). It seems one connection only allows one recordset present. Why is it?

2. I tried to send out emails to myself in my php web application. Seems I never got these emails, and there is no error shows in web page. Is that due to some server configuration issue?

I appreciate any suggestion.

Cindy
 
Old September 22nd, 2003, 12:59 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Hi Cindy,

I'm guessing no one is responding to your odbc question because no one uses it or has has had much experience with it -- or at least no one on this list = ). From a purely PHP standpoint it doesn't make sense that you would have to unset a variable before being able to reuse it. Which is what I am assuming is going on. When you try to reuse the variable it should simply be overwritten. Without seeing more code I wouldn't have the foggiest.

As far as your mail concerns, how are you sending mail? Is this Windows-based or Unix. If its Windows make sure that the SMTP server is set up correctly in php.ini - or at runtime with ini_set() whichever the case may be. If you know the server to be configured correctly then it may be something in the code that you're using. Feel free to post examples which will allow us to rule out one or the other.

http://us3.php.net/mail

: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending the ADO recordset value hrough email pushpa ASP.NET 1.0 and 1.1 Basics 2 March 28th, 2007 06:43 AM
PHP Email aftabn10 PHP How-To 2 January 30th, 2007 05:43 AM
Recordset error in Dreamweaver Using PHP and MySQL toosuave Dreamweaver (all versions) 1 August 25th, 2006 07:27 AM
Email In php 4 philuk86 Beginning PHP 19 July 14th, 2004 05:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.