Questions about PHP operating SQL adding data
This is the table for my database:
# NAME Type property NULL default
1 ID tinyint (3) UNSIGNED No
2 name varchar (UTF8_GENERAL_CI) No
3 phone varchar (UTF8_GENERAL_CI) No
4 BookID tinyint (3) UNSIGNED
Separate the array into two parts
Separate an array into two parts,
Part only takes two messages
The other part is all information except for these two messages
such as Array (A=>1,b=>2,c=>3,d=>4,.....)
The first part is taken to array
Issues with Preg_replace replacement
PHP Code
$string =
To get this result:
PHP Code
................ ......... .........
Why do you have two more brackets ?
How can I replace this
Online answer, how to remove the second question?
This page is select.php
The previous connection database
while ($row =mysql_fetch_array ($myquery)) {
$array []= $row [question];
$arrayA []= $row [Optiona];
$arrayB []= $row [OPTIONB];
$arrayC []=
Teachers, help me see if I can change to support pagination.
Include ("conn/conn.php");
$query =mysql_query ("Select Book.barcode,book.id as Bookid,book.bookname,bt.typename,pb.pubname,bc.name from Tb_ BookInfo book joins Tb_booktype BT on
Does Ajax have a cache?
Does Ajax have a cache? I mean like the same request, is there anything like a cache operation? Do not use the database query operation! Do you use PHP for data caching?
------Solution--------------------
You can judge with
EditPlus Configuring PHP
EditPlus This tool to configure PHP
First: About PHP syntax checking
?? 1. Open tools, configure user tools, user tools
?? 2. Add--Application?????? Menu text: PHP syntax checker
???????????????????????? Command: The path
How to configure the PHP city station
Title, ask the Great God.
Example: hefei.web.com
It is said that God horse URL rewrite: Hefei.web.com=>web.com?ctiy=hefei, ask how to write.
And if so how does Apache match, is all *.web.com point to web.com of
Phpexcel garbled problem
New project on-line, there is a function to export Excel, using the Phpexcel, the local environment normal use,
The server is my own, winServer2003 php5.2.6 IIS
Very depressed is now download Excel will appear a variety of
How do I implement link conversions?
As an example:
Link format:
/php/"* *"/"# #"
The function I want to implement is that three input boxes on the page
1th input box, user input, * * content
2nd input box, user input, # #的内容
3rd input box,
For help Replace text with regular in PHP
Now there is a text in the page as follows:
------------------------------
Test text A
[Code=h]aa622ea28638f1e2f9ebc1c845499ed3[/code]
Test text B
[Code=h] D0c93d1fac0843a993431688bd6afd10[/code]
Test text C
Use of cookies in PHP
Setcookie ("name", "Jinbiao", Time () +3600)
1. When the page setting cookie is accessed, the following data is returned to the clientSet-cookie Name=jinbiao; Expires=mon, 10-sep-2012 09:47:09 GMTWhen the browser obtains
I'm not a stick to the old to remind me that your assigned scores and scores do not match, please reassign how to allocate it?
I'm not a stick to the old to remind me that your assigned scores and scores do not match, please reassign how to allocate
ResponseText returns undefined when using Ajax in PHP
JScript Code
var URL, Returnhtml;var objxmlhttp = new getxmlhttp (); alert (objxmlhttp); FF creates the object XMLHttpRequest success url = "Getdata.php?username=" +
PHP programmer must know the 13 coding good habit
1. When querying information from the same database using SELECT, use a join statement to get all the information you need at once, without writing multiple mysql_query/while/mysql_fetch_array
Just learning PHP, do not understand what the meaning of this code?
These two pieces of code should be judged. Should be placed in a judgment statement, but the author of the code does not, what does it mean?
In_array ($in, $file) = = = False &&
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