PHP self-Learners have questions ask the big birds

I am a programmer of 7 years or so program developer, before doing PB + Oracl +SQLSERVER CS structure Laotaibuxiao. --- I have been learning PHP +mysql for 1 years. Have learned PHP basics, Html, XML, CSS, Smarty, JavaScript, Ajax. I am using

Problems with the PHP database storage

I am small white, just started to learn ... $query = "INSERT into Movie (rating) VALUES (' $num 3 ')"; $result =mysql_query ($query); The result of a separate printout of $NUM3 is 9.2, but why does it become 0 when it is stored in the database?

How does PHP read three XML data per page?

The following code reads all the SHORTDESC fields of "9.xml": ------------------------------------------------------------------------------- $xml _array=simplexml_load_file (' 9.xml '); Reads the data from the XML into the array object foreach (

Ask for regular expressions to complete this requirement

Find such images in the article and replace them with How to write a regular expression, and then how to deal with it Reply to discussion (solution) $html = html; $regImg = Preg_match_all ('//', $html, $matches); $NEWSRC = $ Matches[

Query optimization method

Does the following code have a method of optimization? $catalog _1 = "SELECT name from commodity where Catalog = 1 ORDER by rank desc LIMIT"; $result _1 = mysql_query ($catalog _1 ); while ($row _1 = Mysql_fetch_assoc ($result _1)) {$response []

The PHP ADO Access database UPDATE statement cannot reference the value of the primary key

Note No is a primary key in the Access table I want to change the ID of no=290 to 11, and the following two sentences do not change after execution $query = "Update sensors set id=11 where no=290"; $result = $conn->execute ($query); ---------------

How to load a file into a variable only once

The application scenario is this: I have a CSV file that contains some key-value mapping relationships, which are generally invariant. Several different interfaces need to use the data in this file, so I want to load it all at once, and the other

How do I modify a server's files when I disable copy, unlink?

I write the php file, in which copy, unlink, Move_uploaded_files will be banned by the server; However, there are some PHP scripts in the server that can operate correctly. Why is this? In such an environment, how to modify the server files

Open PHP Project with Wamp Unable to connect to database

PHP Database I just used Wamp to open the PHP Web project, but the errorThis is what happened, have not used Wamp before, is it a code problem? Reply to discussion (solution) Db_driver.php 124 Line error Find this line to see what the error

Compile PHP source time encountered a Baidu less than the problem of Google to ask the great God help

Compile PHP source code when encountered a Baidu less than Google's problems. Seeking the help of the great God C:\php-sdk\php54dev\vc9\x86\5.4>nmake Snap Microsoft (R) Program Maintenance Utility version 10.00.30319.01 Copyright (C) Microsoft

PHP connection MySQL error prompt: Unable to connect due to active rejection of the target computer

There is no problem with using the command prompt to operate MySQL, including querying for inserting updates. The php.ini is configured as follows:; Extension=php_mysql.dll ; Extension=php_mysqli.dll The semicolon in front has been removed. The

PHP CREATE TABLE (mysql) encoding problem

Just contact PHP, according to the example written in the book, this is the code: Run Error: An error occurred while building the table! Invalid default value for ' sex '. My MySQL character set is: GBK. Online Search a lot, did not succeed,

How MySQL gets the result set for each day of the time period, no time is 0

I may now be between in the 30-day range, but maybe only one day has a value. Expect the remaining 29 days of the date to show up but count=0 So I want to know how to get the time period of the day, thank you. Reply to discussion (solution)

Why doesn't php have a blank line in front of the file to execute? File only 9 lines

Best of all, the number of blank lines is not right. Learning Chart Control Phplot, Here's the code for test1.php, only 9 lines in total. Require ' phplot/phplot.php '; $data = Array (Array (","), Array (', 1)); $plot = new Phplot

Actually, EditPlus can use this.

Why I do not have to Zend Studio;eclips wait for big, in fact EditPlus can use. It has a lot of advantages, it is small, fast startup speed (with it to open a few 10 trillion txt file not more than 5 seconds), very powerful coding customization

Ask a regular replacement question

There are strings such as: Get_post_title Find_my_article Such a string, how to replace it with regular: Getposttitle,findmyarticle? With Explode,array_map (Ucword), such a way has been used. Now want to use the regular to achieve, but not

Nusoap how to encapsulate a request header

Using PHP to request Java WebService interface, the other side to consider the security factors, need to include a verification information in the request header Due to security considerations, the client requiring WS needs to include a

function sprintf () What is the role of

My PHP manual sprintf () is full of English, I can not understand. Is there any warrior who can take the function of the functions (especially the parameter format) to say it in detail? Reply to discussion (solution) Please Google translate a

A powerful PHP program that counts 24-point games

Count 24 games Everyone has played, then how to use the program to calculate the 4 number of random combinations of the result is 24? For example, 5,5,5,1 these four numbers, how to get a result of 24? Here is a very powerful program that can list

Ask the great God to see this code, upload the picture successfully, but can't find the picture?

Test the input 0) {echo ' ERROR: '. $_files[' picture ' [' Error ']. ''; } else{echo "Upload:". $_files[' picture ' [' name ']. ''; echo "type:". $_files[' picture ' [' type ']. ''; echo "Size:". ($_files[

Total Pages: 5208 1 .... 1635 1636 1637 1638 1639 .... 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.