• Member Avatar for cereal
    cereal

    Replied To a Post in PHP MVC: get data from form.

    Hi, you have to use `set_value()` from the **Form helper**: * http://www.codeigniter.com/user_guide/helpers/form_helper.html#set_value Which basically works like this: <input type="text" name="first_name" value="<?php echo set_value('first_name', 'default value'); ?>" /> Where the **first …
  • Member Avatar for cereal
    cereal

    Replied To a Post in min - return more than 1 record

    Hi, try to add `ORDER BY unit_cm DESC LIMIT 3` to the subquery and remove `min()` from the main query.
  • Member Avatar for cereal
    cereal

    Replied To a Post in How to retain value file upload input in codeigniter

    Hi, you cannot do this, the HTML specification does not allow to set a value for the input file type element. Otherwise a website could try to access to any …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to change status automatically when crossed the date in codeigniter?

    You can set a cron job that calls a script that will execute the query to change the status, or if using MySQL you can use the **event scheduler** of …
  • Member Avatar for cereal
    cereal

    Stopped Watching How to select from mysql that group by month in one year

    **Hello, please help me on this. I want to select from these table,** table name: User | Register_date | --------------- | 2015-02-04 | | 2015-02-04 | | 2015-02-14 | | …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Read PHP variable value from a textbox

    Hi, I guess you are mixing things here: when you submit input through a form, you get a string, so here you are going to parse a string not a …
  • Member Avatar for cereal
    cereal

    Began Watching How to select from mysql that group by month in one year

    **Hello, please help me on this. I want to select from these table,** table name: User | Register_date | --------------- | 2015-02-04 | | 2015-02-04 | | 2015-02-14 | | …
  • Member Avatar for cereal
    cereal

    Began Watching db Synchronization

    I have 4 local database and 1 server. How to synchronize that 4 local database to server automatically in perticular time interval. Is there any code please update me.. Advance …
  • Member Avatar for cereal
    cereal

    Stopped Watching Could you share your knowledge about life?

    That might be quiet strange question. Would any of you tell me basic teachings about your life? Something as if you would be thinking like "Oh darn, if I just …
  • Member Avatar for cereal
    cereal

    Gave Reputation to diafol in java

    Are you a god? If not, wait a few decades/centuries until we have the technology.
  • Member Avatar for cereal
    cereal

    Replied To a Post in python geopy address HTTP 500 error

    Hi, > geopy.exc.GeocoderServiceError: HTTP Error 500: Internal Server Error from [documentation](http://geopy.readthedocs.org/en/latest/#geopy.exc.GeocoderServiceError) of geopy you can read the meaning of this exception: > There was an exception caused when calling the …
  • Member Avatar for cereal
    cereal

    Began Watching Exporting MySql Table into Excel Format

    --Hi DaniWeb. I have been doying bulk data Uploads from Excel Sheet to MySql data base and hence thought that I may need the reverse of this process and so …
  • Member Avatar for cereal
    cereal

    Replied To a Post in I am good enough for this

    Heh! Good for you, at your age I barely knew about HTML... > It's like a fear to be intimidated by co-workers that I'm a novice or something like that. …
  • Member Avatar for cereal
    cereal

    Replied To a Post in How to write multiple update_batch query in codeigniter?

    The third argument for `update()` must be a [WHERE condition](http://www.codeigniter.com/userguide2/database/active_record.html#update) (for example: `'id = 4'`), instead with `update_batch()` the third argument is the index key, so try to change your …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Error non-SMTP ACL

    Great, you're welcome. If we have finished, then please mark the article as solved. Bye!
  • Member Avatar for cereal
    cereal

    Began Watching Detect Subfolder In PHP Codeigniter

    I have a helper function in codeigniter php where I can use helper like so load_controller('column_left', 'index'); for example "column_left" is the file and class name. How ever that works …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Error non-SMTP ACL

    You're welcome! This `$_POST['query + website'];` cannot work, because there you're trying to access an index key, in order to work your array should look have an index key like …
  • Member Avatar for cereal
    cereal

    Replied To a Post in PHP increase execution Time in RHEL5

    > I don't see any errors or Warnings. Should I be concerned ? If the value is set then the script may exit for another reason, it could be memory …
  • Member Avatar for cereal
    cereal

    Replied To a Post in PHP increase execution Time in RHEL5

    Hi, to verify if your setting is applied you can use: echo ini_get('max_execution_time'); Questions: * The timeout error is at PHP or database level? * Can you paste the error …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Error non-SMTP ACL

    Just replace the text with the input received from the form: $message = $_POST['query']; # name of textarea And then set the body: $mail->Body = $message; The same applies to …
  • Member Avatar for cereal
    cereal

    Replied To a Post in check if username and ticket exist

    Hi, `Date` in the select list is a reserved word, you can use it if you wrap it in backticks. Docs: * https://dev.mysql.com/doc/refman/5.6/en/keywords.html
  • Member Avatar for cereal
    cereal

    Replied To a Post in Error non-SMTP ACL

    It could be the port or the password. Remove the comment character from line 12 to enable the debugger and access the information, with level 3 it will show the …
  • Member Avatar for cereal
    cereal

    Replied To a Post in File Upload Query

    There is a condition under which $_POST and $_FILES are not populated, it's related to the value of `enable_post_data_reading`, if this is 0 then it's disabled. Are you including some …
  • Member Avatar for cereal
    cereal

    Began Watching Submitting a form crashes site

    Here's dish. When I submit a form, it straight up crashes my site on my network. Here are the details. 1. The form submits to itself. The form is on …
  • Member Avatar for cereal
    cereal

    Replied To a Post in File Upload Query

    You can use the same form, which by the way seems fine, even when the file uploads are disabled you should still receive the POST body request from the form. …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Please help me solve the problem

    So what is the problem? Do you have a specific doubt? It seems you have to create a form, read the received input and display the result, it's easy if …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Why do we need to use package.json ?

    It's a configuration file for **npm**, so that it can install the correct versions of each required dependency of your application and define some other information. A dependency can be …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Problems with PHP RSS Parser

    In addition: you could add a timeout to `file()` so that if the resource is not reachable, it will stop after a defined number of seconds and emit an [**E_WARNING**](http://php.net/manual/en/errorfunc.constants.php) …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Security - Web Architecture

    Hi, excuse me but I don't understand: are you talking about the connection between client and server? Do you wish to use two different domains for backoffice and reporting application? …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Error too many loops

    Ok, now it displays fine. Before it was returning multiple 302 redirects, the console log returned 150 requests and then Chrome stopped the request, I tested few times. I have …
  • Member Avatar for cereal
    cereal

    Created Error too many loops

    Hi, when trying to access this thread: * https://www.daniweb.com/web-development/php/threads/496793/security-web-architecture the browser returns `ERR_TOO_MANY_REDIRECTS`.
  • Member Avatar for cereal
    cereal

    Replied To a Post in PHP Catchable fatal error: Object of class CS_REST_Wrapper_Result could no

    Hi! Which is the error? The thread title is truncated. And, can you share your code and explain where the issue happens? I suppose you're using [their library](https://github.com/campaignmonitor/createsend-php), is this …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Problems with PHP RSS Parser

    Heh, I just came to the same solution, correct link is: * http://feeds.sciencedaily.com/sciencedaily/space_time/space_exploration?format=xml The problem happens because the old link asks for a session cookie, which is not submitted by …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Problems with PHP RSS Parser

    > It is the Space Exploration feed from Science Daily: No, I was asking for your RSS feed not for the source but yes, at this point, as suggested by …
  • Member Avatar for cereal
    cereal

    Gave Reputation to Gribouillis in Command Help

    These commands remain dangerous even after they've been used, because they remain in your shell history, with a risk of being recalled mistakenly, for example a ^r in a bash …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Command Help

    Yes, just replace `*` with the path, for example: rm -rdf /tmp/something/ I suggest you to read the manual, it explains all the available options and there are also few …
  • Member Avatar for cereal
    cereal

    Replied To a Post in decode contents of file.

    That's due to new lines `\n` (10 in ascii code) or carriage returns `\r` (13) or other characters (null bytes) in the textarea of the example form. The [sanitize filter](http://php.net/manual/en/filter.filters.sanitize.php) …
  • Member Avatar for cereal
    cereal

    Replied To a Post in decode contents of file.

    In addition: the example code does not take in account special characters, but these can be added to [`str_word_count()`](http://php.net/str-word-count) as third parameter, at line 19: $words = str_word_count($post, 1, '@.-_0123456789'); …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Problems with PHP RSS Parser

    > Does this information indicate the problem is with the PHP code, or the incoming feed? It seems related to the XML document, not to PHP, otherwise the error would …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Command Help

    Hi, you can use `rm -rdf *` it will remove all files and directories recursively. For more information about the options read the manual: `man rm` and be careful, always …
  • Member Avatar for cereal
    cereal

    Replied To a Post in decode contents of file.

    No problem! So, it seems to work fine for me. Maybe the path to the encoded file is not correct or readable by the PHP script? Here's my live test: …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Generate PDF invoice PHP Mysql

    Hi, you could loop the `$invoice->addItem()` method, but this is part of a class I don't have access to, and I don't know how this works (could you share more …
  • Member Avatar for cereal
    cereal

    Replied To a Post in decode contents of file.

    Ok, I was thinking to something like this: <?php require 'functions.php'; $result = ''; $file = file('encoded.txt'); foreach($file as $line) { $array = explode(' ', $line); array_shift($array); array_pop($array); $convert = …
  • Member Avatar for cereal
    cereal

    Replied To a Post in <script> tags in editor causing formatting issues

    It seems ok for the code block I was referring.
  • Member Avatar for cereal
    cereal

    Replied To a Post in decode contents of file.

    By collecting all the remaining words (second & third of each line) into an array you could loop it against the decoding function. If in doubt, please, provide an example …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to insert string into mysql contains double backslash

    **@Devi_3** When you write: > after successful insert in database it value shows as "james/bond" You intend this is how the input is actually saved in the database or how …
  • Member Avatar for cereal
    cereal

    Replied To a Post in what is stored procedure and how to use in php and mysql

    Check the documentation on MySQL site, here are the links: * https://dev.mysql.com/doc/refman/5.6/en/stored-programs-views.html * https://dev.mysql.com/doc/refman/5.6/en/create-procedure.html * http://dev.mysql.com/doc/apis-php/en/apis-php-mysqli.quickstart.stored-procedures.html The last link provides some examples with the PHP MySQLi API.
  • Member Avatar for cereal
    cereal

    Began Watching mounting windows drive

    I've always been able to navigate through my Windows drive after booting up in my Linux OS but ever since I got Windows 8 there seems to only my a …
  • Member Avatar for cereal
    cereal

    Replied To a Post in mod_rewrite protect swf

    For troubleshooting errors about the script & .htaccess check the Apache documentation, here's the link: * http://httpd.apache.org/docs/current/howto/cgi.html#troubleshoot > In cgi when can i put websites allowed here? The content of …
  • Member Avatar for cereal
    cereal

    Replied To a Post in mod_rewrite protect swf

    Hi, I haven't tested this but I think you could use `mod_actions` with `X-Frame-Options SAMEORIGIN`, this header is used to define if an external website can include your pages through …

The End.