Skip to content

Tag: php

Trying to iterate over a mongodb cursor twice – failing

I am executing a query against my mongodb database… and then in two separate spots in my front end logic, I need to iterate through the results to extract / show different information. Problem The second time I try to iterate through, I get the following error message: Fatal error: Uncaught MongoDBDrive…

CSS background images in WordPress

Is it possible to get a background image in CSS like you normally do in HTML when working with WordPress. I’ve tried doing this but it doesn’t work. Answer PHP code cannot run in .css file, however you can use inline style, such as: or The above would be useful when working with custom fields for …

Goutte extract data from every node

hi i want to extract data from every node but i don’t know how to do it and really appreciated if someone give me some guidance and here it is my php code: Answer You’re in the right way, just you’re referring to your html tags which have the class tr and as I’ve seen in your html you …

Xampp mysql Error: MySQL shutdown unexpectedly

when I starting mysql, giving the following error: then, I check the mysql_error.log: finally, I moved xampp/mysql/backup files into xampp/mysql/data and run mysql again.Then, it worked!But I don’t know why.What led to this problem. Hope someone doubts for me! Answer If you’re not running XAMPP as…