RE: [PHP] php/dreamweaver mx/mysql server question...

2002-12-22 Thread Peter Houchin
localhost refferes to the actual machine your are on .. what is the remote
server's host name or ip number .. use one of them instead of local host

 -Original Message-
 From: Kelly Meeks [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, 21 December 2002 10:00 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] php/dreamweaver mx/mysql server question...


 I'm trying to get dreamweaver mx working with php/mysql and a
 remote server.

 My remote server is named localhost.  How can I change it's name?
  Is it as simple as change the host value for the user's login?
 I've tried several things to no avail.

 TIA,

 Kelly



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] php/dreamweaver mx/mysql server question...

2002-12-20 Thread Kelly Meeks
I'm trying to get dreamweaver mx working with php/mysql and a remote server.

My remote server is named localhost.  How can I change it's name?  Is it as simple as 
change the host value for the user's login?  I've tried several things to no avail.

TIA,

Kelly



[PHP] Insert Record Behavior (PHP-Dreamweaver MX)

2002-12-19 Thread Edson Waite
Does anoyone use this? I am trying to insert data from a form to a MySQL
table. I am new to PHP and Dreamweaver, I am trying to get a tutorial to
work. below is the code.

?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = ,
$theNotDefinedValue = )
{
  $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;

  switch ($theType) {
case text:
  $theValue = ($theValue != ) ? ' . $theValue . ' : NULL;
  break;
case long:
case int:
  $theValue = ($theValue != ) ? intval($theValue) : NULL;
  break;
case double:
  $theValue = ($theValue != ) ? ' . doubleval($theValue) . ' :
NULL;
  break;
case date:
  $theValue = ($theValue != ) ? ' . $theValue . ' : NULL;
  break;
case defined:
  $theValue = ($theValue != ) ? $theDefinedValue :
$theNotDefinedValue;
  break;
  }
  return $theValue;
}

$editFormAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
  $editFormAction .= ? . $HTTP_SERVER_VARS['QUERY_STRING'];
}

if ((isset($HTTP_POST_VARS[MM_insert]))  ($HTTP_POST_VARS[MM_insert]
== test form)) {
  $insertSQL = sprintf(INSERT INTO testform (firstName, lastName) VALUES
(%s, %s),
   GetSQLValueString($HTTP_POST_VARS['firstName'],
text),
   GetSQLValueString($HTTP_POST_VARS['lastName'],
text));

  mysql_select_db($database_afm, $afm);
  $Result1 = mysql_query($insertSQL, $afm) or die(mysql_error());

  $insertGoTo = thank_you.php;
  if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ?  : ?;
$insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
  }
  header(sprintf(Location: %s, $insertGoTo));
}
?

Thanks in advance,
Ed Waite



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Dreamweaver MX?

2002-06-14 Thread Lazor, Ed

Does Dreamweaver MX have good PHP support?

Thanks,

-Ed
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Dreamweaver MX?

2002-06-14 Thread John Holmes

Yes, download it and see. Gives you a GUI to program recordsets from the
database, and drag and drop for results. Other PHP stuff along with
highlighting built in. If it didn't cost so much, I'd recommend it.

---John Holmes...

 -Original Message-
 From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 12:39 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Dreamweaver MX?
 
 Does Dreamweaver MX have good PHP support?
 
 Thanks,
 
 -Ed
 


**
 **
 This message is intended for the sole use of the individual and entity
to
 whom it is addressed, and may contain information that is privileged,
 confidential and exempt from disclosure under applicable law.  If you
are
 not the intended addressee, nor authorized to receive for the intended
 addressee, you are hereby notified that you may not use, copy,
disclose or
 distribute to anyone the message or any information contained in the
 message.  If you have received this message in error, please
immediately
 advise the sender by reply email and delete the message.  Thank you
very
 much.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Dreamweaver MX?

2002-06-14 Thread Jas

It also has support for snippits, or a code library that you can add, edit
or delete.  Saves alot of time in re-using code.  I definately recommend it,
not only for that reason for but for the code debugging options available.
HTH
Jas

John Holmes [EMAIL PROTECTED] wrote in message
002101c213ca$36cfba20$b402a8c0@mango">news:002101c213ca$36cfba20$b402a8c0@mango...
 Yes, download it and see. Gives you a GUI to program recordsets from the
 database, and drag and drop for results. Other PHP stuff along with
 highlighting built in. If it didn't cost so much, I'd recommend it.

 ---John Holmes...

  -Original Message-
  From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 14, 2002 12:39 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Dreamweaver MX?
 
  Does Dreamweaver MX have good PHP support?
 
  Thanks,
 
  -Ed
 
 
 
 **
  **
  This message is intended for the sole use of the individual and entity
 to
  whom it is addressed, and may contain information that is privileged,
  confidential and exempt from disclosure under applicable law.  If you
 are
  not the intended addressee, nor authorized to receive for the intended
  addressee, you are hereby notified that you may not use, copy,
 disclose or
  distribute to anyone the message or any information contained in the
  message.  If you have received this message in error, please
 immediately
  advise the sender by reply email and delete the message.  Thank you
 very
  much.
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Dreamweaver MX?

2002-06-14 Thread Lazor, Ed

Thanks everyone.  I'll check it out.

   much.
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php