- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
6 Posted Topics
Re: First replace if (isset($_POST['upload'])) with if (isset($_POST['file'])) ------------------------- Second replace $filename = $_FILES["uploadfile"]["name"]; with $filename = $_FILES["file"]["name"]; ------------------------- Also replace if (isset($_POST['upload'])) with if (isset($_POST['submit'])) ------------------------- To check that file was inserted into database you can replace // Execute query mysqli_query($db, $sql); with // Execute query mysqli_query($db, $sql); printf("<br>Affected rows … | |
Re: I think this may be the reason for your error: Declaration protected function getAktiva() essentially this condition means that this proteted class can only be accessed within the originating class (class indukPerusahaanABC) and within all of its eventual subclasses. | |
Re: ##Maybe someting like this: ## CSV-data is for example file test_1.csv ## a line in file consist of timestamp and data ## or ## 04.11.2012,40 ## ## There are two files: test_1.csv and test_2.csv ## The lines in file rest_1.csv are: ## 12.10.2012,4500 ## 04.11.2012,1000 ## 29.01.2012,2500 ## 04.11.2012,4000 ## … | |
Re: Hello, please visit this http://www.php.net/manual/en/ref.strings.php There you shall find the answer to yout question. | |
Re: Hello, Try this script: <?php $text = "I Love PHP"; $text_plus = str_replace(" ", "+", $text); echo $text_plus; ?> | |
Re: Try this code <html> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"> Enter username<br> <input type=text name=username><br><br> Enter password<br> <input type=password name=pass><br> <input type=submit value="Submit"> </form> <?php //printf("Username is %s<br>", $username); echo "Username is ".$_GET['username']."<br>"; //printf("Password is %s",$password); echo "Password is ".$_GET['pass']."<br>"; ?> </html> |
The End.