Skip to content
Advertisement

Output PHP already encode to json, and send to javascript to be json, not working

I’m do output with json_encode to sending to javascript, with this code. so output show like this, [{“id”:”121353568″,”name”:”Baju Casual – Black”},{“id”:”556903232″,”name”:”Tas LV – Red”},{“id”:”795953280″,”name”:”Sword – Wood”},{“id”:”834032960″,”name”:”Scooter – Iron Plate”}] and code javascript like this so obj.id its not working, output show undifined. Answer I use ajax calls when I want to call a Php file and get a response from

Route [admin.editcategory] not defined

Hello Everyone I am new in laravel. I just started to watch a series of ecommerce from youtube. In the series at the 15th video , when editing the category i did as same as the youtuber did. But there …

PHP Laravel – Get array of models by search or return empty array

Very new to PHP and Laravel so this is probably a noob question. I know the $sites variable has content in it when I dd($sites); but when it comes to actually returning a value, I get nothing. Any thoughts what I am doing wrong? EDIT: The other function referenced above is here (shouldn’t really need it though). dd($sites) results: Answer

Placing Error Message from PHP to specific place in HTML [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question I have created a log in system. My PHP is on a separate script file than my HTML. I want to

adding a hyperlink in a sms email

What I am trying to do is send a registration confirmation sms via email from my website. I have it working now but I want to make sure that people are putting in correct phone numbers and carrier data. When my message sends it will send the word link but its not clickable is there a way to make the

PHP Fatal error: require(): Failed opening required lib prestashop

I have installed prestashop api lib in local (xampp) and works great, but when I upload the it to my server, it throws a exception. Log file: autoload_files.php: composer_real.php: composer.json: I supose that laravel doesn´t get correctly the lib but I don´t know how to fix it correctly. Please help, thx. Answer Composer is case sensitive, some letters´ path were

Exception: Function yaml_parse() does not exist

Please has anyone encountered the same problem? I wanted to use the yaml_parse() function of PHP. Basically I wanted to create a big object/class(Parser) that will allow me to parse not only yaml but also json, … etc. So I knew that some of you suggest Symfony/Yaml, etc…, in short I find these libraries too heavy for me, especially the

Advertisement