Jump to content

mikosiko

Members
  • Posts

    1,327
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mikosiko

  1. you are mixing mysql and mysqli (with a final i) API sentences in your code... that is not allowed... you must pick one or another.... mysql API is already deprecated therefore you have 2 options, either use mysqli or better yet switch to PDO
  2. and the obvious question is... do you have configured a local email server in that server or properly configured sendmail? ... otherwise you have to use a SMTP host to deliver your emails... PHP Mailer allows you to configure that... read the documentation
  3. Do you realize that you are displaying the same message in 2 places right?.... so the obvious question is which message of those 2 are you seeing?
  4. neither in another places... and several other fixes are necessary too... styles, in-line styles, duplicated lines (css, js), usage of TH instead of TD with styles, etc.
  5. If you want something already built: http://www.bookedscheduler.com/ here is the original link for it on SourceForge http://sourceforge.net/projects/phpscheduleit/
  6. well... you have an exit() just in the third line... what do you expect? and then another few lines below...
  7. $rows = $result2->fetch_all(MYSQL_ASSOC); but that IS NOT what is causing your issue ... Mac_Gyver already told you the possibles causes... you best course of action is DEBUG your code... a simple var_dump($rows) ... or var_dump($branch_array), according to your original code, should give you the starting point to analyze further.
  8. change this part of the code provided by Psycho: while ($row = mysql_fetch_assoc($result)) { $formHTML .= "<tr>\n"; $formHTML .= "<td>{$row['id']}</td>\n"; $formHTML .= " <td><input value='{$row['www']}' name='records[{$row['id']}]['www']' type='text' id='www'></td>\n"; $formHTML .= " <td><input value='{$row['email']}' name='records[{$row['id']}]['email']' type='text' id='email'></td>\n"; $formHTML .= " <td><input value='{$row['pwd']}' name='records[{$row['id']}]['pwd']' type='text' id='pwd'></td>\n"; $formHTML .= "</tr>\n"; } with this: (it include just a small change)... and test.... works ok in my side after the change while ($row = mysql_fetch_assoc($result)) { $formHTML .= "<tr>\n"; $formHTML .= "<td>{$row['id']}</td>\n"; $formHTML .= " <td><input value='{$row['www']}' name='records[{$row['id']}][www]' type='text' id='www'></td>\n"; $formHTML .= " <td><input value='{$row['email']}' name='records[{$row['id']}][email]' type='text' id='email'></td>\n"; $formHTML .= " <td><input value='{$row['pwd']}' name='records[{$row['id']}][pwd]' type='text' id='pwd'></td>\n"; $formHTML .= "</tr>\n"; }
  9. Really?... the posted code has several mistakes, which probably means that it was posted incomplete... where are you connecting to the database?... Do you know that you CANNOT mix mysql and mysqli sentences?.. you must pick one or another (you already were told that mysql is deprecated and you should not use it)... last but not least... something is missing here ,"......PHONE)VALUES('$Pizza', .... you have a load of work to do... best choice... learn and re write your code using PDO now (or mysqli even when it is a little more cumbersome than PDO)
  10. Before to start looking for that extension (or any other) you must find out which PHP version are you running, and if it is the "thread safe" version or not (most likely will be)... again phpinfo() will give you a lot of that information; with that information on hand you could start looking for that specif version of PHP on http://windows.php.net/download/ ; look for the zipped version...download and unzip it in a temporary directory (NOT IN YOU CURRENT PRODUCTION DIR OBVIOUSLY) and look for the extensions that you want... copy/paste what you need in your current PHP extension directory and test restarting apache and see if the extension is loaded correctly...if not will mean that you downloaded the wrong PHP version most likely... good luck
  11. Unfortunately we are not able to see your screen or your results, but if you are not seeing the mysql, mysqli or pdo extensions enabled in the phpinfo() results most likely those are not enabled in your php.ini file, or the extension_dir is incorrect, or the extensions are not present on it, or you setup is loading an incorrect php.ini... you must review your configuration in details... we can't. Did you install Apache, PHP, Mysql manually yourself?... or are you using some of the LAMP's availables? (WAMP XAMP, AMPPS, etc.)... maybe you should go that route which is normally the easier one.
  12. and what about the results of the suggested script... look also for the "Loaded Configuration File" in that result to be sure that you are loading the right php.ini <?php phpinfo(); ?>
  13. this small script should show you which extensions you have enabled (among others things) <?php phpinfo(); ?> if mysql , mysqli and/or pdo is enabled you should see them on the display... if not, then you must enable them in your php.ini.. on it look for this lines ;extension=php_mysql.dll ;extension=php_mysqli.dll ;extension=php_pdo_mysql.dll and if the semicolon is present just delete it... otherwise be sure that your extension_dir is properly configured in the same php.ini. remember to re-start Apache after your modify your php.ini
  14. Wow... you help me to bring back some old, not wanted, and painful memories :tease-03: ... the image of those cigarettes packs, and the nasty taste and odor kick back in someplace deep in my brain ;D ... my dad did that to me... was harsh I think... but 100% effective :birthday:
  15. Assuming that the tables that you moved to the other server doesn't exists anymore in the main server It may or may not be a solution for you, but you can test it ... MYSQL provide the FEDERATED Storage Engine that could help you to solve your issue, be aware of the caveats and restrictions well explained under "Limitations". http://dev.mysql.com/doc/refman/5.0/en/federated-storage-engine.html
  16. In your Linux Box what echo PHP_INT_MAX produce? from the manual
  17. @Ch0cu3r: Thanks for the feedback - I did attach the image... seems that I did it wrongly - the button-glare class is just adding a subtle effect over the button... just some fancy stuff ... nothing that matter. - I know that it is invalid, and I know how to write it differently... I was looking for oppinions that allows me to understand WHY it is working even when it is invalid.
  18. Hello, NOTE: I'm not asking for help to modify the code below, only looking for feedback regarding why it is working I'm working over other's people code and I found this lines: <div class="button-container" style="top:20px; left:0px"> <input type="submit" name="submit" value="Get Report" <a href="#" class="large-button" style="left: 0px" > <div class="button-glare"> </div> </a> </div> Clearly the input tag is wrong (W3C validator confirm it), however works fine and does what is supposed to do (apply some css styles over the submit button). IE11 Developer tools detect the errors, but FF nor Chrome does. this is what it looks like (attached image) and this is the related CSS /* CSS Document */ /* Button Containers */ .button-container { float: left; overflow: visible; position: relative; } .button-container .large-button { background: linear-gradient( to top, green, lightgray); border-radius: 6px; font-size: 14px; font-weight: bold; color: #FFFFFF; line-height: 14px; padding: 10px 20px 8px; text-shadow: -1px -1px 1.5px rgba(0, 0, 0, 0.5); position: relative; } .button-container .button-glare { border-radius: 4px; height: 50%; left: 1px; position: absolute; right: 1px; top: 1px; z-index: -1; } any idea why it does work? thanks Miko
  19. revisiting your code and your comments I think that you are right... the warning message "Warning: mysqli::query() [mysqli.query]: Empty.... I just don't see how this is empty??" should have been one of several warning message that you got, due to the fact that as you said you were missing the password and dbname and not as result of the line that I did pointed out, however, that line (after you fixed the instantation of the mysqli object) should give you a SQL syntax error most likely... my link to read about result values still apply in this case.
  20. so are you saying that this line in your code was correct? don't think so (definely not ok) ... but if you fixed your code already good for you
  21. Wow!!... you see AbraCadaver... your nomination let people without words BTW: congrats... well deserved
  22. Did you look on the Sticky folders ?... per example: http://forums.phpfreaks.com/forum/32-faqcode-snippet-repository/ or make a search? this topic has been discussed many...many times before and several times solutions has been posted.
  23. The long and exact behavior explanation: http://dev.mysql.com/doc/refman/5.5/en/partitioning-limitations-partitioning-keys-unique-keys.html
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.