PHP and MySQL issue {subject edited by moderator}

Using Dreamweaver and PHP.   On one page, I have a form with an Insert Field (LastName) that enter into the SQL database. SQL database has the ID auto-increment.   When I click on Send (with the data entered into the database), I want the new page to open and display the ID field.  but when I insert a new id and I click Send it still displays the old id, whereas I want to display a new ID

This code for isert page
<?php require_once('Connections/pendaftaran.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($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 = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) {
  $insertSQL = sprintf("INSERT INTO maklumat_fail (fail_tajuk, fail_no, fail_seksyen, fail_hari, fail_bulan, fail_tahun, fail_rakbesi, fail_laci, fail_baris) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['fail_tajuk'], "text"),
                       GetSQLValueString($_POST['fail_no'], "int"),
                       GetSQLValueString($_POST['fail_seksyen'], "text"),
                       GetSQLValueString($_POST['fail_hari'], "int"),
                       GetSQLValueString($_POST['fail_bulan'], "text"),
                       GetSQLValueString($_POST['fail_tahun'], "int"),
                       GetSQLValueString($_POST['fail_rakbesi'], "text"),
                       GetSQLValueString($_POST['fail_laci'], "text"),
                       GetSQLValueString($_POST['fail_baris'], "text"));
  mysql_select_db($database_pendaftaran, $pendaftaran);
  $Result1 = mysql_query($insertSQL, $pendaftaran) or die(mysql_error());
  $insertGoTo = "detailPendaftaran.php?" . $row_Recordset1['fail_tajuk'] . "=";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  header(sprintf("Location: %s", $insertGoTo));
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form")) {
  $updateSQL = sprintf("UPDATE maklumat_fail SET fail_no=%s, fail_seksyen=%s, fail_hari=%s, fail_bulan=%s, fail_tahun=%s, fail_rakbesi=%s, fail_laci=%s, fail_baris=%s WHERE fail_tajuk=%s",
                       GetSQLValueString($_POST['fail_no'], "int"),
                       GetSQLValueString($_POST['fail_seksyen'], "text"),
                       GetSQLValueString($_POST['fail_hari'], "int"),
                       GetSQLValueString($_POST['fail_bulan'], "text"),
                       GetSQLValueString($_POST['fail_tahun'], "int"),
                       GetSQLValueString($_POST['fail_rakbesi'], "text"),
                       GetSQLValueString($_POST['fail_laci'], "text"),
                       GetSQLValueString($_POST['fail_baris'], "text"),
                       GetSQLValueString($_POST['fail_tajuk'], "text"));
  mysql_select_db($database_pendaftaran, $pendaftaran);
  $Result1 = mysql_query($updateSQL, $pendaftaran) or die(mysql_error());
  $updateGoTo = "detailPendaftaran.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
    $updateGoTo .= $_SERVER['QUERY_STRING'];
  header(sprintf("Location: %s", $updateGoTo));
mysql_select_db($database_pendaftaran, $pendaftaran);
$query_Recordset1 = "SELECT * FROM maklumat_fail";
$Recordset1 = mysql_query($query_Recordset1, $pendaftaran) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SISTEM PENDAFTARAN FAIL</title>
<style type="text/css">
.right {
  text-align: right;
body {
  background-color: #6699CC;
</style>
</head>
<body><form action="<?php echo $editFormAction; ?>" name="form" method="POST">
  <center>
    <p><img src="mps.png" width="1119" height="244" /></p></center>
  <table width="332" border="0" align="center">
      <tr>
        <td><h1 class="K">PENDAFTARAN FAIL</h1></td>
      </tr>
  </table>
    <p> </p>
    <table width="200" border="2" align="center" class="l">
      <tr>
        <td><center isoptional="l">Maklumat Fail</center></td>
      </tr>
  </table>
    <p> </p>
    <center><table width="587" border="6">
      <tr>
        <td width="567" height="233"><table width="560" height="206" border="0">
            <tr>
              <td width="147" class="right"><strong>No. Fail</strong></td>
              <td width="10">:</td>
              <td width="432">MPSepang
                <input name="fail_no" type="text" id="fail_no" size="40" /></td>
            </tr>
            <tr>
              <td class="right"><strong>Tajuk Fail</strong></td>
              <td>:</td>
              <td><textarea name="fail_tajuk" cols="40" rows="5" id="fail_tajuk"></textarea></td>
            </tr>
            <tr>
              <td class="right"><strong>Seksyen</strong></td>
              <td>:</td>
              <td><select name="fail_seksyen" size="Seksyen" id="fail_seksyen">
                  <option>Seksyen</option>
                  <option>Pentadbiran</option>
                  <option>Web, Latihan &amp; Komuniti</option>
                  <option>Rangkaian &amp; Infrastruktur</option>
                  <option>Sistem</option>
              </select></td>
            </tr>
            <tr>
              <td class="right"><strong>Tarikh Fail Dibuka</strong></td>
              <td>:</td>
              <td><select name="fail_hari" size="Hari" id="fail_hari">
                  <option>Hari</option>
                  <option>1</option>
                  <option>2</option>
                  <option>3</option>
                  <option>4</option>
                  <option>5</option>
                  <option>6</option>
                  <option>7</option>
                  <option>8</option>
                  <option>9</option>
                  <option>10</option>
                  <option>11</option>
                  <option>12</option>
                  <option>13</option>
                  <option>14</option>
                  <option>15</option>
                  <option>16</option>
                  <option>17</option>
                  <option>18</option>
                  <option>19</option>
                  <option>20</option>
                  <option>21</option>
                  <option>22</option>
                  <option>23</option>
                  <option>24</option>
                  <option>25</option>
                  <option>26</option>
                  <option>27</option>
                  <option>28</option>
                  <option>29</option>
                  <option>30</option>
                  <option>31</option>
                </select>
                  <label for="bulan2"></label>
                  <select name="fail_bulan" size="Bulan" id="bulan2">
                    <option>Bulan</option>
                    <option>Januari</option>
                    <option>Februari</option>
                    <option>Mac</option>
                    <option>April</option>
                    <option>Mei</option>
                    <option>Jun</option>
                    <option>Julai</option>
                    <option>Ogos</option>
                    <option>September</option>
                    <option>Oktober</option>
                    <option>November</option>
                    <option>Disember</option>
                  </select>
                  <label for="fail_tahun"></label>
                  <select name="fail_tahun" size="Tahun" id="fail_tahun">
                    <option>Tahun</option>
                    <option>2014</option>
                    <option>2015</option>
                    <option>2016</option>
                    <option>2017</option>
                    <option>2018</option>
                  </select>
                  <label for="tarikhBuka"></label></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" class="right"> <label><strong>Lokasi</strong></label></td>
              <td>:</td>
              <td>Rak Besi
                <label>
                  <select name="fail_rakbesi" size="Seksyen" id="fail_rakbesi">
                    <option>Rak Besi</option>
                    <option>A</option>
                    <option>B</option>
                  </select>
                  Laci
                  <select name="fail_laci" size="Seksyen" id="fail_laci">
                    <option>Laci</option>
                    <option>A1</option>
                    <option>A2</option>
                    <option>A3</option>
                    <option>A4</option>
                    <option>B1</option>
                    <option>B2</option>
                    <option>B3</option>
                    <option>B4</option>
                  </select>
                  Baris
                  <select name="fail_baris" size="Seksyen" id="fail_baris">
                    <option>Baris</option>
                    <option>1</option>
                    <option>2</option>
                    <option>3</option>
                    <option>4</option>
                    <option>5</option>
                    <option>6</option>
                    <option>7</option>
                    <option>8</option>
                    <option>9</option>
                    <option>10</option>
                    <option>11</option>
                    <option>12</option>
                    <option>13</option>
                    <option>14</option>
                    <option>15</option>
                    <option>16</option>
                    <option>17</option>
                    <option>18</option>
                    <option>19</option>
                    <option>20</option>
                  </select>
                </label></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td><label>
          <div align="center">
            <input type="submit" name="submit" id="submit" value="Submit" />
          </div>
        </label></td>
      </tr>
  </table>
  </center>
    <p> </p>
<center>
      <p>
        <label></label>
      <p> </p>
  </center>
  <center>
    <p><img src="nwUWE4K.jpg" width="1119" height="200" /></p>
  </center>
  <input type="hidden" name="MM_insert" value="form" />
  <input type="hidden" name="MM_update" value="form" />
</form>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>
This for display page
<?php require_once('Connections/pendaftaran.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($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;
$colname_Recordset1 = "-1";
if (isset($_GET['fail_baris'])) {
  $colname_Recordset1 = $_GET['fail_baris'];
mysql_select_db($database_pendaftaran, $pendaftaran);
$query_Recordset1 = sprintf("SELECT * FROM maklumat_fail WHERE fail_baris = %s", GetSQLValueString($colname_Recordset1, "text"));
$Recordset1 = mysql_query($query_Recordset1, $pendaftaran) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SISTEM PENDAFTARAN FAIL</title>
<style type="text/css">
.right {
  text-align: right;
body {
  background-color: #6699CC;
</style>
</head>
<body><form action="" method="get">
  <center>
    <p><img src="mps.png" width="1119" height="244" /></p>
  </center>
    <p><center>
    </p>
    <p> </p>
    <p> </p>
    <center>
      <table width="406" border="0">
        <tr>
          <td width="247"><h1>Fail telah berjaya didaftar!!</h1></td>
        </tr>
      </table>
      <p> </p>
      <table width="389" border="6">
        <tr>
          <td><table width="370" height="174" border="0">
            <tr>
              <td width="129" class="right"><strong>No.Fail</strong></td>
              <td width="8">:</td>
              <td width="211"><?php echo $row_Recordset1['fail_no']; ?></td>
            </tr>
            <tr>
              <td class="right"><strong>Tajuk Fail</strong></td>
              <td>:</td>
              <td><?php echo $row_Recordset1['fail_tajuk']; ?></td>
            </tr>
            <tr>
              <td class="right"><strong>Seksyen</strong></td>
              <td>:</td>
              <td><?php echo $row_Recordset1['fail_seksyen']; ?></td>
            </tr>
            <tr>
              <td class="right"><strong>Tarikh Fail Dibuka</strong></td>
              <td>:</td>
              <td><?php echo $row_Recordset1['fail_hari']; ?><?php echo $row_Recordset1['fail_bulan']; ?><?php echo $row_Recordset1['fail_tahun']; ?></td>
            </tr>
            <tr>
              <td class="right"><strong>Lokasi</strong></td>
              <td>:</td>
              <td><?php echo $row_Recordset1['fail_rakbesi']; ?><?php echo $row_Recordset1['fail_laci']; ?><?php echo $row_Recordset1['fail_baris']; ?></td>
            </tr>
          </table></td>
        </tr>
      </table>
      <p><a href="test1.php">MENU</a></p>
      <p> </p>
      <p> </p>
  </center>
    <p> </p>
    <p><img src="nwUWE4K.jpg" width="1119" height="200" /></p>
</form>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>

Similar Messages

  • Server Behavior, Bindings and Components Panels [subject edited by moderator]

    How do I get Server Behavior, Bindings and Components Panels and Database feature this is the most retarded program ever! I installed the extension manager, then it wanted the panel installed, which won't installed because of photoshop version. How in the hell do I get Server Behavior, Bindings and Components Panels and Database feature!!!

    The Deprecated Server Behaviors were removed for good reason.  The code is woefully outdated and the old MySql connections won't work on servers with PHP 5.5 or higher.
    Which operating system?
    Which version of PS?
    Which version of DW?
    Which version of Extension Manager?
    Replace Deprecated Server Behaviors with a modern commercial extension -- MySQLi (improved) or PDO:
    http://www.webassist.com/dreamweaver-extensions/mysqli
    http://www.dmxzone.com/go/22096/updated-replacing-dreamweaver-server-behaviors-with-dmxzon e-extensions/
    Nancy O.

  • CS4 and Yosemite? [subject edited by moderator]

    I recently upgraded my mac to Yosemite. I use the 2012 CS4 Dreamweaver. 1. is it compatible with Yosemite (I had to upgrade some other applications such as FInale) 2. I can only open the properties in CSS and Html, NO OTHER functions such as block, background, borders etc....
    DO I need to upgrade my version of Dreamweaver (:()  or simply reinstall the version that I already have?
    Thanks

    Hi,
    I haven't seen any issues related to CS4 on Yosemite. Either there are no issues with CS4 on Yosemite, or people that have had issues have not reported it. Can you try a clean uninstall Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 and reinstall your software? Let us know if you still have issues.
    Just saw Nancy's reply and wanted to add to my post.. Some bugs have been reported for the latest version on Yosemite as well, and the product team is fixing them for the next release. As far as I know, none of these issues are show stoppers.
    Thanks,
    Preran

  • Live site display issues {subject edited by moderator}

    Okay, so on dreamweaver, the website looks fine (albeit, often it doesn't resemble what the actual final site looks like), but my letters from my paragraphs are all scrunched to the left side.  It appears to be CSS because it has affected all the pages, but I've been trying my damnedest to tweak different lines of code to no avail.  What makes it even more difficult to troubleshoot is that in the "live" and "design" mode, they appear perfectly fine.  However, when I upload the site to my host, the letters are all crammed to the left side making my "professional" website look like sh#t!
      Can someone please look through my source code and help a fellow creator out.  Thanks so much
    www.11thworldproductions.com

    I'm not seeing it in any of my browsers, which version of IE is giving you the trouble. I always assume IE is the problem when it isn't spelled out (it's best to explain the problem in your body, not in your post title, it will get truncated)?
    In IE7 and 8, the entire site should be broken. There is a lot going on in your code that neither of those browsers can handle.
    Looks fine in IE9 and 10, Firefox and Chrome for me.
    If your issue is showing in IE10 or 11, make sure to turn off Compatibility Mode if it's enabled, that breaks everything.
    It could also be a browser cache issue, make sure to clear that out and look at the site again.
    Also make sure to run your page through the validatror at http://validator.w3.org to get a listing of your html errors. Those errors can cause display problems between browsers/versions/platforms.

  • Dreamweaver and PHPFox? [subject edited by moderator]

    Hello!i d like to know how can i edit the layout with dreamweaver if ii use PHPFox
    Some 1  can help me?

    Make your local root folder (as specified in your site definition) point into the "htdocs" folder, e.g.,
    the path to your local root folder would be something like - C:\My Documents\Web Sites\You_Site_Name\htdocs

  • Linking separate desktop and mobile sites [subject edited by moderator]

    I created a regular site in dreamweaver and then I made a mobile version usingjquery mobile, how do I link the two together so when someone search fro the site on a desktop the regular site will show and when someone searches for it on a mobile device the mobile one will show?

    That is why better informed web developers use the Responsive Web Design (RWD) technique. I thoroughly recommend this.
    However, because you have two sites, have a read of this Official Google Webmaster Central Blog: Running desktop and mobile versions of your site

  • PHP and MySQL Connection problem

    I am trying to make a PHP MySQL on a remote server connection in Dreamwesaver CS3.
    When I enter the information (host, user, password, etc.) and hit TEST, I get the following error message.
    "Access Denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured."
    I know the user, password, etc. work, as I can access the MySQL database with other software.
    I checked with my host and they say there are no permission problems on their end.
    I have checked the settings on the Test Server page in Site Setup and everything looks correct and works there.
    I have not seen this particular problem described in other forum postings (although there are a LOT of postings on this topic!).
    Any help would be appreciated.

    I thought my testing server was the remote server and is always on as far as I know. I don't know how to turn it on or off.
    Is there some other testing server that I should be aware of?
    Frank
    Date: Wed, 3 Jun 2009 15:43:02 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP and MySQL Connection problem
    I know you are using remote, but is your testing server on? if not turn that on and see if that does it. it just happened to me working on remote server and could not get mysql conn to work, until I turn on my testing (developer server), then I was able to connect to mysql and the tables that I created in phpmyadmin remotly was downloaded.
    >

  • How do I add an already built Shopping Cart  (PHP and MYSQL) application to a page in a Muse site?

    How do I add an already built Shopping Cart  (PHP and MYSQL) (Cartweaver 4) application to a page in a Muse site? Do I have to export the Muse site as Html to dreamweaver and them use the extension to bring the shooping cart in or can I do it directly in Muse?
    Message was edited by: mgv2048

    We have experimented with doing this with some good success. We have been working on adding Cartweaver to a Facebook page by essentially adding a Cartweaver store to Facebook in an iframe.  The "store" would be pages with just your basic product display, cart, and checkout functionality, with none of the "window dressing" - just use CSS to match the color and general look of the design it's being added to.
    The one problem with this for Facebook is when it comes time to check out toy have to leave Facebook and go to your server where an SSL is in place.  Fortunately in this situation this would not be the case, you can have an SSL installed to the root of your site and you'll be okay.
    This is an interesting project.  Give this a try and let me know how it goes and if you run into any snags, please make a post on the Cartweaver forums: http://forums.cartweaver.com - I'm really confident that this can work, and not only work, but work well.
    Looking forward to hearing how this goes, and being of what help we can.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    PHP & ColdFusion Shopping Cart for Adobe Dreamweaver
    Stay updated:
    http://www.facebook.com/cartweaver
    http://www.twitter.com/cartweaver
    http://blog.cartweaver.com

  • Set a max Upload quantity dreamwaver php and mysql

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

  • Upload Adobe video to my site? {subject edited by moderator}

    Hello! How are? I've got question,please.I create my own site and I want to upload on a site the video from Adobe.com.For example : video about "Dreamweaver" captured by Adobe. Is it legally?

    Thank you very much. That's all right.
    Отправлено с iPhone
    23 ביול 2014, в 17:20, Preran <[email protected]> написал(а):
    Upload Adobe video to my site? {subject edited by moderator}
    created by Preran in Dreamweaver support forum - View the full discussion
    Thanks for simplifying this for everyone, Murray.
    Antimusic: While it is not possible to upload an Adobe video to your site, you can embed a video from http://tv.adobe.com using the embed code for the video. Is that what you were looking for?
    Thanks,
    Preran
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6576208#6576208
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Dreamweaver support forum by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Problems with PHP and MySQLi server behaviors

    Hi,
    I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
    Kind regards.
    Eddy

    heduino wrote:
    Hi,
    I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
    Kind regards.
    Eddy
    There are no plans that I know of to introduce a new set of mysqli server behaviours into DW from Adobe. They have left that to  thrid party developers to bring out extensions which replace them.
    What the server behaviours could do was very limiting anyway so I suspect any replacement mysqli behaviours would also be very limiting. I personally jumped into thre code and started to write my own mysqli connection files and query strings by watching a few simple tutorials on youtube - it isnt that difficult.
    Look for 'php academy' on youtube - they have about 9 simple to follow tutorials on getting started with mysqli.

  • Dreamweaver CS5.5 Mobile Apps with PHP and MYSQL?

    Hello,
    I don't have Dreamweaver CS5.5 yet and I've been trying to search for information on this but I couldn't find any. I've been learning PHP and been developing with MYSQL with Dreamweaver CS5 but I wanted to know if I can use the same tags and everything if I would to build a Mobile App using the new Dreamweaver CS5.5 (http://tv.adobe.com/watch/cs-55-web-premium-feature-tour-/dreamweaver-cs-55-jquery-mobile- pages/). I overlooked at the video and it seems pretty easy building an app. So is PHP and MYSQL easily integratable? Are there any examples that I might be able to check out?
    Thanks!

    No. PHP is a server-side scripting language that requires a server (or server-like environment) to run.
    An iPhone (or Android) application does not allow for a "built-in" server (which is resource intensive and has scary security implications). You just can't build an application with PHP/MySQL for a mobile device. Instead you can build a web service that your HTML/JavaScript mobile application can then communicate with. This is the only supported way you can use PHP/MySQL in a mobile app. Again: the PHP/MySQL should reside on a server and your HTML/JS mobile app can then communicate with that web service. That's what instapaper and other applications do.
    Frankly, just make a web application that's mobile device friendly and you'll:
    1) Avoid all the messiness of the app stores
    2) Have greater control over what your web app can do (don't have to tow the Apple/Google line)
    3) Have a web app that can work across mulitple mobile devices as well as standard web browsers (i.e. more audience = more $).
    4) Future proof your application (pushing updates to your server and everyone using your web app is updated)
    Otherwise, read-up on Adobe AIR and what it supports and remember, the best apps are written natively for the platform (i.e. want to write an app for an iPhone? Learn Objective-C and use xCode on a Mac. Want to write an app for Motorola Xoom? Learn the Android SDK and use inteliJ).

  • ANN: Setting up PHP and MySQL for newbies!

    We've recently released two new solution recipes to help
    designers make the
    jump to building dynamic sites. Each solution recipe
    describes step by step
    how to set up PHP and MySQL on your XP or Vista systems. You
    can find them
    on the Solution Recipe page:
    Installing PHP and MySQL on Windows Vista
    Installing PHP and MySQL on Windows XP
    http://www.webassist.com/professional/products/solutionrecipes.asp
    Each of these Solution Recipes include PDFs that you can
    print out or read
    on screen.
    We also have steps outlined for the Mac in PDF format, one
    for 10.4.x and
    the other for 10.5.x:
    10.4.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    10.5.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    All content is freely available. Go get'em!
    Best - Joe
    Joseph Lowery
    VP of Marketing, WebAssist -
    http://www.webassist.com
    Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/

    Cool. I've bookmarked it for later.
    Thanks!
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Joseph Lowery" <[email protected]> wrote in
    message
    news:ftj87l$nem$[email protected]..
    > We've recently released two new solution recipes to help
    designers make
    the
    > jump to building dynamic sites. Each solution recipe
    describes step by
    step
    > how to set up PHP and MySQL on your XP or Vista systems.
    You can find them
    > on the Solution Recipe page:
    >
    > Installing PHP and MySQL on Windows Vista
    > Installing PHP and MySQL on Windows XP
    >
    http://www.webassist.com/professional/products/solutionrecipes.asp
    >
    > Each of these Solution Recipes include PDFs that you can
    print out or read
    > on screen.
    >
    > We also have steps outlined for the Mac in PDF format,
    one for 10.4.x and
    > the other for 10.5.x:
    >
    > 10.4.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    >
    > 10.5.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    >
    > All content is freely available. Go get'em!
    >
    > Best - Joe
    >
    > Joseph Lowery
    > VP of Marketing, WebAssist -
    http://www.webassist.com
    > Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/
    >

  • I need to know how I will create a dynamic website using php and mysql

    I need to know how will I create a dynamic website using php and mysql that people could have the abilities of registering in the website, and modify their profile where they can add their pictures and everything. apart from that, they should have the ability to search about other member. hope to here more from you.

    If you are a right-brained creative, and have no previous experience or propensity to be able to understand coding and database "stuff", and/or if your time can be better spent on other skills, I recommend you save your sanity and hire a developer... or at least the first time around. I have been attempting to grasp this for years... and have a library of marked up books to prove my efforts, all while trying to keep up with an ongoing client base that is always cramped. It's a wonder I still have my sanity... then again, I might not be the best person to determine that. Others might question it.
    That said, I still plan to master php... one of these days.

  • Trying to get Apache, PHP and MySQL up and running

    I have just bought a new MacBook and I want to set up Apache, PHP and MySQL in order to create a local mirror of a website I have in my 'Sites' folder.
    I fall at the first fence!! To get Apache, I switch web sharing on in System Preferences' and I get the green light. When I click the links for personal website or computer's website I get a "Safari can't connect to the server" message.
    Any ideas what I should do now?

    Stephen Dancer wrote:
    Any ideas what I should do now?
    You will need to make some change to the index file in your Sites directory in order to enable Apache for that directory.
    You will have to enable PHP in the Apache config file at /etc/apache2/httpd.conf
    For MySQL, you will have to install it, and then fix it. You'll want to remove the StartupItem it wants to use and replace it with a launchd file. This discussion has a good roundup of the very latest tricks to get MySQL up and running with the latest security updates.

Maybe you are looking for