I would like to ask you questions about PHP arrays. if you are a beginner in PHP and cannot find some questions about PHP, I would like to ask you here. I hope you will forgive me and help me a lot. I am very grateful.
My current problems are as follows:
Run a MYSQL command to obtain a list and store it in an array.
// Define the date array $ search_date = array (); // enter the FOR loop, from the start
I would like to ask how to design a streaming media playing program using PHP? After a streaming media server can be specified, the audio data transmitted by the streaming media server can be played on this page.
Similar to Douban FM.
I would like to ask which function of PHP is related to this function or which information can be consulted?
I am very grateful.
Watercress FM Web site: http://douban.fm
I would like to ask, I guess you like it. the Function principle is as follows: the mall system I am doing needs to do this function. I don't know how it works. it seems that it is not good to manually set associations in the background, ask more advanced...
Reply to discussion (solution)
Since yesGuessIt is not necessary to be accurate. it is also possible to randomly obtain a few.By default, you ca
Ask the red envelope algorithm, the previous bug, @ JXYCYFLM, @ http://bbs.csdn.net/topics/391001579
The previous post is here.
Both algorithms are problematic.
The revised version provided by the moderator is incorrect when the number of red packets is singular. The sum is not equal to the total number.
Ask the two heroes for help.
Reply to discussion (solution)
$r = distribute(100, 31);ec
Ask a database design question! Ask a database design question!
Assume an application. For example, forum
We send a post, and we create a post table topic.
Then, it allows visitors to reply and prepare a reply table reply.
My problem is:
Suppose we want to know the number of replies in each post. how should we make statistics better?
1. prepare a field reply count (reply_count) in the topic table of the
Ask: PHPjs implements complex button functions. ask prawn: I want to create a button in the webpage. click this button to implement the following functions:
First, determine whether the name given on the page already exists in the SQL database. If it exists, a prompt box is displayed and then jumps out. If it does not exist, you need to store the content on the page (such as name, gender, Email, phone num
Ask the SQL query question about two tables. ask the SQL query question about two tables:
Table A is
Id title picid
The picid storage information is
A: 4: {s: 6: "attach"; s: 2: "74"; s: 9: "show_type"; s: 1: "0"; s: 9: "user_bind"; s: 1: "1"; s: 10: "topic_bind"; s: 0 :"";}
Table B is
P_id purl
First, I obtain the attach data in the picid field by querying Table A. The output is in the array format:
Aryy
Ask for advice on the path in Rewrite. It would have been necessary to seek advice in the Apache Forum. However, once I asked it, it seems too deserted. At that time, I would like to have a better answer to my questions here. So I posted a new post to ask for advice.
Environment description:
/Target.html
/Images/image1.png
Image1.png: src = "images/image1.png" is used in target.html"
URL rewriting
Rew
Ask me where the database class I wrote is wrong and data cannot be inserted.
Hostname = $ hostname; $ this-> username = $ username; $ this-> password = $ password; $ this-> select_db = $ select_db; $ this-> con = mysql_connect ($ this-> hostname, $ this-> username, $ this-> password); if (! $ This-> con) {$ this-> Error = die ('could Not Connect :'. mysql_error);} else {mysql_select_db ($ this-> select_db, $ this-> con) ;}} public function _ destru
Ask how to download the source code of a website with a cookie and save it to a file without any search results,
I would like to ask if I can access a website with a cookie, read the source code, process and save it to a file or output it out. I am very grateful to you for your advice.
I wrote this by myself, but only the original page effect can be output, and the source code is not visible... Adding a l
Ask a mysql question. I am very embarrassed to obtain the maximum value of a field in the query result (sorted by other fields... however, it is often too late to go to the manual to find a solution... I had to extend my hand...
This is the problem. perform a regular query and sort by field a in reverse order. However, you want to obtain the maximum value of field B in this query.
Php does not seem to provide a function to directly obtain the ma
Ask the webstorm question about breakpoint debugging and solve it. thank you for the operation: install webstrom 4.0 and set a breakpoint. when debugging is performed, the FireBox will be opened.
Q: The open Firebox interface will be a blank page, and the webstrom interface will be in debug. solve the problem. thank you.
Reply to discussion (solution)
Directly enter the url to access
Does webstrom require breakpoint debugging? I have tried phpst
Ask the php cool man to write a judgment post. at last, the keyword "how to judge the first appearance" in php is " lt; strong gt;" is edited by music_vip_2009 from 2014-01-0323: 21: 20; if the first keyword is not added with the lt; a gt; tag, the link is added when the second keyword appears! Example: If the first keyword is lt; strong gt; Baidu lt; strong ask the php cool to write a judgment
This
Ask a question about the if statement in a function. if a Cainiao has similar functions, it is incomplete. just give an example of function nbsp; p_abc ($ a, $ B, $ c) { nbsp; $ a nbsp; xxx nbsp; if nbsp; ($ b255) { ask a question about the if statement in a function. I am a newbie.
If there are similar functions that are incomplete, just give an example.
Function p_abc ($ a = '', $ B ='', $ c = '')
Ask for the PHP website background management administrator permission control system solution. The younger brother is now working on a website background, including the article Upload module for uploading downloaded files and the user message module. Problem: background administrator permission assignment description: the system now has a super administrator with all permissions. To achieve this, the super administrator can add a general administrato
Ask a question about how to obtain a field from the database on mobile. ask a question about how to obtain a field from the database on mobile = ''.
A program for sending text messages
Obtain a piece of data based on xingming_iD. how can I assign the property of one of the mobile phones to the back of mobile?
Trouble
The source code is as follows:
$ Con = mysql_connect ("localhost", "XXX", "XXXX ")
Ask me to write an SQL statement. please come in !! Group by the first character of a field to list different results, such as: nbsp; id nbsp; ask you to write an SQL statement !!
Group by the first character of a field to list different results
For example:
Id name
1 Zhang San
2 Li Si
3. WTI
4 Zhang Yi
5 Li 6
6. Chen Qi
Query Results: Zhang, Li, Huang, and Chen. Share SQL mysql php:
------ Solution
Ask for guidance from the PHP experts. today, I participated in a Coding nbsp; Dojo (programming Dojo). Afterwards, I had some doubts and hoped that the experts could provide guidance. I am a PHPer and now I am in an e-commerce company. I am a big bull and a programmer. We use ThinkPHP framework. every time we make a function, we feel like we have done a lot of work, however, after completing the work, I found that my own work was not technically inv
Ask a FLOAT question $ usec: number of current microseconds, $ sec: current number of seconds list ($ usec, $ sec) explode (, microtime (); $ time1 (float) $ usec + (float) $ sec; list ($ usec, $ sec) explode (, microtime (ask a FLOAT question)
// $ Usec: number of current microseconds, $ sec: current number of seconds
List ($ usec, $ sec) = explode ('', microtime ());
$ Time1 = (float) $ usec + (float) $ s
Ask an SVN question (after SVN commits, the server-side checkout file to the production environment)
After SVN commits, in the server-side checkout file to the production environment, how to only checkout those modified files, not the entire directory is checkout out?
------Solution--------------------
Don't understand, ask the same question
------Solution--------------------
SVN export
------Solution---
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.