Novice ask for how to print a number in decimal format such as loop 0.01.

If I want to print 0.01 0.02 0.03 0.04 0.05 ...... 0.99 How does PHP print such numbers? How do I print it with for? Reply to discussion (solution) for ($i =0.01; $i ";} There is a problem,Like I'm going to print81.1-99.1The numberWith

Why can't I insert it?

INSERT into ' category ' (' IDs ', (select Concat (Catpath, '-', id) as Abspath from category Order by Abspath) as Abspath, ' name ' ) VALUES (44, ' 0-1-2-11 ', ' website homepage ');Why can't I insert Reply to discussion (solution) INSERT

Table color problem. Novice

This is the code I just hit, originally wanted to be a row of yellow line colorless, do not know how to turn into all yellow, everyone help me to see ';} Else{echo '';}} for ($j =1; $j ". $j." * ". $i." =". ($i * $j). " "." " ; }

Problems with form submission arrays in thinkphp

Form The array that is submitted to the spool is printed out like this String (5) "Array" How to display the value Reply to discussion (solution) How did you print it? Print_r ($_post[' Listorder '); You're echo out of this? You

Yii,model the value of the form submission

yii

I have a login page that uses LDAP ... Controller Public Function Actionlogin () { $model = new LoginForm; If it is AJAX validation request if (isset ($_post[' Ajax ')) && $_post[' ajax '] = = = ' LoginForm ') {

PHP Multi-table Write, update request guidance

How do you write data in PHP with the same fields in multiple MySQL tables? Reply to discussion (solution) The same fields in multiple tables are written at the same timeIt's obviously not a reasonable design.Although the relational database

Advice to Xuzuning

Boss, to ask you questions, hope advice Brief introduction: I use AJAX login, after successful landing, the UserID record session, and jump to the inside page Problem: Always prompt for session timeout or invalid when jumping to inner page

Phpexcel export Excel file, with IE8 cannot download, Save As dialog box flash past

Tested IE6 IE7 IE9 chrome FF are normal, that is IE8 not, click the Export button after the pop-up Save dialog box immediately after the close, the online search has not found a solution. In Phpexcel official see a solution: if (Strpos ($_server['

PHP curl_exec ()

The company writes a program throw URL that throws an XML document with the following code $ch = Curl_init (); curl_setopt ($ch, Curlopt_url, "http://". $this->ip. $this->url); curl_setopt ($ch, Curlopt_returntransfer, true); curl_setopt ($ch,

About query issues

Say $array _a={1,1,1,2,2,2,3,3,3,4,4,4,5,5,5} $array _b={a,a,a,a,a,b,b,b,b,c,c,c,s,s,s} $array _c={b,b,c,d,d,s,a,s,d,s,a,d,a,d,d} Think of it as a database, 3 fields and content. I want to use the PHP array function to implement the database

Problems with PHP stitching JSON

To stitch the contents of the database into JSON in the following format, ask the gods to use code to illustrate [' Jan ', ' Feb ', ' Mar ', ' Apr ', ' may ', ' June ', ' Jul ', ' April ', ' Sep ', ' Oct ', ' Nov ', ' Dec '] and such a format [{

PHP Basic +jquery Basics

1. Write a function that allows it to return the number of weeks between them (including the two weeks passed in), based on the 2-year number of weeks passed in 2. Use jquery to dynamically increase the amount of each day in the range, based on

Ask the Great God help PHP page jump problem

I am a new person these days just learned PHP, in the PHP method function inside how to jump to another page. I use the CI framework For example: The controller login.php has a function a () for the landing method. After landing, then jump to the

Novice ask PHP how to batch cycle print out four-digit number?

Like I'm going to print 0000 0001 0002 0003 ...... 9999 Such a four-digit number, how should I implement it? Reply to discussion (solution) for ($i =0; $i ";} for ($i =0; $i ";} Don't know what's going on, grammar is wrong ~ for (

Regular matches any letter but not included.

Regular matches any letter but does not include About,help,conect Reply to discussion (solution) $str = "Regular matches any letter but does not include About,help,conect" if (Preg_match ("/about|help|conect/is", $str, $match)) {echo '

Pray for the great God to save me

$STR = "111 - |2212 |1321 424| 5| "; $reg = "Rice cooker"; $reg 1 = "no longer"; $reg 2 = "Year"; Preg_match_all ("/([0-9]+) \|/isu ", $str, $arr); Print_r ($arr)

PHP Cannot connect memcache

Yesterday in the Linux virtual machine installed a memcache, in PHP can normally access data. Restart Linux today, but found that PHP cannot connect memcache, but telnet can connect, can access data. Want to have a hero to help answer, solve

How to design a database table with infinite classification

Infinite classification of database tables how to design the best I'm writing a multi-level menu backstage. Do not know how to write better .... I'm going to do the front end with Jstree. Reply to discussion (solution) The basic data

The strange problem that WeChat development can't return data

First on the code: Get the code for the TD Bar $regex = "/([\s\s]*?) /"; $str = file_get_contents (' http://www.zh818.com/get/quanguo-jg/'); $matches = Array (); Preg_match_all ($regex,

About the site to get a cookie problem under another site

Existing A, a (domain name is not the same) two sites, a website login, will save a cookie, then B site want to know which user a station login, that is, want to get this cookie value. Is there any way to do this with curl? Or not through curl, by

Total Pages: 5208 1 .... 4943 4944 4945 4946 4947 .... 5208 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.