The code is as follows
...... Connection Database section
while ($row =mysql_fetch_array ($myquery)) {
$arrayid []= $row [id];
$array []= $row [question];
...... Assign the corresponding column to the corresponding array
}
$cnt =count ($arrayid);
Jqgrid has the post action to the server, PHP file has the Echo json_encode data, the data post format is JSON, with Firebug view, no JSON data returned, what is the reason?
Reply to discussion (solution)
Page:
Test....
RPM-IVH cpp-4.1.2-48.el5.i386.rpm Enter
RPM-IVH kernel-headers-2.6.18-194.el5.i386.rpm Enter
RPM-IVH glibc-headers-2.5-49.i386.rpm Enter
RPM-IVH glibc-devel-2.5-49.i386.rpm Enter
RPM-IVH libgomp-4.4.0-6.el5.i386.rpm Enter
RPM-IVH gcc-c++-4.1.2-48.el5
Extract the Chinese date format of 6 in June 5, 2013,
How to write with regular expressions,
How to write in PHP?
Reply to discussion (solution)
$s = ' June 5, 2013 ';Preg_match ('/(\d+) month/', $s, $m);echo $m [1];
Extract the Chinese date
PHP Server Buffer
I have a page that is downloaded, the code is as follows
Header (' Cache-control:no-cache, Must-revalidate ');
Header (' Content-type:application/octet-stream ');
Header (' accept-ranges:bytes ');
Header (' content-length: '. $this-
My code, for example, is to write $array=array () $array= ()
Change to correct to open the page normally.
I added error_reporting in front of me (E_error | e_warning | E_parse | E_notice); The same is true for error alerts.
How should I configure it?
Mysql
$query = "SELECT * from a where ' z ' = ' $url [query] ' limit 0,10 '; so write it Wrong Warning:mysql_fetch_array (): supplied argument is not A valid MySQL result resource in$query= "SELECT * from a where ' z ' = ' $url [query] '; but that's
PHP to do the site, under the local testing of various browsers are right, but uploaded to the server, ie, under the Google, under the Firefox no style, view the source code, follow the path open style, style code will show out, the style of the
I would like to use the Apache MySQL PHP construction site, I do not have this knowledge and technology, how to learn? How to learn? There are some writing apache+mysql+php, is this book suitable for me? What kind of books should I buy? Please give
Smarty If the value of the template is dynamic, the generation of the cache is also dynamic Ah, why???
For example: $smarty->caching = true;
$smarty->cache_lifetime = 50100;
$showtime =date ("Ymdhms")
Set the cache file name
$smarty->assign
Regular PHP
For example, these two pieces of code, match the URL link in the string This is using the pattern modifier e: $urlPattern = "/(www.|https?:\ /\/|ftp:\/\/|news:\/\/|telnet:\/\/) {1} ([^\[\ "']+?) (com|net|org) (\/[\w-\.\/\?\%\&\=]*)?/ei ";
I look at the online tutorial, you can send mail directly, do not change what IIS or php.ini files. But I'll make an error here:
Warning:mail (): Failed to connect to mailserver at "localhost" port, verify your "SMTP" and "smtp_port" setting in PHP .
This post was last edited by a999888789 on 2012-11-30 16:06:44
Http://roll.news.sina.com.cn/interface/rollnews_ch_out_interface.php?col=90
The program needs to call the news in PHP, in url:title format input ~ ~ Bring up the top 10 news
How to do
At first it was a apache403 error, and then in the config file, check the Apache configuration file httpd.conf first.
Find deny from all to allow from all
The Deny in phpMyAdmin also changed,
And then the Wamp can't start,
Change >internet protocol (
C + + Inheritance
There is a date class that year,month,day three private members. I want public to inherit and join the Date object +int after the day display feature, such as 2013\2\6+12=2013\2\18. So I can't directly modify the base class Private
MySQL PHP anti-injection
I found a lot of them online. Most of them are error-- Or the anti-injection function is not available.
Reply to discussion (solution)
if (GET_MAGIC_QUOTES_GPC ()) { $lastname = stripslashes ($_post[' LastName ');}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service