PHP MysQL Background Application

Has anyone used PHP / MySQL / ADDT to develop a background application that is clocked based?  Essentially, I'm just looking to fire off a stored procedure every "n" minutes.  Is there a way to write / configure an app to do this?

Hi Jim,
Are you looking to have it trigger every so many minutes while the page is open or completely in the background?
Completly in the background:
You might want to add a cronjob that runs the php script every so many minutes.
or
While page is open:
You can set a meta-refresh to run every so many minutes so it refreshes, re-runs the script/page that is open.

Similar Messages

  • Recommend PHP/MySQL Utility Application

    To save time, I am looking to purchase an application development software / toolbox compatible with php / mysql.  One of the functions I am looking for is a php file upload via form upload script. I know that DMX zone has separate program they sell.  Ideally, I would like a tool that does more than just one function and not with a high price tag.
    If you could recommend some products, it would be appreciated.
    George

    When it comes to using a reasonably priced "no additional coding required" PHP/MySQL code generation software, I´ve always been very pleased with PHPMAKER -- however it should be mentioned that there are lots of other tools out there as well which might suit your needs better than this one, so just google for "php code generator" to get a general idea on what´s available.
    Cheers,
    Günter

  • Hosting a SaaS PHP/MySQL web application

    Hi
    I am building a PHP web application ( to be used by about 5 customers ) with MySQL database using partitionning strategy for scalabilty purpose.
    Customers list can grow up to 100, so I pre allocated 100 partitions for the MySQL database.
    Can I host my web app on Window Azure?
    If yes, what pricing plan should I choose to start my business? (I mean Server requirement : Memory, number of core, espace disk)
    Is MySQL partitionning a good strategy for such app?
    Thank
    Have a nice day

    Hi,
    Please have a check on the below article to get you started.
    http://azure.microsoft.com/en-us/documentation/articles/choose-web-site-cloud-service-vm/
    Regards,
    Mekh.

  • Php mysql html on your server application

    hello
    I can work with example websites
    php mysql html on your server application
    ouy have to install, php mysql apache and phpmyadmin on my bakbookpro
    if your server does not do what I Querro please tell me
    and I instalho manually
    if it does I'll use it qurro
    however pressisamos people who can use that build here
    I do not have a whole life to stay behind the computer
    and if your server can not work rebuild from scratch
    do the work with php and html
    because my client wants the **** form in php

    you mean its got <TEXT LEADING FORMATS blah blah >
    yea, turn html on on the text box that ur sending to php.
    or off, well whatever it is now, do the oposite, lol.

  • Where to go next with Dreamweaver and server-side (php/mysql) applications?

    This question is mainly directed at David Powers but  I appreciate any input from anyone with the same concern or question.
    I've been using DW since the change from Macromedia and have developed a number of applications using built in server behaviors and sb extensions from ADDT, WebAssist, etc. I've learned to customize these behaviors to fit my needs always keeping within the "canned" code. In this way I've "learned" php.
    I own most of David's books and in fact, it was because of these that I have any idea about what I'm doing and went in this direction in my "developer" career (building php/mysql applications using Dreamweaver.)
    With the decision to remove server behaviors (and the other "developer" panels) from DW and with the deprecation of the mysql extension from the php landscape, I'm wondering where to go next? I fully understand this has to happen.
    I'm aware of some alternatives:
    Zend or some other framework - to me, this seems extremely complex
    Keep several versions of DW installed
    Stick to Joomla/WordPress/Drupal - let others who know what they're doing build the architecture
    Actually LEARN php - wish I had time; too much work to do (I know how illogical that sounds but it's a very real situation)
    I know I'm going to have to switch out all that deprecated code or better yet, rebuild the many applications which used the DW (and other) server behaviors. I'm just not sure which way to turn.

    rjjacob wrote:
    Since I wrote this post I concluded that there is no substitute for understanding and have started my re-education by delving further into the issue with updated PHP/MySQL books and tutorials so I can prepare for a Dreamweaver without this functionality.
    Yes, I too have concluded that is the way to go as well. There really is no substitute for learning as much as you can. Whilst the DW Server Behaviours were very convenient they have not kept pace, Adobe prefering to spent their time on less important updates in my opinion. The Server Behaviours are what makes Dreamweaver the tool of choice  for database integration for those who lack the knowledge. I feel the Adobe team will regret not coming up with an alternative. Anything that detracts from making the program what it is is a step in the wrong direction and for sure this is a big step in the wrong direction.
    rjjacob wrote:
    I have mainly used DW server behaviors in my development projects that's why I am curious about what others are doing to make the change. I'm surprised there haven't been more posts; perhaps I'm the last one to be taking action about this, or maybe no one is too worried about it yet.
    I think a lot have changed their working practice but many more are burying their heads in the sand. sql_ support is a way off from being completely dropped yet.
    rjjacob wrote:
    Anyway, your assessment of how terrible the server behaviors are is correct. I'm finding that true after barely breaking the binding on a few books about the greater subject and looking into mysqli and PDO.
    Yes, because I relied heavily on them I did not know how bad they were until I forced myself to look further afield. What you can do in a couple of lines of code the DW Server Behaviors produced quadruple or more to achieve the same.
    rjjacob wrote:
    But they sure were convenient!
    Yes, I agree. Maybe some extention developer will come up with a set of new improved behaviours. I tell you if they do they will make a shed load of money.

  • Php/mysql ajax toggle div

    Hi,
    I have recently started using ajax in my pages, and I am very impressed!
    But my skills have not yet developed and I am using a code snippet off the internet to do what I want.
    I have a hidden div tag called photo to which I want to load images into
    I have a link tag with an ID of the "album name"
    I want to call the div by clicking on the link and have the div animate down with a do while loop consisting of the images in that "album name"
    Here is my code:
    AJAX
    window.addEvent('domready', function(){
        var mySlide3 = new Fx.Slide('photo');
        mySlide3.hide();
        $('<?php echo $row_listAlbumPhotos['album_name'];?>').addEvent('click', function(e){
            e = new Event(e);
            mySlide3.toggle();
            e.stop();
    PHP
    <?php do { ?>
        <table border="0" cellpadding="5" cellspacing="5" >
          <tr>
            <?php
    $listAlbumPhotos_endRow = 0;
    $listAlbumPhotos_columns = 4; // number of columns
    $listAlbumPhotos_hloopRow1 = 0; // first row flag
    do {
        if($listAlbumPhotos_endRow == 0  && $listAlbumPhotos_hloopRow1++ != 0) echo "<tr>";
       ?>
            <td><div class="AlbumNameText"><a href="#" id="<?php echo $row_listAlbumPhotos['album_name']; ?>"><?php echo $row_listAlbumPhotos['album_name']; ?></a></div></td>
            <?php  $listAlbumPhotos_endRow++;
    if($listAlbumPhotos_endRow >= $listAlbumPhotos_columns) {
      ?>
          </tr>
          <?php
    $listAlbumPhotos_endRow = 0;
    } while ($row_listAlbumPhotos = mysql_fetch_assoc($listAlbumPhotos));
    if($listAlbumPhotos_endRow != 0) {
    while ($listAlbumPhotos_endRow < $listAlbumPhotos_columns) {
        echo("<td> </td>");
        $listAlbumPhotos_endRow++;
    echo("</tr>");
    }?>
        </table>
      <?php } while ($row_listAlbumPhotos = mysql_fetch_assoc($listAlbumPhotos)); ?>
    HTML
    <div id="photo">
    This is a test
    <br />
    </div>
    Currently this works for the first record found.
    I have setup two albums "Friends" and "Other"
    Currently Other is not accepting <a href="#" id="<?php echo $row_listAlbumPhotos['album_name'];  ?>"> the ID or the Ajax is not allowing the ID
    I'm not sure which. Can anyone help me?

    Take a look at this list:
    http://www.hotscripts.com/PHP/Scripts_and_Programs/Calendars/index.html
    Ignore the first few that have a colored background because
    those are paid resources, but the rest will do what you want.
    One note to mention on this subject is that there are
    combination scripts, PHPiCalendar being the most notable, that
    allow you to use a stand alone calendar application like iCal
    (Mac), Windows Calendar (only in Vista), or Sunbird (from Mozilla,
    Win or Mac). From those programs you could publish the calendar.
    All you would need to do is edit the template files in that script
    and then your users can publish from easy applications they know
    over a calendar app based entirely on PHP/mySQL.
    This is not say there are not good solutions, but this is
    just an observation. Also if you are using a forum, most forum
    software (ie: Invsion Power Board, vBulletin, Simple Machines Forum
    (SMF), etc) all have built in calendar scripts that are tied into
    the forum software. So that might be another avenue to consider.
    But if you just need a stand-alone app, then check out that
    list. There are some pretty good scripts there.

  • PHP/mySQL code help please

    Hi all,
    Thanks to David Powers fab tutorial I am now well on my way to competeing my first dynamique website using PHP/mySQL, (thanks David ), however I am stuck on one particular area....can anyone please help?
    I know that the mySQL database uses the format YYYY/MM/DD for dates, and that is fine. I've sorted out how to display in a more regular format (eg. 1st September 2011) for my application, but I am stuck on how to convert a more regular formatted date entered by the site user into the mySQL format.
    Ideally I would like for the users entry or say either 1/9/11 or 1-9-11 (or something along those lines, to be recognised and displayed on the entry form, but to have a backend function that converts the data to mySQL format. I seem to be reading plenty of forum posts which say this can be done, but unfortunately I can't quite seem to fathom how, or where the code should sit. Would someone mind taking a look at my code page to actually identify what I need to insert, and equally as importantly...where!!!
    Along these lines...is it possible to have a mini-calendar date picker that could be embedded next to the date entry field to ensure that a valid date is entered and in the correct format? Where could this be sourced?
    Thanks in advance of some much needed help
    Mark

    This is becoming really frustrating for me (so god knows how I am to you!!!!), but I usually pick things up so fast and yet this whole PHP/SQL thing is eluding me!!
    I can see (I think) how the code would work, but am struggling to see where it fits into place with my own Dreamweaver 'Update Record' code, as follows. I have spent a couple of days trawling through PHP.net and various other sites and forums before bringing my stupidity to the public domain, but I just can't seem to crack it.
    This one last time then i'll leave you in peace??????
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $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_update"])) && ($_POST["MM_update"] == "form1")) {
        $updateSQL = sprintf("UPDATE gig_guide SET `date`=%s, town=%s, venue=%s, private_or_public=%s, start_time=%s WHERE `index`=%s",
                           GetSQLValueString($_POST['date'], "date"),
                           GetSQLValueString($_POST['town'], "text"),
                           GetSQLValueString($_POST['venue'], "text"),
                           GetSQLValueString($_POST['type'], "text"),
                           GetSQLValueString($_POST['start_time'], "text"),
                           GetSQLValueString($_POST['index'], "int"));
      mysql_select_db($database_online, $online);
      $Result1 = mysql_query($updateSQL, $online) or die(mysql_error());
      $updateGoTo = "index.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    $colname_updatePost = "-1";
    if (isset($_GET['index'])) {
      $colname_updatePost = $_GET['index'];

  • PHP/MySQL field recognize carriage returns?

    I'm a novice PHP/MySQL database driven site builder. I need
    to have users enter text into a field with carriage returns and
    have the database recognize and store those carriage returns so it
    displays when the data is displayed on a PHP page.
    How do I do this and please keep it simple?
    Do I need to use a particular type of MySQL datafield?
    Will I be able to use the same code on an "update"
    page?

    quote:
    Originally posted by:
    geschenk
    >>
    so it displays when the data is displayed on a PHP page
    >>
    if you just need to replace the \n - type line breaks
    generated by multiline textareas with <br /> on a page, just
    use PHP´s native "nl2br"
    (new line to break) function:
    <?php echo nl2br($row_queryname['field_name']); ?>
    That works... sort of...
    When I use the update page to modify the entry it puts the
    proper "br" code in it's proper place. However when I return to
    that page to edit the text again (as my customer likely will), it
    displays the "br" code in the text field, and if I submit the
    update with the "br" code in place, it duplicates the "br" code
    again, so I get double "br" statements. How do I get the update
    field to read the "br" code back as carriage returns?
    In addition, my insert page uses the following code to write
    the original entry, and I'm not sure where to place the "nl2br"
    statement in the following query (generated by WebAsssist DW
    extensions):
    <?php
    // WA Application Builder Insert
    if (isset($_POST["Insert_x"])) // Trigger
    $WA_connection = $nm_connect;
    $WA_table = "tb_news";
    $WA_sessionName = "WADA_Insert_tb_news";
    $WA_redirectURL = "tb_news_Results.php";
    $WA_keepQueryString = false;
    $WA_indexField = "id";
    $WA_fieldNamesStr =
    "sort|s_head|s_text|head|subhead|bodytext|photoid|photocaption|name|phone|email|linktitle |linkaddress|show_pfm|show_arch|show_cab";
    $WA_fieldValuesStr =
    "".((isset($_POST["sort"]))?$_POST["sort"]:"") ."" . "|" .
    "".((isset($_POST["s_head"]))?$_POST["s_head"]:"") ."" . "|" .
    "".((isset($_POST["s_text"]))?$_POST["s_text"]:"") ."" . "|" .
    "".((isset($_POST["head"]))?$_POST["head"]:"") ."" . "|" .
    "".((isset($_POST["subhead"]))?$_POST["subhead"]:"") ."" . "|" .
    "".((isset($_POST["bodytext"]))?$_POST["bodytext"]:"") ."" . "|" .
    "".((isset($_POST["photoid"]))?$_POST["photoid"]:"") ."" . "|" .
    "".((isset($_POST["photocaption"]))?$_POST["photocaption"]:"") .""
    . "|" . "".((isset($_POST["name"]))?$_POST["name"]:"") ."" . "|" .
    "".((isset($_POST["phone"]))?$_POST["phone"]:"") ."" . "|" .
    "".((isset($_POST["email"]))?$_POST["email"]:"") ."" . "|" .
    "".((isset($_POST["linktitle"]))?$_POST["linktitle"]:"") ."" . "|"
    . "".((isset($_POST["linkaddress"]))?$_POST["linkaddress"]:"") .""
    . "|" . "".((isset($_POST["show_pfm"]))?$_POST["show_pfm"]:"") .""
    . "|" . "".((isset($_POST["show_arch"]))?$_POST["show_arch"]:"")
    ."" . "|" . "".((isset($_POST["show_cab"]))?$_POST["show_cab"]:"")
    $WA_columnTypesStr =
    "none,none,NULL|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',n one,''|',none,''|',none,''|',none,''|',none,''|none,none,NULL|none,none,NULL|none,none,NUL L";
    $WA_fieldNames = explode("|", $WA_fieldNamesStr);
    $WA_fieldValues = explode("|", $WA_fieldValuesStr);
    $WA_columns = explode("|", $WA_columnTypesStr);
    $WA_connectionDB = $database_nm_connect;
    mysql_select_db($WA_connectionDB, $WA_connection);
    if (!session_id()) session_start();
    $insertParamsObj =
    WA_AB_generateInsertParams($WA_fieldNames, $WA_columns,
    $WA_fieldValues, -1);
    $WA_Sql = "INSERT INTO " . $WA_table . " (" .
    $insertParamsObj->WA_tableValues . ") VALUES (" .
    $insertParamsObj->WA_dbValues . ")";
    $MM_editCmd = mysql_query($WA_Sql, $WA_connection) or
    die(mysql_error());
    $_SESSION[$WA_sessionName] = mysql_insert_id();
    if ($WA_redirectURL != "") {
    if ($WA_keepQueryString && $WA_redirectURL != ""
    && isset($_SERVER["QUERY_STRING"]) &&
    $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
    $WA_redirectURL .= ((strpos($WA_redirectURL, '?') ===
    false)?"?":"&").$_SERVER["QUERY_STRING"];
    header("Location: ".$WA_redirectURL);
    ?>

  • PHP/MySQL - Nav links pass variable to another page? Or?

    I'm a PHP/MySQL beginner. I'm digging through books and tutorials as best I can, but finding myself a little lost in the sheer volume of information. If someone can point me in the right direction for this task, I'd really appreciate it.
    I have a database (MySQL) with two tables. One is a list of carpets, and the other a list of the categories of carpets and information about those categories.
    The "carpets" table has a field for each record to indicate which category that carpet belongs to.
    I'm trying to do this:
    - A navigation bar listing the categories
    - When you click on a category, a "gallery" page opens, display the carpets (name, description, photo) of each carpet in that category
    Does Dreamweaver have server behaviors for this? If not, can anyone give me a general idea of what the code is I need to write to make this happen?
    Thanks VERY much in advance,
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate Worksheet

    David,
    I believe I've done exactly what you described above; only my naming is slightly different.
    catID in my database is "category_id"
    page.php in my application is "navbar.php"
    detail.php in my application is "gallery.php"
    When I view navbar.php in the browser and click on one of the links, the resulting URL is like this:
    gallery.php?2=
    or
    gallery.php?3=
    etc.
    I'm pasting the whole code from navbar.php and gallery.php below, in case it's is helpful for you to have a look at it (and you have the time to).
    I am really grateful for your help.
    Patty
    ------------ navbar.php ----------------------------------------------------------------------------------------- ---------------------
    <?php require_once('Connections/connSouthwest.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $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;
    mysql_select_db($database_connSouthwest, $connSouthwest);
    $query_GetCategories = "SELECT * FROM categories";
    $GetCategories = mysql_query($query_GetCategories, $connSouthwest) or die(mysql_error());
    $row_GetCategories = mysql_fetch_assoc($GetCategories);
    $totalRows_GetCategories = mysql_num_rows($GetCategories);
    ?>
    <!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>Navbar</title>
    </head>
    <body>
    <ul>
      <?php do { ?>
        <li><a href="gallery.php?<?php echo $row_GetCategories['category_id']; ?>="><?php echo $row_GetCategories['category_name']; ?></a></li>
        <?php } while ($row_GetCategories = mysql_fetch_assoc($GetCategories)); ?>
    </ul>
    </body>
    </html>
    <?php
    mysql_free_result($GetCategories);
    ?>
    ----------------- gallery.php -----------------------------------------------
    <?php require_once('Connections/connSouthwest.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $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;
    $maxRows_GetCarpet = 10;
    $pageNum_GetCarpet = 0;
    if (isset($_GET['pageNum_GetCarpet'])) {
      $pageNum_GetCarpet = $_GET['pageNum_GetCarpet'];
    $startRow_GetCarpet = $pageNum_GetCarpet * $maxRows_GetCarpet;
    $colname_GetCarpet = "-1";
    if (isset($_GET['category_id'])) {
      $colname_GetCarpet = $_GET['category_id'];
    mysql_select_db($database_connSouthwest, $connSouthwest);
    $query_GetCarpet = sprintf("SELECT * FROM carpets WHERE category_id = %s ORDER BY carpet_sort ASC", GetSQLValueString($colname_GetCarpet, "int"));
    $query_limit_GetCarpet = sprintf("%s LIMIT %d, %d", $query_GetCarpet, $startRow_GetCarpet, $maxRows_GetCarpet);
    $GetCarpet = mysql_query($query_limit_GetCarpet, $connSouthwest) or die(mysql_error());
    $row_GetCarpet = mysql_fetch_assoc($GetCarpet);
    if (isset($_GET['totalRows_GetCarpet'])) {
      $totalRows_GetCarpet = $_GET['totalRows_GetCarpet'];
    } else {
      $all_GetCarpet = mysql_query($query_GetCarpet);
      $totalRows_GetCarpet = mysql_num_rows($all_GetCarpet);
    $totalPages_GetCarpet = ceil($totalRows_GetCarpet/$maxRows_GetCarpet)-1;
    ?>
    <!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>Category Name | Southwest Looms</title>
    </head>
    <body>
    <h1>Gallery Page</h1>
    <p>Category Name will go here.<br />
      Category Description will go here. </p>
    <p></p>
    <table width="100%" border="0" cellspacing="0" cellpadding="5">
      <?php do { ?>
        <tr>
          <td><?php echo $row_GetCarpet['carpet_photo_thumb']; ?></td>
          <td><?php echo $row_GetCarpet['carpet_name']; ?>: <?php echo $row_GetCarpet['carpet_description']; ?></td>
        </tr>
        <?php } while ($row_GetCarpet = mysql_fetch_assoc($GetCarpet)); ?>
    </table>
    <p> </p>
    </body>
    </html>
    <?php
    mysql_free_result($GetCarpet);
    ?>

  • Php/mysql all caps

    I have a php mysql insert record application built in
    dreamweaver. Is there a way to force or convert all inputted text
    to all caps? I tried a style sheet text transform, but that doesn't
    make the actual entry into the database all caps. Thanks.

    Admittedly though, that's pretty easy too.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Gary White" <[email protected]> wrote in message
    news:[email protected]..
    > On Tue, 13 Jan 2009 23:09:15 +0000, David Powers
    <[email protected]>
    > wrote:
    >
    >>Why? That means converting the data every time it's
    displayed. If the
    >>data is always required as uppercase, it makes more
    sense to convert it
    >>once at the time of storage.
    >
    > For the most part, I agree. However, there is the
    possibility down the
    > road, that they might want to use the data for something
    other than the
    > current ticker. In that case, it might display better in
    mixed case. It's
    > a lot easier to convert to all upper case for the
    ticker, than to try to
    > convert all upper case to mixed case.
    >
    > Gary

  • How to set up a PHP/mySQL "server" in arch?

    Hi,
    I know its a wide question, and i may have to go to different howtos and such, but as this distro is different from the others there might be some differences in that.
    If i want to run a PHP based site in mozilla and the site is hosted in my machine, do i need to do something real strange to make it work ?
    if you can post any link to some info, it wont hurt. and yes i will google anyway!

    sud_crow wrote:If i want to run a PHP based site in mozilla and the site is hosted in my machine, do i need to do something real strange to make it work?
    I am running Apche/PHP/MySQL on my machine and simple to setup. Few things requires to know. It can be done in different way. This is how I do including how to test the server(s). Host name is: "localhost". If anything is missing, please let me know.
    <b>INSTALL:</b>
    pacman -S apache
    pacman -S php
    pacman -S mysql
    <b>APACHE:</b>
    <b>1. </b>Add the following line in /etc/httpd/conf/httpd.conf :
    LoadModule php4_module /usr/lib/apache/libphp4.so
    AddModule mod_php4.c
    AddType application/x-httpd-php .php
    <b>2.</b> Add line in /etc/host :
    127.0.0.1 localhost.localdomain localhost
    <b>3.</b> Edit /etc/rc.conf :
    # Networking
    HOSTNAME="localhost"
    <b>4.</b> Run in terminal (root):
    # /etc/rc.d/httpd start
    <b>5.</b> Edit /etc/httpd/conf/httpd.conf (close "AddModule mod_php4.c"):
    LoadModule php4_module /usr/lib/apache/libphp4.so
    # AddModule mod_php4.c
    AddType application/x-httpd-php .php
    <b>6.</b> Add line in /etc/rc.local (to start at boot):
    /etc/rc.d/httpd start
    <b>Test</b> Apache:
    http://localhost/
    <b>PHP:</b>
    <b>1.</b> Edit /usr/etc/php.ini (open the mysql extension):
    extension=mysql.so
    Test PHP with a simple script:
    <html>
    This is a test. Say hello to Arch:
    <p>
    <body>
    <?php
    $myvar = "Hello Arch Linux";
    echo $myvar;
    ?>
    </body>
    </html>
    Save the file as "test.php" and copy to /home/httpd/html/
    <b>Test</b> PHP:
    http://localhost/test.php
    <b>MySQL:</b>
    <b>1.</b> Run in terminal:
    # /etc/rc.d/mysqld start
    <b>2.</b> Add line in /etc/rc.local (to start at boot):
    /etc/rc.d/mysqld start
    <b>Test</b> MySQL
    Run in terminal (don't enter any password):
    # mysql -p
    <b>Note:</b> Change the /var/lib/mysql directory to user "mysql" if not getting MySQL to run.
    <b>For more information</b> (if new in PHP/MySQL):
    http://hotwired.lycos.com/webmonkey/99/21/index2a.html

  • Where can I download the latest PHP MySQL libraries?

    my phpMyAdmin panel says "Your PHP MySQL library version 5.0.82 differs from your MySQL server version 5.1.45. This may cause unpredictable behavior."
    I should update Leopard's PHP MySQL library to 5.1.45 or downgrade MySQL to 5.82… but I can't find any.
    In the while I find MySQL 5.0.82 or an alternative fix…
    Do you know where I can find those libraries?
    Thanks.

    I found that newest php works with its own mysql (5.0.9, or so) and it's not using mine. I'd rather install back the one shipped with Leopard if I had to go versions back.
    Also, I couldn't get it to work (#2002 error, sockets were there but still not working) and once I uninstalled it, it was supposed to leave the OS untouched, but Leopard's didn't come back to life. I had to add the following lines to httpd.conf, otherwise the php code was shown, instead of executed.
    AddType application/x-httpd-php .php .phtml
    DirectoryIndex index.html index.php
    I'd think I saw the previous mysql folders somewhere and Leopard making an alias to the right one somewhere. Do you remember where?

  • Macromedia Dreamweaver "Unidentified Error" PHP MySQL, help please

    Ok,
    I've been developing web applications with with PHP/MySQL for some time now, but had been unable to afford dreamweaver to help me out. Thus every website I made came from strait "notepad" style typeing. Everything always worked just fine. Recently though I got my hands on Macromedia Studio MX, but have been having troubles ever since then.
    I wrote my own PHP script to connect to my MySQL database on my computer (localhost), and it worked like a charm. Then I went over to dreamweaver, followed all the steps, entered the information, clicked the "test" button and I get the an error "an unidentified error occured".
    At this point I checked everything tried again, and then that rendered the same result, I went online and found the same problem at Macromedia's webstie: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16515
    I've tried everything mentioned there to no avail. I was hopeing someone out there would know what is wrong with my connection. Quick summary:
    Trying to connect with Dreamweaver to localhost MySQL database, with PHP MySQL settings. I get "an unidentified error occured". But the informaiton has been verified as correct with my own PHP script.

    Sorry, but it doesn't help JTANNA.
    What is your definition of "more efficiently"? If it's limitation of search results, branded search, and limitation of styling your results then google search is more efficient. Real developers rely on their own developments. For example: how can google search display results from a password-protected site? They can't.
    best,
    Shocker

  • CS6 Dreamweaver using PHP & MySQL - Delete Record Server Behavior?

    When I try to insert the Delete Record server behavior. I get an error message about a DeleteRecord.js file, which seems to be missing or defective.  I cannot use the server behavior.  I have a file that I developed using CS5, and it does indeed delete the record, but does not proceed to the destination I want.  I cannot change that except in the server behavior, so I'm stuck.  I have noticed that server behaviors seem to disappear without apparent cause, as it seems to have in this case.  I will appreciate any suggestions!  Is there any way to embed a call to a target page manually?  All is working WITHOUT the server behavior appearing, but I want to go to a confirmation display page that shows the record is indeed deleted, and we just return to the (now blank) delete confirmation page.  That'll drive a user bonkers!
    Thanks!
    Delete Record in CS6 Dreamweaver using PHP & MySQL?

    Well, your error message is self-explanatory.
    DW stores ServerBehaviors in 'Configuration' folder in installation directory. If one of the behavior JS files is missing/ corrupt, you'll see the error message you just did.
    I've uploaded a functional, proper version of DeleteRecord.js onto my site for you to download. Here's the link:
    http://www.sudarshan.me/adobeforum/dw/app/behavior-js/DeleteRecord.zip
    Download this file, extract it and put DeleteRecord.js file in your installation directory as follows. If prompted, 'replace' your local copy:
    Mac: Applications > Adobe Dreamweaver CS6 > Configuration > ServerBehaviors > PHP_MySQL
    Windows: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS6\[language]\Configuration\ServerBehaviors\PHP_MySQL
    It should work as expected.
    If that still doesn't solve the problem, reset your DW preferences and cache and try doing it. Follow the instructions here to reset cache: http://forums.adobe.com/thread/494811
    Let us know how it goes.
    -ST

  • Installed PHP & MySQL, and now I have file permission errors.

    Hi Everyone
    I recently made a switch from using MAMP to making a separate installation of PHP, MySQL and Rails. I used the first tutorial for Rails + MySQL, and the second one for PHP;
    http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx
    http://www.entropy.ch/software/MacOSx/mysql/
    Unfortunately, I now receive errors when trying to install activeCollab through it's own PHP install script, and WordPress won't let me import xml backups into a locally installed WordPress. This must mean that I don't have full Read/Write access to my 'Sites' directory (this is set as my default htdocs in the Apache httpd.conf). I haven't noticed any problems with Rails - so far it's only been PHP based CMS's which have thrown up the permission errors.
    I've checked the file permissions on my 'Sites' folder - I'm the only user on the machine, and my account has full Read/Write access to the folder. However, I've noticed that there is also the option to choose 'Group' access, for which my account is again selected and given Read/Write access.
    Then there is 'Others' category, and this has 'Read only' access. Is there an option in there which I need to select and give Read/Write permissions to? mysql, php ?
    Or, is there a MySQL/PHP/Apache config file somewhere, within which I need to give global read/write permissions?
    I didn't have this problem when I was served up local sites from MAMP - and I also configured MAMP to use the 'Sites' folder as it's default htdocs folder. I get the impression that because MAMP was installed as an 'Application', that it automatically inherited my user permissions - maybe PHP and MySQL don't inherit my user account permissions because they are services?...
    I've come very far with getting everything installed to work with the OS X bundled Apache server (which I believe is 1.3 - I certainly haven't updated it) so I'd love to get everything finally configured - therefore, any help with this is very, very much appreciated!
    MacBook Pro 2.4Ghz    

    You'll probably get a better response at the Server Products or Networking & Web http://discussions.apple.com/forum.jspa?forumID=733 forums.

Maybe you are looking for

  • My ipod shuffle is no longer reconized on my computer and restoring issues.

    . when i plugged my ipod shuffle g1 in a few days ago itunes said the i had to restore my ipod. i did not want to but i had no choice cauz it already deleted my songs. after 5 trys it said "cant restore ipod"ipod". unknown error occurred (1418))(itun

  • Creation of new version in Controlling

    Hello FI experts, I am trying to create a new version in controlling thru tcode OKEQ, when I try to go Settings for each fiscal year it tells me that version ... #  Ia does nto exist in table TK09. am I missing a privous step? thank you for your help

  • How can I get adobe on my iPad?

    Does anyone know.

  • HT204350 Migration Assistant is NOT working

    Migration Assistant is NOT working - Have tried from from a hard disk and using the Thunderbolt cable.  Keeps Looking for Source. Any ideas?  I really want to more on to my new Mac.

  • PPT to DVD using Quicktime Pro

    I am trying to transfer a Powerpoint slide to a DVD. I had heard it could be done using Quicktime Pro. I have made the PPT a .mov and can get it to open in Quicktime, but the animations and timing does not transfer. A 5-second PPT is coming out as 17