• Member Avatar for cereal
    cereal

    Replied To a Post in update multiple textbox

    What you don't understand?
  • Member Avatar for cereal
    cereal

    Replied To a Post in update multiple textbox

    In order to perform multiple updates you have to submit the fields of the form as array groups, for example: <form action="" method="post"> <table> <thead> <tr> <th>ID</th> <th>Name</th> <th>Size</th> <th>Qty</th> …
  • Member Avatar for cereal
    cereal

    Began Watching Fetching HTML data from a website

    Hi, I have developed a application for students that retrieves data (eating menus) from a official eating website of the whole University (13 restaurants located around the city). Actually I …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Modals, PHP, $_GET, INSERT

    Ron, if you are performing an ajax request within the modal window then show us the javascript code you're using, that way we can suggest an appropriate solution. But **diafol** …
  • Member Avatar for cereal
    cereal

    Began Watching BootStrap fluid 2-column form

    I want to design a fluid two-column form with BootStrap. What is the best way to tackle this? Do I start with a fluid container and two columns, and then …
  • Member Avatar for cereal
    cereal

    Began Watching query return results from multiple database

    Hi all, I have two db, one db "latestdb" which have latest six months records second db "backupdb" which have oldest records of "latestdb" and this records deleted from "latestdb" …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Modals, PHP, $_GET, INSERT

    Can you post the exact error? Undefined index regarding which array: $_GET, $_POST, $row?
  • Member Avatar for cereal
    cereal

    Stopped Watching badwidth abnormal

    my website is using too much bandwidth everyth month it consumes over 10gig of bandwidth but i dont get to see any emails. someone suggested its because someone is attacking …
  • Member Avatar for cereal
    cereal

    Began Watching badwidth abnormal

    my website is using too much bandwidth everyth month it consumes over 10gig of bandwidth but i dont get to see any emails. someone suggested its because someone is attacking …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to store mobile numbers in a variable with comma seperator using pdo

    I don't understand: you're talking about the data you want to save into the `custreg` table? If yes, where are the form, the insert query and the table definition?
  • Member Avatar for cereal
    cereal

    Replied To a Post in browserconfig.xml

    Hi Dani, this is used in Windows 8.1 with IE 11 to add tiles to the desktop: * [http://msdn.microsoft.com/en-us/library/ie/gg491731(v=vs.85).aspx](http://msdn.microsoft.com/en-us/library/ie/gg491731(v=vs.85).aspx)
  • Member Avatar for cereal
    cereal

    Replied To a Post in Can't connect to local MySQL server

    It happens! Just for the log, the value for `pdo_mysql.default_socket` must be a valid path to the socket file as in these examples: * http://php.net/manual/en/ref.pdo-mysql.php#pdo-mysql.configuration * http://php.net/manual/en/ref.pdo-mysql.connection.php#refsect1-ref.pdo-mysql.connection-examples So this `pdo_mysql.default_socket="MySQL"` …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Execute a PHP command on form Submit

    Try also: <?php $input = "ls -lh"; $command = escapeshellcmd($input); $command .= '^M'; shell_exec("screen -X stuff '$command'"); If the "stuff" screen is attached you should see the execution of the …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Can't connect to local MySQL server

    Check if the MySQL daemon is up and if the path to the socket is correct: this is defined in the configuration file of MySQL, i.e. `/etc/mysql/my.cnf`, in distro-specific configuration …
  • Member Avatar for cereal
    cereal

    Gave Reputation to minitauros in refreshing a page

    Doesn't the Javascript version require two http requests to be made (the post request and then the reload) versus only one when submitting a form right away?
  • Member Avatar for cereal
    cereal

    Began Watching refreshing a page

    hi, i was wondering if there is a difference between refreshing a page using jquery `.reload()` when submitting data using `$.post` and an automatic page refresh when submitting data using …
  • Member Avatar for cereal
    cereal

    Gave Reputation to minitauros in refreshing a page

    Doesn't the Javascript version require two http requests to be made (the post request and then the reload) versus only one when submitting a form right away?
  • Member Avatar for cereal
    cereal

    Gave Reputation to minitauros in refreshing a page

    Doesn't the Javascript version require two http requests to be made (the post request and then the reload) versus only one when submitting a form right away?
  • Member Avatar for cereal
    cereal

    Replied To a Post in php

    From `require` documentation: > require is identical to include except upon failure it will also produce a fatal E_COMPILE_ERROR level error. In other words, it will halt the script whereas …
  • Member Avatar for cereal
    cereal

    Replied To a Post in refreshing a page

    With `.reload()`, when possible, you can try to force the reload from the browser cache: > Reloads the resource from the current URL. Its optional unique parameter is a Boolean, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in upload file in php

    Check the value of `LimitRequestBody` in the Apache configuration file, every request larger than this limit will be blocked, PHP will not even reply. After you adjust the value reload …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Search in one page

    You're welcome! You can use the same column name, but you need to prepend the table name or his alias, or you have to change the query: the database engine …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Search in one page

    Add one of the table aliases to the column, so: WHERE br.patron_ID = '$patron_ID'"; The error happens because your using two tables with the same column name.
  • Member Avatar for cereal
    cereal

    Replied To a Post in New query starts with old page

    Are you trying to remove the `page` argument through javascript because you've previously added it through javascript? I repeat: can you show us how you implement the pagination? Better: can …
  • Member Avatar for cereal
    cereal

    Replied To a Post in How to remove license pattern check?

    **@vizz** hi, you should pay the license and respect their copyright: http://www.menucool.com/ otherwise switch to the free version.
  • Member Avatar for cereal
    cereal

    Replied To a Post in Apache shutdown unexpectedly

    As suggested by the error message: check the error log for Apache. If you have doubts paste or attach a file with the contents here.
  • Member Avatar for cereal
    cereal

    Began Watching How to remove license pattern check?

    var mct1_Options = { sliderId: "mcts1", direction: "horizontal", scrollInterval: 1400, scrollDuration: 800, hoverPause: true, autoAdvance: true, scrollByEachThumb: true, circular: true, largeImageSlider: null, inSyncWithLargeImageSlider: true, license: "b2e98" }; var thumbnailSlider = …
  • Member Avatar for cereal
    cereal

    Replied To a Post in New query starts with old page

    Are you appending the query string to the form used to submit the new query? Can you show how you apply the pagination class in your **results** script?
  • Member Avatar for cereal
    cereal

    Replied To a Post in XSP2 on ubuntu

    >Then I type "xsp2 –root /usr/share/asp.net2-demos/" but the result isn't the one shown in the page. I should just type xsp2 to get: Listening on port: 8080 (non-secure) Listening on …
  • Member Avatar for cereal
    cereal

    Replied To a Post in XSP2 on ubuntu

    > I get the same error as before(application exception) with different Exception stack traces! Ok, **can you show these exceptions?** For example, the first exception you posted is an HTTP …
  • Member Avatar for cereal
    cereal

    Replied To a Post in XSP2 on ubuntu

    Check the default index for XSP2, inside `/usr/share/asp.net-demos/` there is an `index.aspx` and two directories `1.1` and `2.0`. So, as test, you can try to call them directly: * `http://127.0.0.1:8080/index.aspx` …
  • Member Avatar for cereal
    cereal

    Replied To a Post in How to allow only 1-1 2-0 3-0 in php

    Try with `preg_match()`: function validateScore($score) { $score = trim($score); $pattern = '/^\d{1,2}[\s]?-[\s]?\d{1,2}$/'; return preg_match($pattern, $score) == 1 ? true : false; } Valid inputs are: var_dump(validateScore('2-0')); var_dump(validateScore('2- 0')); var_dump(validateScore('2 -0')); …
  • Member Avatar for cereal
    cereal

    Replied To a Post in My sessions aren't working like they should

    You could also try with Composer: create a private repository and use a php/batch script to run the install or update process for your application, the only requirement for the …
  • Member Avatar for cereal
    cereal

    Began Watching suggestion on searching technique

    hello,i have a column in my database named 'skills' where all the skills of a person are saved. if i want to find a person with multiple skills like he …
  • Member Avatar for cereal
    cereal

    Replied To a Post in face book feed integrate

    You can use PHP SDK from Facebook, check here: * https://developers.facebook.com/docs/graph-api/reference/v2.1/user/feed * https://developers.facebook.com/docs/reference/php/4.0.0
  • Member Avatar for cereal
    cereal

    Replied To a Post in BackUp Database

    You can use **mysqldump**: mysqldump -uUSER -pPASSWORD DATABASE > backup.sql Change `USER`, `PASSWORD` and `DATABASE` to match yours, you can add `--routines` to backup user defined functions and procedures. More …
  • Member Avatar for cereal
    cereal

    Replied To a Post in HOW TO SOLVE Notice: Undefined index: IN PHP

    The first code block can work, the second no, because when the `IF` statement fails it will run the query anyway, generating an error. Now, as suggested by Gabriel, you …
  • Member Avatar for cereal
    cereal

    Replied To a Post in HOW TO SOLVE Notice: Undefined index: IN PHP

    This error is related to the insert query, check the syntax before `'DL2='',` , if in doubt post your query here.
  • Member Avatar for cereal
    cereal

    Replied To a Post in HOW TO SOLVE Notice: Undefined index: IN PHP

    Add the brackets to extend the statement, otherwise the `IF` condition will apply only to `$IC2= $_SESSION['IC2'];` because it finds the `;` character, so: if ( isset($_POST['BMK81A']) && isset($_POST['BMK81']) && …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Codeigniter custom validation issue

    You have to set the validation rule in the `submitform()` method: $this->load->library('form_validation'); $this->form_validation->set_rules('frmDt', 'Date', 'callback__checkdate'); Then you have to add an argument to the `_checkdate()` method because `set_rules()` will submit …
  • Member Avatar for cereal
    cereal

    Stopped Watching Killed by 'undefined'

    Hey guys, here I am starting my journey into javascript, when this stupid bug is annoying me. Following is my piece of code: <html> <head> <title> Using 'this' in Javascript.</title> …
  • Member Avatar for cereal
    cereal

    Began Watching Killed by 'undefined'

    Hey guys, here I am starting my journey into javascript, when this stupid bug is annoying me. Following is my piece of code: <html> <head> <title> Using 'this' in Javascript.</title> …
  • Member Avatar for cereal
    cereal

    Replied To a Post in find time difference bw a specified datetime and todays date...

    Can you show the table schema and an example of the query you want to perform? Have you tried the `column BETWEEN min AND max` statement? Are you saving the …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Gmap

    Check this link: - https://developers.google.com/maps/articles/phpsqlsearch_v3#findnearsql In practice you have to save the current position for each user and calculate the distance through a database query. **Note** MySQL supports spatial indexes …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Undefined index: id

    It happens because the url opening the page does not set the **id** parameter: yourpage.php?id=123 To prevent this error you can add a check. `array_key_exists` will not consider if id …
  • Member Avatar for cereal
    cereal

    Gave Reputation to veedeoo in How do I get started with Node.js

    Here is how you can start in 10 minutes or less. (Windows) **1 - 3 minutes :** download and install your [flavor](http://nodejs.org/download/). **4 - 5 minutes :** open command prompt …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to display data between two date

    Ok, few questions: 1. `createdate` is a datetime column? 2. if yes, can you show the date format sent by the form? 3. can you show the table schema? I'm …
  • Member Avatar for cereal
    cereal

    Gave Reputation to diafol in A Simple Password Hash and Verify Class

    Hi All, thought I'd pass on a (very) simple password class which is built on the new `password_hash()` and `password_verify()` functions. You will need php 5.5.0+ in order to get …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to display data between two date

    You have to initialize the variables: if `$submit` is not set then `$sql` is not initialized and the query will fail. Also for the query you can use the `column …
  • Member Avatar for cereal
    cereal

    Replied To a Post in date_diff

    **@ashokkmr22** Probalby this does not help because both DateInterval and DatePeriod require PHP 5.3.* as DateTime::diff * http://php.net/manual/en/class.dateinterval.php * http://php.net/manual/en/class.dateperiod.php Bye!

The End.