PHP getting started simple syntax
1. the "echo" command tells the server to print a string of characters.
2. Explanation: The "var_dump" function can display the data type of our variables (which will be described later.
3. we can use
Cainiao asked for php connection to the database. I am a newbie. I followed the book to solve this problem all the time.
Fatal error: Call to undefined function mysql_connect ()
Then I checked a lot on the Internet and did not solve it.
The
When a page error occurs, sometimes the error message cannot be displayed because it appears inside the HTML tag. how can I configure PHP to display the error message? Sometimes the error prompt appears inside a tag, so the error prompt is not
When closing the database, a syntax error is Prompted. for new users, thank you for Parse error: syntax error, unexpected T_OBJECT_OPERATOR in F: \ www \ study \ authmain. php on line.
Session_start ();
If (isset ($ _ POST ['userid']) & isset (
Q: Is this the most popular php forum? There are too many questions for new users. I don't know if this is the most popular php Forum?
Reply to discussion (solution)
What do you think is fire?
Generally, they are used to kill Big experts
Whether curl can download 115 of resources 1 MB of resources, with thunder (non-115VIP), the original thread 1 has been set, but the average speed is only 10 KB, an error is prompted at the bottom of 60%. After analyzing the URL address rules, it is
How does php convert a large string to unsignedlonglong? How does php convert a large string to unsigned long?
The string is 13353715570921140386"
How can we convert it into an unsigned long number?
Thanks
Reply to discussion (solution)
In PHP, how do I ensure the sum of parts is 1?
$total = $a+$b+$c+$d;$percentA = ceil($a*100.0/$total);$percentB = ceil($b*100.0/$total);$percentC = ceil($c*100.0/$total);$percentD = ceil($d*100.0/$total);
The above code does not seem to ensure
If you have any questions about the access source, assume that my website is a.com with image a.com/123.png.
When B .com uses this image, what is http_referer?
Enter a.com/123.png http_referer in the address bar as B .com.
How can I determine
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
Why cannot this method prevent SQL injection? First of all, I don't know if MySQL can add single quotation marks for all types of data. I just tried to add single quotation marks around the integer.
If it is true that all types of data can be
Session usage problems session I have read the manual above is to first enable session ();
Then in a session variable
$ _ SEESION ['user'] = 'user ';
But I don't know how to use it.
Two pages: login. php, logon page,
One is edit. php. how
Ask a question.
Name .""; Echo" My age is: ". $ this-> age ;}}
sum($a,$b); return $this->prt($a,$c); } } $c=new cal(); echo "(2+3)*10= " .$c->result('2','3','10');?>
Can you give me a detailed answer? I don't
The login processing code is incorrect. I don't know how to solve it! The database connection file of this code is okay, and the database can be connected normally! However, no matter how I log on, the logon page is displayed, and the list. php page
What is cgi? I found some cgi information, but I still cannot fully understand it.
Who can combine the web development history to talk about the relationship between cgi and web servers (APACHE, iis) and php.
Reply to discussion
An error is reported when the last class of the downloaded website is run. a website template is downloaded from the website and runs on the local machine. the following error occurs:
SCREAM: Error suppression ignored
(! ) Fatal error: Call to
Online template running error:
Fatal error: Call to undefined function do_atomic () in C: \ wamp \ www \ zenith \ index. php on line 11
How can we see where all the functions required by this template are stored? Index. There is no require page on
How can I learn how to build a website using apachemysqlphp? I want to use apache mysql php to build a website. I do not have any knowledge or technology in this field. how can I learn this? How to learn? Some books are written in apache + mysql +
Jqgrid + php application problems jqgrid has post actions to the server, and the php file contains echo json_encode data. The data post format is json, which can be viewed using firebug. no json data is returned. why?
Reply to discussion (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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service