PHP/MySql Error Message

I've posted this before and didn't get the answer that I need, probably because I didn't post all of my codes. I am using PHP/MySql.  I created a website that has several forms.  When I process three of the forms, I get the error messages below:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Condition, Length, Color, City, `State`, Email, Photo) VALUES ('29', '4', 'Used'' at line 1.
Below I am posting the codes.  Hopefully, this time I posted everything that I should have so that I can get assistance.   
FORM
<form action="<?php echo $editFormAction; ?>" method="POST" enctype="multipart/form-data" name="individual" class="individual" id="individual">
  <table width="594" border="0" class="test">
  <tr></tr>
  <tr>
    <td width="166" class="td">Posting Title</td>
    <td colspan="3"><span id="sprytextfield1">
      <label>
        <input name="Posting Title" type="text" class="test" id="Posting Title" size="35" />
        </label>
      <span class="textfieldRequiredMsg">Required</span></span></td>
  </tr>
  <tr>
    <td class="td">Price</td>
    <td colspan="3"><span id="sprytextfield2">
      <label>
        <input name="price" type="text" class="test" id="price" size="35" />
      </label>
      <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
  </tr>
  <tr>
    <td class="td">Size(s)</td>
    <td colspan="3"><label>
      <select name="size" size="1" multiple="multiple" class="test" id="size">
<option>0</option>
        <option>2</option>
        <option>4</option>
        <option>6</option>
        <option>8</option>
        <option>10</option>
        <option>12</option>
        <option>14</option>
        <option>16</option>
        <option>18</option>
        <option>20</option>
        <option>22</option>
        <option>24</option>
        <option>26</option>
      </select>
    </label></td>
  </tr>
  <tr>
    <td class="td">Condition</td>
    <td colspan="3"><label>
      <select name="Condition" class="test" id="Condition">
<option>New</option>
        <option>Used</option>
      </select>
    </label></td>
  </tr>
  <tr>
    <td class="td">Length</td>
    <td colspan="3"><label>
      <select name="Length" class="test" id="Length">
<option>Long</option>
<option>Short</option>
<option>Mid-Length</option>
      </select>
    </label></td>
  </tr>
  <tr>
    <td class="td">Color</td>
    <td colspan="3" class="td"><span id="sprytextfield5">
      <label>
        <input name="Color" type="text" class="test" id="Color" size="35" />
      </label>
      <span class="textfieldRequiredMsg">Required</span></span></td>
  </tr>
  <tr>
    <td class="td">City</td>
    <td class="td"><span id="sprytextfield4">
      <label>
        <input name="City" type="text" class="test" id="City" size="35" />
      </label>
      <span class="textfieldRequiredMsg">Required</span></span></td>
    <td class="td"> </td>
    <td class="td"> </td>
  </tr>
  <tr>
    <td class="td">State</td>
    <td colspan="3"><label>
      <select name="State" class="test" id="State">
        <option>AL</option>
        <option>AK</option>
        <option>AZ</option>
        <option>AR</option>
        <option>CA</option>
        <option>CO</option>
        <option>CT</option>
        <option>DE</option>
        <option>DC</option>
        <option>FL</option>
        <option>GA</option>
        <option>HI</option>
        <option>ID</option>
        <option>IL</option>
        <option>IN</option>
        <option>IA</option>
        <option>KS</option>
        <option>KY</option>
        <option>LA</option>
        <option>ME</option>
        <option>MD</option>
        <option>MA</option>
        <option>MI</option>
        <option>MN</option>
        <option>MS</option>
        <option>MO</option>
        <option>MT</option>
        <option>NE</option>
        <option>NV</option>
        <option>NH</option>
        <option>NJ</option>
        <option>NM</option>
        <option>NY</option>
        <option>NC</option>
        <option>ND</option>
        <option>OH</option>
        <option>OK</option>
        <option>OR</option>
        <option>PA</option>
        <option>RI</option>
        <option>SC</option>
        <option>SD</option>
        <option>TN</option>
        <option>TX</option>
        <option>UT</option>
        <option>VT</option>
        <option>VA</option>
        <option>WA</option>
        <option>WV</option>
        <option>WI</option>
        <option>WY</option>
      </select>
    </label></td>
  </tr>
  <tr>
    <td class="td">Email</td>
    <td colspan="3"><span id="sprytextfield3">
      <label>
        <input name="Email" type="text" class="test" id="Email" size="35" />
      </label>
      <span class="textfieldRequiredMsg">Required</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
  </tr>
  <tr>
    <td height="26" class="td">Confirm Email</td>
    <td colspan="3"><span id="spryconfirm1">
      <label>
        <input name="Confirm Email2" type="text" class="test" id="Confirm Email2" size="35" />
      </label>
      <span class="confirmRequiredMsg">Required</span><span class="confirmInvalidMsg">The values don't match.</span></span></td>
  </tr>
  <tr>
    <td height="26" class="td">Photo(s)</td>
    <td colspan="3"><label>
      <input name="Photo" type="file" class="test" id="Photo" size="35" />
    </label></td>
  </tr>
  <tr>
    <td height="131" class="td">Additional Details</td>
    <td colspan="3"><label>
      <textarea name="Additional Details" cols="40" rows="6" class="test" id="Additional Details"></textarea>
    </label></td>
  </tr>
  </table>
  <p>
    <label>
      <input name="Submit" type="submit" class="test" id="Submit" value="Post" />
    </label>
  </p>
  <input type="hidden" name="MM_insert" value="individual" />
</form>
SERVER BEHAVIOR
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_insert"])) && ($_POST["MM_insert"] == "individual")) {
  $insertSQL = sprintf("INSERT INTO donations (postingTitle, `size`, condition, length, color, city, `state`, email, photo) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['Posting Title'], "text"),
                       GetSQLValueString($_POST['size'], "text"),
                       GetSQLValueString($_POST['Condition'], "text"),
                       GetSQLValueString($_POST['Length'], "text"),
                       GetSQLValueString($_POST['Color'], "text"),
                       GetSQLValueString($_POST['City'], "text"),
                       GetSQLValueString($_POST['State'], "text"),
                       GetSQLValueString($_POST['Email'], "text"),
                       GetSQLValueString($_POST['Photo'], "text"));
  mysql_select_db($database_bridesmaidsrack_db, $bridesmaidsrack_db);
  $Result1 = mysql_query($insertSQL, $bridesmaidsrack_db) or die(mysql_error());
  $insertGoTo = "donations.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  header(sprintf("Location: %s", $insertGoTo));
DATABASE CONNECTION
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_bridesmaidsrack_db = "localhost";
$database_bridesmaidsrack_db = "bridesmaidsrack";
$username_bridesmaidsrack_db = "";
$password_bridesmaidsrack_db = "";
$bridesmaidsrack_db = mysql_pconnect($hostname_bridesmaidsrack_db, $username_bridesmaidsrack_db, $password_bridesmaidsrack_db) or trigger_error(mysql_error(),E_USER_ERROR);

Hi David,
I did as you recommended. For good measure, I even changed the case of the letters to make sure that they coincide with exactly what's in the database.  I still kept getting the same error message.  So I deleted the recordset and attempted to recreate it.  When I attempted to recreate the record set, I got the following error message: "RangeError: invalid array length".  My codes are listed below:
Form:
<form method="POST" enctype="multipart/form-data" name="individual" class="individual" id="individual">
  <table width="594" border="0" class="test">
  <tr></tr>
  <tr>
    <td width="166" class="td">Posting Title</td>
    <td colspan="3"><span id="sprytextfield1">
      <label>
        <input name="posting_title" type="text" class="test" id="posting_title" size="35" />
        </label>
      <span class="textfieldRequiredMsg">Required</span></span></td>
  </tr>
  <tr>
    <td class="td">Size(s)</td>
    <td colspan="3"><label>
      <select name="size" size="1" multiple="multiple" class="test" id="size">
  <option>0</option>
        <option>2</option>
        <option>4</option>
        <option>6</option>
        <option>8</option>
        <option>10</option>
        <option>12</option>
        <option>14</option>
        <option>16</option>
        <option>18</option>
        <option>20</option>
        <option>22</option>
        <option>24</option>
        <option>26</option>
        </select>
      <span class="Text">To select multiple sizes, hold ctrl and select each size.</span></label></td>
  </tr>
  <tr>
    <td class="td">Condition</td>
    <td colspan="3"><label>
      <select name="condition" class="test" id="condition">
<option>New</option>
        <option>Used</option>
      </select>
    </label></td>
  </tr>
  <tr>
    <td class="td">Length</td>
    <td colspan="3"><label>
      <select name="length" class="test" id="length">
<option>Long</option>
<option>Short</option>
<option>Mid-Length</option>
      </select>
    </label></td>
  </tr>
  <tr>
    <td class="td">Color(s)</td>
    <td colspan="3" class="td"><span id="sprytextfield5">
      <label>
        <input name="color" type="text" class="test" id="color" size="35" />
      </label>
      <span class="textfieldRequiredMsg">Required</span></span></td>
  </tr>
  <tr>
    <td class="td">City</td>
    <td class="td"><span id="sprytextfield4">
      <label>
        <input name="city" type="text" class="test" id="city" size="35" />
      </label>
      <span class="textfieldRequiredMsg">Required</span></span></td>
    <td class="td"> </td>
    <td class="td"> </td>
  </tr>
  <tr>
    <td class="td">State</td>
    <td colspan="3"><label>
      <select name="state" class="test" id="state">
        <option>AL</option>
        <option>AK</option>
        <option>AZ</option>
        <option>AR</option>
        <option>CA</option>
        <option>CO</option>
        <option>CT</option>
        <option>DE</option>
        <option>DC</option>
        <option>FL</option>
        <option>GA</option>
        <option>HI</option>
        <option>ID</option>
        <option>IL</option>
        <option>IN</option>
        <option>IA</option>
        <option>KS</option>
        <option>KY</option>
        <option>LA</option>
        <option>ME</option>
        <option>MD</option>
        <option>MA</option>
        <option>MI</option>
        <option>MN</option>
        <option>MS</option>
        <option>MO</option>
        <option>MT</option>
        <option>NE</option>
        <option>NV</option>
        <option>NH</option>
        <option>NJ</option>
        <option>NM</option>
        <option>NY</option>
        <option>NC</option>
        <option>ND</option>
        <option>OH</option>
        <option>OK</option>
        <option>OR</option>
        <option>PA</option>
        <option>RI</option>
        <option>SC</option>
        <option>SD</option>
        <option>TN</option>
        <option>TX</option>
        <option>UT</option>
        <option>VT</option>
        <option>VA</option>
        <option>WA</option>
        <option>WV</option>
        <option>WI</option>
        <option>WY</option>
      </select>
    </label></td>
  </tr>
  <tr>
    <td class="td">Email</td>
    <td colspan="3"><span id="sprytextfield3">
      <label>
        <input name="email" type="text" class="test" id="email" size="35" />
      </label>
      <span class="textfieldRequiredMsg">Required</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
  </tr>
  <tr>
    <td height="26" class="td">Confirm Email</td>
    <td colspan="3"><span id="spryconfirm1">
      <label>
        <input name="confirm_email2" type="text" class="test" id="confirm_email2" size="35" />
      </label>
      <span class="confirmRequiredMsg">Required</span><span class="confirmInvalidMsg">The values don't match.</span></span></td>
  </tr>
  <tr>
    <td height="26" class="td">Photo(s)</td>
    <td colspan="3"><label>
      <input name="Photo" type="file" class="test" id="Photo" size="35" />
    </label></td>
  </tr>
  <tr>
    <td height="131" class="td">Additional Details</td>
    <td colspan="3"><label>
      <textarea name="Additional Details" cols="40" rows="6" class="test" id="Additional Details"></textarea>
      <input name="hiddenField" type="hidden" id="hiddenField" value="Date" />
    </label></td>
  </tr>
  </table>
  <p>
    <label>
      <input name="Submit" type="submit" class="test" id="Submit" value="Post" />
    </label>
  </p>
</form>
Server Behavior
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_insert"])) && ($_POST["MM_insert"] == "individual")) {
  $insertSQL = sprintf("INSERT INTO donations (posting_title, `size`, condition, length, color, city, `state`, email, photo) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['posting_title'], "text"),
                       GetSQLValueString($_POST['size'], "text"),
                       GetSQLValueString($_POST['condition'], "text"),
                       GetSQLValueString($_POST['length'], "text"),
                       GetSQLValueString($_POST['color'], "text"),
                       GetSQLValueString($_POST['city'], "text"),
                       GetSQLValueString($_POST['state'], "text"),
                       GetSQLValueString($_POST['email'], "text"),
                       GetSQLValueString($_POST['Photo'], "text"));
  mysql_select_db($database_bridesmaidsrack_db, $bridesmaidsrack_db);
  $Result1 = mysql_query($insertSQL, $bridesmaidsrack_db) or die(mysql_error());
  $insertGoTo = "donations.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  header(sprintf("Location: %s", $insertGoTo));

Similar Messages

  • [Help] Replace MySQL error message

    In insert form, I want to post a especial error message, instead of mysql_error
    here an example:
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "insert_form")) {
      $insertSQL = sprintf("INSERT INTO stuff (title, numbers) VALUES (%s, %s)",
                           GetSQLValueString($_POST['titla'], "text"),
                           GetSQLValueString($_POST['numbers'], "int") );
      mysql_select_db($database_connection, $connection);
      $Result1 = mysql_query($insertSQL, $connection) or die(mysql_error());
    cause i get an error like cannot be null
    Thanks.
    [Subject line edited by moderator to make it more meaningful]

    If you want to replace the MySQL error message, you can put your own error message in quotes in the die() command. Change this:
    $Result1 = mysql_query($insertSQL, $connection) or die(mysql_error());
    to this:
    $Result1 = mysql_query($insertSQL, $connection) or die('Database error');
    However, that's not very helpful to a user, because all that will be displayed is "Database error" with no indication of what caused the error or any way of returning to the page, except by using the browser back button.
    A better way of handling things is to remove the or die(mysql_error()) section of code altogether and replace it with a PHP conditional statement that sends the user to an error page if the SQL fails for any reason. However, making these changes will prevent you from making further edits to the server behavior through the Server Behaviors panel.
    $Result1 = mysql_query($insertSQL, $connection);
    if (!$Result1) {
      $insertGoTo = 'error.php';
    } else {
      $insertGoTo = 'another_page.php' // <-- this is the original $insertGoTo line

  • MySQL Error Message

    Just learned the basics of dynamic content within the last
    week through resources here at Adobe and really dont know where to
    start looking to fix this error so I came here.
    The error keeps coming up when I try to edit a table's query.
    SQL query:
    A
    MySQL said: Documentation
    #1064 - You have an error in your SQL syntax; check the
    manual that corresponds to your MySQL server version for the right
    syntax to use near 'A' at line 1
    But the thing is when I edit on my local wamp server it edits
    just fine and saves. So I've pretty much narrowed it down to
    something that has to do with my user/password on my isp server.
    I'm just a beginner and this question has probably been asked
    before, so go easy on me.

    JohnGJ wrote:
    > I changed them to apostrophe's and still got the same
    error message.
    >
    > I have the same exact article on my local server, and it
    works fine when I
    > update it.
    >
    > This seems like a very unique problem as I cant find it
    anywhere on any other
    > forums.
    No, it's not a very unique problem. It's almost certainly a
    question of
    incorrectly escaped quotes or special characters. The server
    behaviors
    in Dreamweaver handle all of this correctly for you. If
    you're
    hand-coding, you need to remove any magic quotes and filter
    your data
    through mysql_real_escape_string(). More details here:
    http://docs.php.net/manual/en/function.mysql-real-escape-string.php
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • PHP MySQL Error Code 500

    May be someone can help me out with this problem.
    I have setup a new site using PHP MySQL and Dreamweaver 8.02.
    Dreamweaver connects to the database but after creating a
    recordset the recordset cannot be used.
    instead Dreamweaver returns:
    HTTP Error Code 500 internal Server Error
    Any help will be much appriciated.
    Jos

    Hello,
    I have also had the same error - namely that whilst I could connect via ftp, upload/download files, and view database tables, any attempt to view of modify recordsets resulted in error 500.
    Having checked other potential causes (e.g. selection/non-selection use of passive FTP setting, enabling of php, etc.), on the back of posts here I contacted my host and asked if if could relate to mod security, as further investigation revealed that the issue only occurred on sites where mod security had not been disabled (I don't like to disable mod security for obvious reasons - and I'm told you can't do that site by site with apache2 anyway).
    After a few false starts, the problem was resolved - with the following response from my host: "The false positives were being generated by "/_mmServerScripts/MMHTTPDB.php" and that is what we've worked around in the rules. As such, any domain on [servername] using that script in the same way shouldn't generate a false-positive moving forward."
    So it seems the answer (assuming your on an apache server of course) may be to modify the rules to allow full access for MMHTTPDB.php.
    I hope that is of help to some.

  • Php/mySQL error after updating

    I updated my Mac last week from Leopard 10.5.8 to Snow Leopard 10.6.2
    After the update I am now unable to run local connections to the mySQL server I have running on my Mac. I now get this type of error:
    +Warning: mysql_pconnect() [function.mysql-pconnect]: [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in /Users/Luke/Sites/tbec/Connections/tbec.php on line 9+
    +Warning: mysql_pconnect() [function.mysql-pconnect]: No such file or directory in /Users/Luke/Sites/tbec/Connections/tbec.php on line 9+
    +Fatal error: No such file or directory in /Users/Luke/Sites/tbec/Connections/tbec.php on line 9+
    I have checked to see the php.ini file is setup in the etc folder, and it is.
    Has anyone suffered the same issue as me? If so what is the cure?

    Try perusing and posting to the Unix forum under OS X Technologies where those gurus congregate.

  • PHP/MySQL error since upgrading to Snow Leopard

    When I upgraded to Snow Leopard from Leopard I am getting errors on my webserver:
    *Warning: mysql_connect() http://function.mysql-connect: OK packet 6 bytes shorter than expected in /Library/WebServer/mysql_connect.php on line 8*
    *Warning: mysql_connect() http://function.mysql-connect: mysqlnd cannot connect to MySQL 4.1+ using old authentication in /Library/WebServer/mysql_connect.php on line 8*
    The MySQL server is hosted remotely, and the php files are running locally.
    Any ideas?
    Thanks in advance.

    Got mine working:
    I fixed the bug per http://bugs.php.net/bug.php?id=49267
    and
    I complied php-5.3.1RC1 with
    ./configure '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--sysconfdir=/private/etc' '--with-apxs2=/usr/sbin/apxs' '--enable-cli' '--with-config-file-path=/etc' '--with-libxml-dir=/usr' '--with-openssl=/usr' '--with-kerberos=/usr' '--with-zlib=/usr' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--with-curl=/usr' '--enable-exif' '--enable-ftp' '--with-ldap=/usr' '--with-ldap-sasl=/usr' '--enable-mbstring' '--enable-mbregex' '--with-mysql=/usr/local/mysql' '--with-mysql-sock=/var/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-iodbc=/usr' '--enable-shmop' '--with-snmp=/usr' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-xmlrpc' '--with-iconv-dir=/usr' '--with-xsl=/usr'

  • Mysql error message on installation?

    when i installed mysql i got this message:
    WARNING: The host 'ArchStigma' could not be looked up with resolveip.
    This probably means that your libc libraries are not 100 % compatible
    with this binary MySQL version. The MySQL daemon, mysqld, should work
    normally with the exception that host name resolving will not work.
    This means that you should use IP addresses instead of hostnames
    when specifying MySQL privileges !
    although i can use the command line, i can't use mysql workbench, it gives me an error:
    Cannot Connect to Database Server
    Your connection attempt failed for user 'root' from your host to server at 127.0.0.1:3306:
      Lost connection to MySQL server at 'reading initial communication packet', system error: 111
    Please:
    1 Check that mysql is running on server 127.0.0.1
    2 Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed)
    3 Check the root has rights to connect to 127.0.0.1 from your address (mysql rights define what clients can connect to the server and from which machines)
    4 Make sure you are both providing a password if needed and using the correct password for 127.0.0.1 connecting from the host address you're connecting from
    i've tried putting my ip address and/or "localhost" as the hostname, but i get the same problem.
    what can i do???
    Last edited by infernalarch (2010-11-11 16:11:07)

    whatshisname wrote:
    wonder wrote:
    whatshisname wrote:
    In my.cnf:
    change
    bind-address         = 127.0.0.1
    to
    bind-address            = 0.0.0.0
    restart server
    not enough and kinda stupid to listen to all interfaces(security problem). you only need to comment out skip-networking
    You learn something new every day.  But the original poster will also have to comment out: "bind-address = 127.0.0.1" as well, won't he?  At least that what I had to do on my workstation.
    i put the skip-networking line as a comment and still can't get workbench to work, by the way i do not have the line "bind-address = 127.0.0.1"
    i´really don't know what to do..
    please help.

  • Golive 6 + Dynamic Content + PHP + MySQL = ERROR

    Hola compañeros latinos, les escribo porque Golive se esta portando muy mal.
    Estoy creando un sistema de actualizacion de contenido muy simple y cuando intento cargar datos me da el siguiente error:
    Mi equipo es:
    -Win XP Pro
    -Golive 6.0.1
    -PHP 4.3.1
    -MySQL 3.23.49
    Gracias
    Leandro

    Hola, Daniel.
    ¿Te refieres a que no existe un botón Agregar Tema en el Foro de Imagen Digital (Photoshop, Photoshop Elements y Album)? Pues confieso que lo acabo de verificar y, si no es por tu pregunta, no lo habría notado.
    Tengo contacto fluido con John Cornicello, a raíz de haber estado colaborando de manera informal en mejorar estos foros en español, hasta que se despertó el interés de Adobe España en el tema. Él es la persona que se encarga de solucionar problemas de este tipo, y no me cabe duda que lo hará pronto.
    A propósito, en castellano (como preferimos decir en Latinoamérica en vez de "español") existen la palabra "foro" y su plural "foros", lo que hace innecesario usar sus equivalentes en latín. Y toma esto como lo que es: una ayuda para que mejores tu castellano, y de ningún modo una crítica. Ya quisiera yo que en mis participaciones en los foros en inglés me ayudaran a mejorar mis conocimientos de ese idioma...

  • OT: MySQL Error #1064

    I used phpMyAdmin to insert several new rows in a database
    table, then I
    suddenly hit a brick wall with this error message:
    MySQL said:
    #1064 - You have an error in your SQL syntax; check the
    manual that
    corresponds to your MySQL server version for the right syntax
    to use
    near '(`Key2`, `ID`, `Site2`, `Articles`, `Contents`,
    `Links`) VALUES
    ('19', 'China'' at line 1
    I think this is the same error message I used to get on my PC
    every now
    and then. It doesn't offer any clues as to the nature of the
    problem,
    and it isn't easy to track down via Google.
    I think I either fixed it or found a workaround once before,
    but I can't
    recall the solution. I don't know if it was a related problem
    or
    something entirely different, but I think I recall a
    situation where my
    database table's cardinality was limited to a certain number,
    and it
    wouldn't allow me to insert any additional rows for some
    reason. But I
    don't know if that's the problem in this case or not.
    Does anyone have any suggestions?

    David Powers wrote:
    > David Blomstrom wrote:
    >> I used phpMyAdmin to insert several new rows in a
    database table, then
    >> I suddenly hit a brick wall with this error message:
    >>
    >> MySQL said:
    >> #1064 - You have an error in your SQL syntax; check
    the manual that
    >> corresponds to your MySQL server version for the
    right syntax to use
    >> near '(`Key2`, `ID`, `Site2`, `Articles`,
    `Contents`, `Links`) VALUES
    >> ('19', 'China'' at line 1
    >>
    >> I think this is the same error message I used to get
    on my PC every
    >> now and then. It doesn't offer any clues as to the
    nature of the problem,
    >
    > The error message has nothing to do with PC or Mac. It's
    a MySQL error
    > message, and it's very precise. It not only tells you
    that you have a
    > syntax error in your SQL query; it tells you exactly
    where the error is:
    > near '(`Key2`, `ID`,...'
    >
    > In other words, the syntax error immediately precedes
    (`Key2`, `ID`,...
    >
    > You need to examine the SQL itself to determine the
    nature of the syntax
    > error.
    >
    Thanks for the tip, though I'm still confused. I simply used
    phpMyAdmin
    to insert a new row, then began by typing "19" into the first
    available
    space. There is nothing before that. I don't know how to
    examine the
    "SQL itself," as there is none that I'm aware of.
    I simply inserted a few values, as I had done on several
    previous
    occasions. I then experimented by NOT inserting certain
    values and by
    inserting different values, but nothing worked.
    I tracked "1064" through Google, and the problems appear to
    be all over
    the map. One guy said his database table was too big, and he
    solved the
    problem by breaking it up into several smaller tables.
    At any rate, I finally created a new table and imported a CSV
    file that
    automatically filled a few fields for several hundred rows.
    That
    automatically created the rows I need, and I was then able to
    insert
    articles where needed.
    Thanks.

  • Error message when I run searches on my website (PHP/MySQL help)

    Hey guys, can someone tell me why this is happening in my PHP? I run a search on my website and get this error message ye sI filled the hostname, username and password)
    Results for
    PHP Error Message
    Warning:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a8295382/public_html/Search Results.php on line 233
    Couldn't execute query
    Here is my PHP code:
    <?php
    $hostname_logon = "host" ;
    $database_logon = "hostname" ;
    $username_logon = username" ;
    $password_logon = "password" ;
    //open database connection
    $connections = mysql_connect($hostname_logon, $username_logon, $password_logon) or die ( "Unabale to connect to the database" );
    //select database
    mysql_select_db($database_logon) or die ( "Unable to select database!" );
    //specify how many results to display per page
    $limit = 15;
    //get the search variable from URL
    $var = mysql_real_escape_string(@$_REQUEST['q']);
    //get pagination
    $s = mysql_real_escape_string($_REQUEST['s']);
    //set keyword character limit
    if(strlen($var) < 3){
        $resultmsg =  "<p>Search Error</p><p>Keywords with less then three characters are omitted...</p>" ;
    //trim whitespace from the stored variable
    $trimmed = trim($var);
    $trimmed1 = trim($var);
    //separate key-phrases into keywords
    $trimmed_array = explode(" ",$trimmed);
    $trimmed_array1 = explode(" ",$trimmed1);
    // check for an empty string and display a message.
    if ($trimmed == "") {
        $resultmsg =  "<p>Search Error</p><p>Please enter a search...</p>" ;
    // check for a search parameter
    if (!isset($var)){
        $resultmsg =  "<p>Search Error</p><p>We don't seem to have a search parameter! </p>" ;
    // Build SQL Query for each keyword entered
    foreach ($trimmed_array as $trimm){
    // EDIT HERE and specify your table and field names for the SQL query
    // MySQL "MATCH" is used for full-text searching. Please visit mysql for details.
    $query = "SELECT * , MATCH (field1, field2) AGAINST ('".$trimm."') AS score FROM table_name WHERE MATCH (field1, field2) AGAINST ('+".$trimm."') ORDER BY score DESC";
    // Execute the query to  get number of rows that contain search kewords
    $numresults=mysql_query ($query);
    $row_num_links_main =mysql_num_rows ($numresults);
    //If MATCH query doesn't return any results due to how it works do a search using LIKE
    if($row_num_links_main < 1){
        $query = "SELECT * FROM table_name WHERE field1 LIKE '%$trimm%' OR field2 LIKE '%$trimm%'  ORDER BY field3 DESC";
        $numresults=mysql_query ($query);
        $row_num_links_main1 =mysql_num_rows ($numresults);
    // next determine if 's' has been passed to script, if not use 0.
    // 's' is a variable that gets set as we navigate the search result pages.
    if (empty($s)) {
         $s=0;
      // now let's get results.
      $query .= " LIMIT $s,$limit" ;
      $numresults = mysql_query ($query) or die ( "Couldn't execute query" );
      $row= mysql_fetch_array ($numresults);
      //store record id of every item that contains the keyword in the array we need to do this to avoid display of duplicate search result.
      do{
          $adid_array[] = $row[ 'field_id' ];
      }while( $row= mysql_fetch_array($numresults));
    } //end foreach
    //Display a message if no results found
    if($row_num_links_main == 0 && $row_num_links_main1 == 0){
        $resultmsg = "<p>Search results for: ". $trimmed."</p><p>Sorry, your search returned zero results</p>" ;
    //delete duplicate record id's from the array. To do this we will use array_unique function
    $tmparr = array_unique($adid_array);
    $i=0;
    foreach ($tmparr as $v) {
       $newarr[$i] = $v;
       $i++;
    //total result
    $row_num_links_main = $row_num_links_main + $row_num_links_main1;
    // now you can display the results returned. But first we will display the search form on the top of the page
    echo '<form action="search.php" method="get">
            <div>
            <input name="q" type="text" value="'.$q.'">
            <input name="search" type="submit" value="Search">
            </div>
    </form>';
    // display an error or, what the person searched
    if( isset ($resultmsg)){
        echo $resultmsg;
    }else{
        echo "<p>Search results for: <strong>" . $var."</strong></p>";
        foreach($newarr as $value){
        // EDIT HERE and specify your table and field unique ID for the SQL query
        $query_value = "SELECT * FROM newsight_articles WHERE field_id = '".$value."'";
        $num_value=mysql_query ($query_value);
        $row_linkcat= mysql_fetch_array ($num_value);
        $row_num_links= mysql_num_rows ($num_value);
        //create summary of the long text. For example if the field2 is your full text grab only first 130 characters of it for the result
        $introcontent = strip_tags($row_linkcat[ 'field2']);
        $introcontent = substr($introcontent, 0, 130)."...";
        //now let's make the keywods bold. To do that we will use preg_replace function.
        //Replace field
          $title = preg_replace ( "'($var)'si" , "<strong>\\1</strong>" , $row_linkcat[ 'field1' ] );
          $desc = preg_replace ( "'($var)'si" , "<strong>\\1</strong>" , $introcontent);
          $link = preg_replace ( "'($var)'si" , "<strong>\\1</strong>" ,  $row_linkcat[ 'field3' ]  );
            foreach($trimmed_array as $trimm){
                if($trimm != 'b' ){
                    $title = preg_replace( "'($trimm)'si" ,  "<strong>\\1</strong>" , $title);
                    $desc = preg_replace( "'($trimm)'si" , "<strong>\\1</strong>" , $desc);
                    $link = preg_replace( "'($trimm)'si" ,  "<strong>\\1</strong>" , $link);
                 }//end highlight
            }//end foreach $trimmed_array
            //format and display search results
                echo '<div class="search-result">';
                    echo '<div class="search-title">'.$title.'</div>';
                    echo '<div class="search-text">';
                        echo $desc;
                    echo '</div>';
                    echo '<div class="search-link">';
                    echo $link;
                    echo '</div>';
                echo '</div>';
        }  //end foreach $newarr
        if($row_num_links_main > $limit){
        // next we need to do the links to other search result pages
            if ($s >=1) { // do not display previous link if 's' is '0'
                $prevs=($s-$limit);
                echo '<div class="search_previous"><a href="'.$PHP_SELF.'?s='.$prevs.'&q='.$var.'">Previous</a>
                </div>';
        // check to see if last page
            $slimit =$s+$limit;
            if (!($slimit >= $row_num_links_main) && $row_num_links_main!=1) {
                // not last page so display next link
                $n=$s+$limit;
                echo '<div  class="search_next"><a href="'.$PHP_SELF.'?s='.$n.'&q='.$var.'">Next</a>
                </div>';
        }//end if $row_num_links_main > $limit
    }//end if search result
    ?>
    Anyone got any ideas as to why this is happening?
    Also, I have not created any tables in my database... is this why it doesn't display any search results from my website?

    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

  • Can't connect PHP/MySQL 404 error

    Wow, the learning curve is killing me. Yet another challenge. I'm using Dreamweaver CC and this tutorial http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    I'm at this step:
    Open comments.php. You must have a PHP page open in the Document window to create a MySQL connection.
    In the Databases panel (choose Window > Databases), click the Plus button on the panel and select MySQL Connection.The MySQL Connection dialog box appears.
    Type connTest as the connection name.
    For the MySQL Server, type localhost.If you are using the MAMP default ports on a Mac, use localhost:8889.
    For the User Name, type phptestuser.
    Type the password you chose for the phptestuser account in the Password field.
    For the Database, type php_test.Note: You don't need to precede the underscore with a backslash here. It was inserted by phpMyAdmin in the previous section (see Figure 20) only because phpMyAdmin uses a query that permits wildcard characters.
    Click Test.Dreamweaver attempts to connect to the database. If the connection fails, do the following:
    Double-check the server name, user name, and password.
    Check the settings for the folder Dreamweaver uses to process dynamic pages (see Specifying a Testing Server for Dreamweaver).
    Verify that the web and MySQL servers are both running.
    Temporarily disable any firewall or security program. If the connection works, you need to configure the security program to permit communication between Dreamweaver and MySQL.
    Click OK. The new connection appears in the Databases panel.
    Expand the connTest connection, and then expand the Tables branch. You'll see the comments table in the database, which you can expand to reveal the details of the table columns (see Figure 23).
    As far as I can tell I have followed this tutorial to the letter.
    As far as I can tell, XAMPP/php mySQL are all running fine, the files are in the correct place and everything should be working. However when I hit test I get a 404 error. (Same error when I hit the select button.)
    The suggested problems on the 404 message are:
    1. There is no testing server running on the server machine.
    Pretty sure the testing server is running. Is there any way to test this, other than to note that xampp is definitely running right now and that I can log into phpMYadmin no problem?
    2. The testing server specified for this site does not map to the http://localhost/php_test/_MMServerScripts/MMHTTPDB.php URL Verify that the URL Prefix maps to the root of the site.
    Ummm...I'm pretty sure I put things where I was told to put them in the tutorial, but I'm lost at this point where I should verify what. A clue here? The files are where they are supposed to be, but maybe I entered something wrong? Except...I'm not sure what that could be or where to find it. Whatever IT is.
    Everything in local files is looking good.
    Thanks for your help!
    PS: Extra points to anyone who figures out how to make copy/pasteable error messages! These buggers are the bane of my life!

    Bgupta, you rock!
    I hope you have copied the "mysql.php" and "MMHTTPDB.php" files from "C:\Users\username\AppData\Roaming\Adobe\Dreamweaver CC\locale\Configuration\Connections\Scripts\PHP_MySQL\_mmDBScripts" to "C:\xampp\htdocs\phptest\_mmServerScripts"
    This was EXACTLY the problem. I checked the tutorial and I couldn't even find where the tutorial said to do this. (If I missed it, let me know where in the tutorial it was, please.)
    Fixed!

  • No error messages in php

    Hi!
    I have an old computer witch I have installed apache, php and mysql. Every thing is working except from one thing (so far). I have tested that php works, but my problem is that I don't get any error messages back from the server if there is an error in my code. Can anybody please help me with getting my sweet, sweet errors:P

    Well, I'd look for an answer in Error Handling and Logging Functions chapter of PHP manual

  • Error Message in mysql

    I tried to import my file into mysql I got the error message below.  I have no idea what this means or what to do.  Any assistance you can provide would be greatly appreciated.  Thank you.
    There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
    ERROR: Unknown Punctuation String @ 241
    STR: />
    SQL: <!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>form</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationRadio.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="table.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationRadio.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Container">
      <div id="header">
        <div id="Advertisment">Content for  id "Advertisment" Goes Here</div>
        <table width="325" align="right">
      <tr>
        <td class="Search">sign in</td>
        <td class="Search">Create account</td>
        <td class="Search">search</td>
      </tr>
    </table><br />
    <br />
        <table width="762">
      <tr>
        <td width="149"><img src="" alt="" name="Logo" width="136" height="92" id="Logo" /></td>
        <td width="601"><ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">Home</a>        </li>
          <li><a href="#">about us</a></li>
          <li><a class="MenuBarItemSubmenu" href="#">the racks </a>
            <ul>
              <li><a href="#">single items</a>            </li>
              <li><a href="#">Group items</a></li>
              <li><a href="#">Donations</a></li>
              <li><a href="#">Giveaways</a></li>
            </ul>
          </li>
          <li><a href="#">contact us</a></li>
          <li><a href="#">Put it on the rack</a></li>
        </ul></td>
      </tr>
    </table>
      </div>
    </div>
    <p class="Header">Put it on the rack</p>
    <p class="Header"><span class="expiration">Your posting will expire in 30 days.</span></p>
    <form action="individual.php" method="post" enctype="multipart/form-data" name="individual" class="individual" id="individual">
      <table width="594" border="0" class="test">
      <tr></tr>
      <tr>
        <td colspan="2" class="td"><span id="spryradio1">
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_0" />
            Individual</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_1" />
            Group</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_2" />
            Giveaways</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_3" />
            Shoes</label>
          <br />
          <span class="radioRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td width="166" class="td">Posting Title</td>
        <td><span id="sprytextfield1">
          <label>
            <input name="Posting Title" type="text" class="test" id="Posting Title" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">Price</td>
        <td><span id="sprytextfield2">
          <label>
            <input name="price" type="text" class="test" id="price" size="35" />
          </label>
          <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
      </tr>
      <tr>
        <td class="td">Size(s)</td>
        <td><label>
          <select name="size" size="1" multiple="multiple" class="test" id="size">
    <option>0</option>
            <option>2</option>
            <option>4</option>
            <option>6</option>
            <option>8</option>
            <option>10</option>
            <option>12</option>
            <option>14</option>
            <option>16</option>
            <option>18</option>
            <option>20</option>
            <option>22</option>
            <option>24</option>
            <option>26</option>
          </select>
          <span class="Text">To select multiple sizes, hold ctrl and select each size.</span></label></td>
      </tr>
      <tr>
        <td class="td">Condition</td>
        <td><label>
          <select name="Condition" class="test" id="Condition">
    <option>New</option>
            <option>Used</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Length</td>
        <td><label>
          <select name="Length" class="test" id="Length">
    <option>Long</option>
    <option>Short</option>
    <option>Mid-Length</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Color(s)</td>
        <td class="td"><span id="sprytextfield5">
          <label>
            <input name="Color" type="text" class="test" id="Color" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">City, State</td>
        <td class="td"><span id="sprytextfield4">
          <label>
            <input name="location" type="text" class="test" id="location" size="35" />
          </label>
          <span class="textfieldRequiredMsg">City &amp;<!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>form</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationRadio.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="table.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationRadio.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Container">
      <div id="header">
        <div id="Advertisment">Content for  id "Advertisment" Goes Here</div>
        <table width="325" align="right">
      <tr>
        <td class="Search">sign in</td>
        <td class="Search">Create account</td>
        <td class="Search">search</td>
      </tr>
    </table><br />
    <br />
        <table width="762">
      <tr>
        <td width="149"><img src="" alt="" name="Logo" width="136" height="92" id="Logo" /></td>
        <td width="601"><ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">Home</a>        </li>
          <li><a href="#">about us</a></li>
          <li><a class="MenuBarItemSubmenu" href="#">the racks </a>
            <ul>
              <li><a href="#">single items</a>            </li>
              <li><a href="#">Group items</a></li>
              <li><a href="#">Donations</a></li>
              <li><a href="#">Giveaways</a></li>
            </ul>
          </li>
          <li><a href="#">contact us</a></li>
          <li><a href="#">Put it on the rack</a></li>
        </ul></td>
      </tr>
    </table>
      </div>
    </div>
    <p class="Header">Put it on the rack</p>
    <p class="Header"><span class="expiration">Your posting will expire in 30 days.</span></p>
    <form action="individual.php" method="post" enctype="multipart/form-data" name="individual" class="individual" id="individual">
      <table width="594" border="0" class="test">
      <tr></tr>
      <tr>
        <td colspan="2" class="td"><span id="spryradio1">
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_0" />
            Individual</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_1" />
            Group</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_2" />
            Giveaways</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_3" />
            Shoes</label>
          <br />
          <span class="radioRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td width="166" class="td">Posting Title</td>
        <td><span id="sprytextfield1">
          <label>
            <input name="Posting Title" type="text" class="test" id="Posting Title" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">Price</td>
        <td><span id="sprytextfield2">
          <label>
            <input name="price" type="text" class="test" id="price" size="35" />
          </label>
          <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
      </tr>
      <tr>
        <td class="td">Size(s)</td>
        <td><label>
          <select name="size" size="1" multiple="multiple" class="test" id="size">
    <option>0</option>
            <option>2</option>
            <option>4</option>
            <option>6</option>
            <option>8</option>
            <option>10</option>
            <option>12</option>
            <option>14</option>
            <option>16</option>
            <option>18</option>
            <option>20</option>
            <option>22</option>
            <option>24</option>
            <option>26</option>
          </select>
          <span class="Text">To select multiple sizes, hold ctrl and select each size.</span></label></td>
      </tr>
      <tr>
        <td class="td">Condition</td>
        <td><label>
          <select name="Condition" class="test" id="Condition">
    <option>New</option>
            <option>Used</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Length</td>
        <td><label>
          <select name="Length" class="test" id="Length">
    <option>Long</option>
    <option>Short</option>
    <option>Mid-Length</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Color(s)</td>
        <td class="td"><span id="sprytextfield5">
          <label>
            <input name="Color" type="text" class="test" id="Color" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">City, State</td>
        <td class="td"><span id="sprytextfield4">
          <label>
            <input name="location" type="text" class="test" id="location" size="35" />
          </label>
          <span class="textfieldRequiredMsg">City &amp;<!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>form</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationRadio.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="table.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationRadio.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Container">
      <div id="header">
        <div id="Advertisment">Content for  id "Advertisment" Goes Here</div>
        <table width="325" align="right">
      <tr>
        <td class="Search">sign in</td>
        <td class="Search">Create account</td>
        <td class="Search">search</td>
      </tr>
    </table><br />
    <br />
        <table width="762">
      <tr>
        <td width="149"><img src="" alt="" name="Logo" width="136" height="92" id="Logo" /></td>
        <td width="601"><ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">Home</a>        </li>
          <li><a href="#">about us</a></li>
          <li><a class="MenuBarItemSubmenu" href="#">the racks </a>
            <ul>
              <li><a href="#">single items</a>            </li>
              <li><a href="#">Group items</a></li>
              <li><a href="#">Donations</a></li>
              <li><a href="#">Giveaways</a></li>
            </ul>
          </li>
          <li><a href="#">contact us</a></li>
          <li><a href="#">Put it on the rack</a></li>
        </ul></td>
      </tr>
    </table>
      </div>
    </div>
    <p class="Header">Put it on the rack</p>
    <p class="Header"><span class="expiration">Your posting will expire in 30 days.</span></p>
    <form action="individual.php" method="post" enctype="multipart/form-data" name="individual" class="individual" id="individual">
      <table width="594" border="0" class="test">
      <tr></tr>
      <tr>
        <td colspan="2" class="td"><span id="spryradio1">
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_0" />
            Individual</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_1" />
            Group</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_2" />
            Giveaways</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_3" />
            Shoes</label>
          <br />
          <span class="radioRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td width="166" class="td">Posting Title</td>
        <td><span id="sprytextfield1">
          <label>
            <input name="Posting Title" type="text" class="test" id="Posting Title" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">Price</td>
        <td><span id="sprytextfield2">
          <label>
            <input name="price" type="text" class="test" id="price" size="35" />
          </label>
          <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
      </tr>
      <tr>
        <td class="td">Size(s)</td>
        <td><label>
          <select name="size" size="1" multiple="multiple" class="test" id="size">
    <option>0</option>
            <option>2</option>
            <option>4</option>
            <option>6</option>
            <option>8</option>
            <option>10</option>
            <option>12</option>
            <option>14</option>
            <option>16</option>
            <option>18</option>
            <option>20</option>
            <option>22</option>
            <option>24</option>
            <option>26</option>
          </select>
          <span class="Text">To select multiple sizes, hold ctrl and select each size.</span></label></td>
      </tr>
      <tr>
        <td class="td">Condition</td>
        <td><label>
          <select name="Condition" class="test" id="Condition">
    <option>New</option>
            <option>Used</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Length</td>
        <td><label>
          <select name="Length" class="test" id="Length">
    <option>Long</option>
    <option>Short</option>
    <option>Mid-Length</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Color(s)</td>
        <td class="td"><span id="sprytextfield5">
          <label>
            <input name="Color" type="text" class="test" id="Color" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">City, State</td>
        <td class="td"><span id="sprytextfield4">
          <label>
            <input name="location" type="text" class="test" id="location" size="35" />
          </label>
          <span class="textfieldRequiredMsg">City &amp;
    SQL query:
    <!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>form</title> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationRadio.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> <link href="table.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationRadio.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="Container"> <div id="header"> <div id="Advertisment">Content for id "Advertisment" Goes Here</div> <table width="325" align="right"> <tr> <td class="Search">sign in</td> <td class="Search">Create account</td> <td class="Search">search</td> </tr> </table><br /> <br /> <table width="762"> <tr> <td width="149"><img src="" alt="" name="Logo" width="136" height="92" id="Logo" /></td> <td width="601"><ul id="MenuBar1" class="MenuBarHorizontal"> <li><a href="#">Home</a> </li> <li><a href="#">about us</a></li> <li><a class="MenuBarItemSubmenu" href="#">the racks </a> <ul> <li><a href="#">single items</a> </li> <li><a href="#">Group items</a></li> <li><a href="#">Donations</a></li> <li><a href="#">Giveaways</a></li> </ul> </li> <li><a href="#">contact us</a></li> <li><a href="#">Put it on the rack</a></li> </ul></td> </tr> </table> </div> </div> <p class="Header">Put it on the rack</p> <p class="Header"><span class="expiration">Your posting will expire in 30 days.</span></p> <form action="individual.php" method="post" enctype="multipart/form-data" name="individual" class="individual" id="individual"> <table width="594" border="0" class="test"> <tr></tr> <tr> <td colspan="2" class="td"><span id="spryradio1"> <label> <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_0" /> Individual</label> <br /> <label> <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_1" /> Group</label> <br /> <label> <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_2" /> Giveaways</label> <br /> <label> <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_3" /> Shoes</label> <br /> <span class="radioRequiredMsg">Required</span></span></td> </tr> <tr> <td width="166" class="td">Posting Title</td> <td><span id="sprytextfield1"> <label> <input name="Posting Title" type="text" class="test" id="Posting Title" size="35" /> </label> <span class="textfieldRequiredMsg">Required</span></span></td> </tr> <tr> <td class="td">Price</td> <td><span id="sprytextfield2"> <label> <input name="price" type="text" class="test" id="price" size="35" /> </label> <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td> </tr> <tr> <td class="td">Size(s)</td> <td><label> <select name="size" size="1" multiple="multiple" class="test" id="size"> <option>0</option> <option>2</option> <option>4</option> <option>6</option> <option>8</option> <option>10</option> <option>12</option> <option>14</option> <option>16</option> <option>18</option> <option>20</option> <option>22</option> <option>24</option> <option>26</option> </select> <span class="Text">To select multiple sizes, hold ctrl and select each size.</span></label></td> </tr> <tr> <td class="td">Condition</td> <td><label> <select name="Condition" class="test" id="Condition"> <option>New</option> <option>Used</option> </select> </label></td> </tr> <tr> <td class="td">Length</td> <td><label> <select name="Length" class="test" id="Length"> <option>Long</option> <option>Short</option> <option>Mid-Length</option> </select> </label></td> </tr> <tr> <td class="td">Color(s)</td> <td class="td"><span id="sprytextfield5"> <label> <input name="Color" type="text" class="test" id="Color" size="35" /> </label> <span class="textfieldRequiredMsg">Required</span></span></td> </tr> <tr> <td class="td">City, State</td> <td class="td"><span id="sprytextfield4"> <label> <input name="location" type="text" class="test" id="location" size="35" /> </label> <span class="textfieldRequiredMsg">City &amp;
    MySQL said:
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or' at line 1

    In that section, you are supposed to be importing a sql file that contains the database ddl to create the structure of your database:
    In the File to import section, click the Browse button alongside the               Location of the text file text box; navigate to the Feedback folder on your               computer (Windows: C:\xampp\htdocs\Feedback, Mac OS X: Applications/MAMP/htdocs/Feedback),               select the data folder, and then the file feedback.sql.
    Click the Go button at the bottom of the page. This creates the               structure for the database used in this tutorial and adds initial data.
    Go back and make sure you have selected the feedback.sql file.

  • Error Message in Terminal: unknown variable 'datadir=/usr/local/mysql/data'

    Hello,
    I'm on a Mac Pro Quad Core Intel Xeon (64-bit) using OS 10.6.4. I have mysqlnd 5.0.5-dev - 081106 - $Revision: 289630 $ and PHP Version 5.3.1.
    I have also installed phpMyAdmin 3.3.1 and have set up the relations tables in a pmadb within mysql; created a new database with tables; and created some new users. I am able to access and use mysql via phpMyAdmin.
    But now I am unable to login to mysql via the Terminal command:
    mysql -u root -p
    which now returns an error message of:
    /usr/local/mysql/bin/mysql: unknown variable 'datadir=/usr/local/mysql/data'
    my.cnf file reads:
    [mysqld]
    datadir=/usr/local/mysql/data
    socket=/var/mysql/mysql.sock
    #skip-grant-tables=1
    [client]
    datadir=/usr/local/mysql/data
    socket=/var/lib/mysql/mysql.sock
    and I can see the data directory in that location when using the Terminal.
    My questions:
    1. Is this related to anything I have done in setting up phpMyAdmin (tables, users)?
    2. Is this a permissions problem with the directory named /usr/local/mysql/data?
    Currently, the permissions and ownership are this:
    drwxr-x--- 11 _mysql wheel 374 Jun 29 12:10 data
    3. Is this a problem from upgrading to 10.6.4 recently?
    4. Is this a my.cnf problem?
    I would really like to be able to do things in the Terminal with mysql in addition to using phpMyAdmin.
    Many thanks for any help on this.
    Best,
    Shelley

    Shelley Schreiber wrote:
    Thanks for your suggestion, etresoft, but this was not helpful, I'm afraid. Removing datadir=/usr/local/mysql/data did not work. And prior to using phpMyAdmin, I was able to login via Terminal with this in place.
    Try removing my.cnf. It isn't required and seems to be giving you problems.
    Also, the mysql socket value is what comes with new Macs with Snow Leopard.
    MySQL doesn't come on any new Mac except with Snow Leopard Server. I think we've had this conversation before and came to the conclusion that you don't have the server version, just a jacked up client.
    I am noticing that the Terminal error message I get is saying:
    /usr/local/mysql/bin/mysql: unknown variable . . .
    whereas the data directory path is /usr/local/mysql/data
    There is no data directory in /usr/local/mysql/bin/mysql
    The program that is reporting the error is is /usr/local/mysql/bin/mysql.
    My MySQL installation does not have a my.cnf file. It does have a number of example cnf files that I could use if I wanted to jack up my installation. None of them have a "datadir" value in them. If you don't want to get rid of my.cnf altogether, the just get rid of all of the datadir values inside it.

  • Help with php/cookies login error message

    Hi
    I'm working in DreamWeaver CS4, On a Mac 10.04 OSX system. I am using php and a cookies if (isset) function
    Im  trying to create and error message for users who try to login to the site. but can't because there is no connection to the database as of yet.
    I have a connect srcript and a login script as well as the login and registration page.
         when the user tries to login in I get a syntax error mesage instead of getting the phrase," A problem connecting to the data base. Please try again later."
    How can I resolve this issue, Thanks your help it is greatly appreciated. To view the php code/connect script used in the login registration follow this link the script will available there. http://http://www.camtamkalaboration.com/products.php

    jarmelo wrote:
    how would I go about upgrading from tiger to  leopard?
    Buy Leopard, insert disk, follow instructions.
    You can instal php (which is built into Leopard) by renaming a file and uncommenting a line then enabling web sharing in System Preferences but I use entropy because it has the GD enabled for CAPTCHA and other features. There's a 10.4 version on their website but it mentions it's an older, unsupported and probably insecure version. You should use entropy Leopard version 5.2.9-7 for Leopard/ADDT development.
    After you get php installed you need to install MySQL which is easy to find through searching and straight-forward to instal. Then instal phpMyAdmin and you'll be good to go!
    As mentioned earlier I can walk you through the steps more thoroughly if you decide to upgrade to Leopard. There's some other steps involved: You need to configure virtual hosts so that it points to your Sites folder on your Mac and each folder in Sites folder are for each site you have so that entering site1 goes to ~/Sites/site1 on local testing server and entering site2 goes to ~/Sites/site2 in local testing server, etc. very, very easy to setup. Just edit hidden hosts file in etc folder and username.config file in apache2 hidden folder.
    There's other tutorials out there that show how to do it but most don't have all the info. I'm working on a step-by-step tutorial on my website but it's not finished yet. Maybe it'll be ready by the time you decide to upgrade to Leopard.

Maybe you are looking for

  • Regarding Value mapping in SAP+XI

    Hi Experts, In vaule mapping what does throw exception in behavoir if lookup fails under Value mapping properties of ESR do? Why is it needed and how to use it. Thanks and regards, Aniruddha Bhattacharya

  • Video monitoring

    i use my sony z1u camera from my macbook pro to my television to monitor my video when i am doing color correction. however the video wont run on the television. i only see it has a still picture when i stop playing on my timeline. its the same on th

  • Can I copy photos stored on my computer to my iPad?

    Can I copy photos stored on my computer to my portable iPad?

  • Possible HD problem: Can't install sofware, each time Disk Utility boots up

    Each time i click on a Dmg file to try and install some software it goes right to the Disk Utility program. The best I can do is click "Verify Disk" which works out ok but still can't install the software. My HD is almost full using 106 of 111 availa

  • Screen Sharing Logs - How to find someone who ran VNC

    Hi All, Currently through the secure.log i can tell if a user has attempted to use Screensharing (VNC) to another mac with the IP. However, i was enquiering if via any logs i am able to see if anyone has launched or attempted to screenshare into a co