Php always fails to query data. what is wrong?

Php always fails to query data. what is wrong with function ax ($ que) { If (! $ Connect) { $ Connect = mysql_connect ('localhost', 'axmanage', 'axmanpw '); Mysql_select_db ('dex ', $ connect); // The connection is successful, but the query

Configuration and running of PHP-mac

Configuration and running in PHP-mac are idle (can this be done ?), Recently, I am looking at the small gap between the company's code, changing my mind and learning php. Unexpectedly, I encountered a lot of problems when configuring php. I simply

Php verification code

Php implements the verification code function. the verification code function is everywhere. next we use php to implement the verification code function. here we extract the verification code into a class, if you use the verification code function

Php lottery and random ad algorithm

Php lottery and random ad algorithm we will first complete the PHP process in the background. The main task of PHP is to configure the awards and the corresponding winning probability, when the front-end page clicks a box, it will want PHP to send

How to write thinkphp multi-condition query

How to write thinkphp multi-condition query? For example, the table user, Field id, name, and nickname. Now, the multi-condition query based on name and adress, $ name and $ nickname are two conditions: or, not true. How to write? In addition, how

Why are some webpages garbled? A little dizzy

Why are some webpages garbled? A little dizzy Please see these two pages: http://www.qgren.com/qigong/gongfa/15_30.shtml The Digest is garbled. Look at this page: http://www.qgren.com/qigong/gongfa/15_28.shtml The summary is not garbled. it is

How to modify the image upload function on the custom page of the Empire CMS

How to modify the image upload function of the custom page of the Empire CMS adds a field to the custom page input page. The most important feature is the image upload function: & Infoid = & Filepass = & Sinfo = 1 & doing = 1 & field = titlepic ', ''

Php anti-SQL code

Php anti-SQL code is learning recently, php mysql Excuse me, after submitting the form, it will be inserted between databases, Is this enough? Do I need to write other anti-SQL code? $ Name = mysql_real_escape_string ($ _ POST ['name']);

Illegal ThinkPhp data object

ThinkPhp illegal data object $ data =$ _ POST; $ Data ['User _ id'] = 1; $ Data ['create _ at'] = date ("Y-m-d H: I: s "); $ Data ['update _ at'] = date ("Y-m-d H: I: s "); $ Data ['is _ enable'] = 1; $ Data ['is _ visable'] = 1; $ CategoryModel =

File system developed in php

File system developed in php 1. open/close the file Use the fopen () function and fclose () function to open/close the file respectively. When opening a file, you should pay special attention to the possibility of deleting all the file content

Php: how to insert random keywords into strings -- example function

Php: how to insert random keywords into strings. example: how to insert several keywords randomly in a function in an article (the number of keywords should be controllable) Insert random keywords to the random position of the article. For example,

Evaluate a regular expression, which must be assertion to the negative zero width.

Evaluate a regular expression, and the content must be assertion to the negative zero width. 1234567890234123789 I only want to match the content that is not in it. 7890234123789 The following is my own regular expression, but it is not

Hust d questions phpisthebestageinttheworld (bipartite graph coloring + recurrence)

The phpisthebestageinttheworld (bipartite graph coloring + recursion) question of the hust school competition is to give an image and determine whether it is a bipartite graph. If yes, find the minimum difference between the two node sets in the

Solution to disable PostgreSQL extension in PHP in windows

In windows, PHP cannot enable pgsql extension solution Tip: windows 64-bit environment + xampp1.8.1 + postgresql 9.3.6-2 Step 1: In php. ini, enable the pgsql extension = php_pgsql.dll (if the pdo connection enables extension = php_pdo_pgsql.dll)

A question in the php Manual

A question in the php Manual is used: Is this a static method? Or does it only indicate that this method exists in this class? Reply to discussion (solution) Indicates that this method is available.Most of them cannot be used without

LNMP environment setup-PHP

LNMP environment setup-PHP article 1. source code installation 1. Configure-1 ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp --with-libxml-dir --with-gd

Ask a question about exporting data in PHPExcel

Ask a question about how to export data in PHPExcel on a small website developed on the local machine, use PHPExcel to export data to excel, the test is normal. But when I copy all the programs to the server, the problem arises. Originally, the data

Php encryption code cracking

Php encryption code cracking, including php function encryption, php third-party extensions (such as screw) encryption, and php official zend encryption. Http://yoursunny.com/t/2009/PHP-decode/ Http://yoursunny.com/t/2009/PHP-decode-2/ The

Php performance optimization method

Five practical tips for optimizing php performance using the php performance optimization method: The following are five optimization skills that will be helpful for development after you have mastered them. 1. use single quotes for strings

Conversion between json strings and objects

Conversion between json strings and objects

Total Pages: 12780 1 .... 3256 3257 3258 3259 3260 .... 12780 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.