Web Development And Programming Questions And Answers

This site is a community of people who can quickly ask a question about web development or programming and get an answer to it.

Questions
662680

Answers
97218




php - Use mysql_fetch_array() with foreach() instead of while()


Solution:You can code like this: {-code-1} As you can see, it's still need a loop while to get data from mysql_fetch_array
Read More

url - PHP Mod_Rewrite


Solution:{-code-1} :::RewriteEngine On RewriteRule ^project/(.*) /public/?$1 [L,NC]
Read More

javascript - PHP-SDK for Facebook Connect Generating Error on Logout


Solution:You need to have the {-code-1} DIV tag first, then call {-code-2} and then {-code-3} :::fb-root|||FB.init()|||FB.logout()
Read More

jquery - execute php/javascript function after a certain amount of time has passed


Solution:The easiest way would be to make a PHP script that does the update, then use a CRON Job to run
Read More

php - Extending CI with own library


Solution:Your controller needs a constructor. It should look like this: {-code-1} Only PHP5 uses the {-code-2} function. In PHP4 it should
Read More

Comparing mysql dates in php


Solution:If possible I would let the database return the number of days, with a query like this: {-code-1} Then use this number of
Read More

php - One HTTPS ajax call in codeigniter


Solution:You can't request information between HTTP and HTTPS using AJAX due to cross-domain issues. To get this to work, consider implementing
Read More


xml - Translate PHP PUT HTTP request to ColdFusion


Solution:I would try adding method="put" to your cfhttp call. That will make CFHTTP send the correct http verb (PUT in
Read More

Get php results with jquery ajax


Solution:Are you including your php file that you use for your ajax call at the top of the page? If so
Read More