-
Replied To a Post in JSON Array Errors
In addition: `$values['books']` is an array where the index key is the `book_id`, for example: [books] => Array ( [38] => Array ( [book_id] => 38 [title] => Alexander of … -
Stopped Watching Your Favourite IDE or Editor for PHP
Hi All, Been messing about as usual and managed to trash my long suffering laptop. Luckily all my data is backed up and it was a simple matter of SugarSyncing … -
Replied To a Post in Parse error: syntax error, unexpected end of file
Hi, from the error message it seems the page includes PHP, if affirmative then check that the variables are correctly closed, for example here is missing the semicolon: <?php $a … -
Replied To a Post in Your Favourite IDE or Editor for PHP
Hi all, I still haven't tried PHPStorm as I usually prefer simple editors, among these I'm really happy with Sublime, right now. -
Began Watching Your Favourite IDE or Editor for PHP
Hi All, Been messing about as usual and managed to trash my long suffering laptop. Luckily all my data is backed up and it was a simple matter of SugarSyncing … -
Gave Reputation to almostbob in image not showing
are you sure it isnt `$product_data["image"]` seems strange to have one column not from the same array (`$row[]`) as the others OR. are db images already encoded base64 in the … -
Replied To a Post in image not showing
Hi, it could be the mime-type or the column table size, be sure to not truncate the input. If using a `blob` column type then this can support up to … -
Began Watching Setting up Doctrine 2 ORM
Hi all, I am trying to set up Doctrine 2 Orm for a self made MVC framework, but keep hitting the same error when trying to retrieve data: Fatal error: … -
Replied To a Post in Very Strange Bug
Hi, are you using `autocomplete="off"` in your form tag? -
Began Watching Youtube API Help
Dear All, I am not clear that where to ask this question so i am starting this thread here. In my country youtube is banned by the Govt. I want … -
Replied To a Post in CI CRUD - routes
It seems correct to me. Are you loading other helpers? Are you still using `CaddLatihan` controller? There you have a form to add the articles, which uses the same helper … -
Replied To a Post in CI CRUD - routes
> Heh heh. 40 posts later. Going for the record? Heh! just trying! :D @davy can you show us your Cdelete controller? -
Replied To a Post in CI CRUD - routes
@davy this is the [same error of last week](https://www.daniweb.com/web-development/php/threads/492210/ci-crud-routes#post2155634), are you loading the form helper in the Cdelete controller? It returns undefined function because it does not read the resource. … -
Replied To a Post in CI CRUD - routes
Yes, it happens because of your view page, you are not sending the id through any form, in order to work you have to change few things: * add a … -
Replied To a Post in CI CRUD - routes
Here there is an error: $this->id = $this-delete->post('id'); $this->isi = $this-delete->post('isi'); You're trying to access the input, so you must use the input class: $this->input->post('field_name'); So, change the line 22 … -
Stopped Watching Relational Database in the cloud
Hi, I hope someone out there can help me. Envision this ... an accounts receivable / accounts payable super simple spreadsheet, to ultimately be maintained by someone who is not … -
Began Watching Relational Database in the cloud
Hi, I hope someone out there can help me. Envision this ... an accounts receivable / accounts payable super simple spreadsheet, to ultimately be maintained by someone who is not … -
Began Watching How to generate number between two specified number in sql server store pro
Hi I am working in weekly Newspaper company. There are 15000 subscriber, subscribed for next 3 to 4 years.Per year 52 weeks and I have to generate issue number based … -
Replied To a Post in Simple encode / decode integer to small string
Thanks for sharing! I tested your class and I like it, consider to add a passphrase to allow different results, it could be helpful. You may want to check Hashids, … -
Gave Reputation to jkon in Simple encode / decode integer to small string
Hello , today I was developing a short url system and I created this class to help me encode / decode integer (id) to small string. That way for example … -
Replied To a Post in Wonder what PDO::query actually do
Hi, you actually get the result, just loop it: $result = $pdo->query("SELECT * FROM posts"); foreach ($result as $key => $value) echo $value['title']; echo 'Total: '. $result->rowCount(); It's not visible … -
Stopped Watching Php Soap Client
Hi, I am gone crosseyed from trying to figure this out. I dont ususally post on this site I am half scared of getting told off for being out of … -
Replied To a Post in Remove last , in an array
Hi, use `trim()` to remove the pending comma: echo trim('a,b,c,', ','); The same can be done at query level: select trim(TRAILING ',' FROM 'a,b,c,'); Docs: * http://php.net/trim * http://dev.mysql.com/doc/refman/5.6/en/string-functions.html#function_trim -
Replied To a Post in Php Soap Client
Yes you can, SimpleXML is going to create an object of that string, so it should be easy, for example: print_r($xml->Course); Or to get a specific property: echo $xml->Course->CourseName; -
Replied To a Post in Php Soap Client
Hi! Apparently you get NULL, but PHP is also sending a warning: Warning: simplexml_load_string() expects parameter 1 to be string, object given because `$values->getCourseDetailResult` is an object, and outputs: stdClass … -
Replied To a Post in Help needed with Codeingiter email Class
> the form gets posted it will only return the first variable that i place in the paranthesis like It happens because the `message()` method takes only one argument. In … -
Replied To a Post in Cron Job
You can remove `/usr/bin`. When not sure about the path of a command you can use `env`, e.g.: /usr/bin/env php script.php --attribute hello --import ../world.txt but not in case of … -
Began Watching Profanity Filter
Hello. This is a multi-part question. I have researched each aspect of it before posting here, but I am posting this in case anyone may point out something I might … -
Replied To a Post in Copy missing column values from table1 to table2
**@k_manimuthu** Hi, the `FROM` statement is not allowed in the update query, this is reason you get the error. This will work: UPDATE tb2,tb1 SET tb2.data = tb1.data WHERE tb1.id … -
Began Watching First fetch top unique record out of duplicate and then fetch rest randomly
Hi All, I have a requirement first to fetch top unique company_names out of duplicate values based on the product name search and then fetch rest of the record randomly.Below … -
Began Watching using node js for real time services in my web application
Hi, I'am working with a web company's ressources management project in symfony2 and angularJs with XAMP,I want to add real time services to my web application,my question is,nodejs is it … -
Began Watching Need Help Curl Batch Script
Hello Guys, I apologized if I may have misplaced this post as I cannot see CURL on any category. Here is my situation. I am trying to create a batch … -
Replied To a Post in Need Help Curl Batch Script
Hi, few questions: 1. which operative system? 2. can you use PHP or another scripting language? 3. you have the IP list, nameOFfile.txt is an arbitrary value or defined in … -
Replied To a Post in CI CRUD - routes
In your controller change: else { $this->load->model('News_model'); $this->load->view('success'); } To: else { $this->load->model('News_model'); $this->News_model->set_news(); # <- you have to call this $this->load->view('success'); } -
Replied To a Post in CI CRUD - routes
Ok, it's almost fine, just call the method to insert the data, as in my above example. In your case, replace line 33 of your controller with: $this->load->model('Blogmodel'); $this->Blogmodel->insert_entry(); And … -
Replied To a Post in CI CRUD - routes
It's easy, create `application/models/news_model.php`: <?php class News_model extends CI_Model { public $id; public $isi; public function __construct() { parent::__construct(); } public function set_news() { $this->id = $this->input->post('id'); $this->isi = $this->input->post('isi'); … -
Gave Reputation to HappyCat in Demo website images- Copyright
Just wanted to add one caveat about free images: if there are recognizable people in them, you could potentially have a legal issue as there aren't model releases, which you … -
Replied To a Post in CI CRUD - routes
The error refers to line 34 or your controller code, it means it does not find the declared view so, create `application/views/news/success.php` and you solve the problem. -
Gave Reputation to mike_2000_17 in Silencing Users
Unfortunately, like in the real world, we cannot censor or ban people just because they have a thick skull. ;) But if a user has a habit of high-jacking other … -
Replied To a Post in CI CRUD - routes
@davy what is the output of this? <?php echo form_open('/CaddLatihan/create'); ?> It should be: http://localhost/ci2/CaddLatihan/create If not, then it can depend on the configuration of the `base_url` in your `/application/config/config.php` … -
Replied To a Post in CI CRUD - routes
@iamthwee hi! in relation to URL links an absolute path is relative to the domain, so you can migrate to another domain without problems: <form action="/send/email" method="post"> The above will … -
Replied To a Post in CI CRUD - routes
It happens because you're using a relative path, instead of absolute, i.e. this: echo form_open('CaddLatihan/create') instead of an absolute path: echo form_open('/CaddLatihan/create') Some additional info you should really read: * … -
Replied To a Post in CI CRUD - routes
Load the Form helper into the `index()` method, at the moment you're loading it only into the `create()` method: public function index() { $this->load->helper('form'); ... } Or add the constructor … -
Replied To a Post in Demo website images- Copyright
Check also [unsplash.com](https://unsplash.com) -
Replied To a Post in CI CRUD - routes
Good! Now, are you loading the database library in your `application/config/autoload.php` file? For example: $autoload['libraries'] = array('database', 'session'); -
Replied To a Post in Issue with PHPMailer in CI. Weird Characters in emails
Then check the contents of the debugger: print_r($this->email->print_debugger()); You should be able to see the encoding, which is also visible looking at the headers of the received mail, but you … -
Replied To a Post in Issue with PHPMailer in CI. Weird Characters in emails
Hi, set the default charset for the web server to UTF-8, you can do this by adding this directive into your .htaccess file: AddDefaultCharset utf-8 And be sure `default_charset`, in … -
Replied To a Post in any format to pdf in php
I don't know if there is a ready PHP solution for this, but if you can install software in your hosting, then use LibreOffice in command line mode: <?php $file … -
Gave Reputation to gentlemedia in Modernizr, Oh the Mystery
Modernizr is only for feature detection and does not add for example rounded corners to your element in browsers that doesn't support this CSS3 property. If you want rounded corners … -
Began Watching Modernizr, Oh the Mystery
Perhaps this isn't a mystery, because I don't have access to older browser windows, like Internet Explorer 9 or below. But this does bring a rather interesting question to the …
The End.