38,020 Topics
| |
im trying to work/modify with a class i downloaded. sadly im not getting it. I have yahoogled oop and its not making me any wiser. can some one explain please what i shold be doing? first of all the classes have a number of vars in the original form like … | |
Stupid constant in class declaration issue One of our live servers is still on php 5.3 and is breaking on the second line with this message Parse error: syntax error, unexpected '.', expecting ')' in ....... systemAdministrator is a defined constant that i can echo out with no problem before … | |
I'm referring to this tutorial: http://www.techfounder.net/2009/02/02/selecting-closest-values-in-mysql/ My query and code to execute search (This doesn't return any result).I need to get 100 closets value to the postcode given by user which is collected by $postcode = $data['postcode']; ERROR shown are: 1) Fatal error: in C:\wamp\www\search\ajax2.php on line 79 2) PDOException: … | |
Hello, I have created a website and clicnt needs a link shortner to be integrated on the website the link shortner and is of https://po.st they have an API key as well so please let me know how do I integrate the link shortner is there a way using an … | |
Hello, I am using Multi Curl right now. THe problem is it was working for a month correctoly. But suddenly one day it stoped working. I am accessing about 50 different APIs. So, the problem is i cant connect to some APIs, when i use curl_error() it gives me response … | |
Hi all, I'm taking the content of the page html kissanime.com. I use curl taken but no way to get. Everyone helped me get this way with | |
i would like to know how to make a filling form saved automatically without submit tag? i am just developping a mobile application! it will be a pleasure to have your surpport thank you | |
Hi guys , I have a pretty big problem and I don't know how to fix it. I have a contact page that I did not work on my web hosting service. I tried the same contact page on several free hosting companiese and works without a problem. I sent … | |
Hi, I have a query ... I have changed php max_execution_time in **php.ini** to say 600 seconds. It worked on Windows platform. However the same code doesn't work in Linux redhat5. I even tried **ini_set('max_execution_time', 600);** in a php file but it still executes its default time that is **10 … | |
I am trying to creating websocket with php and here is my connection that i used for create socket connection <?php if(!($sock = socket_create(AF_INET, SOCK_STREAM, 0))) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("Couldn't create socket: [$errorcode] $errormsg \n"); } echo "Socket created \n"; //Connect socket to remote server if(!socket_connect($sock … | |
I have a helper function in codeigniter php where I can use helper like so load_controller('column_left', 'index'); for example "column_left" is the file and class name. How ever that works fine but I would like to be able to type a folder name in load_controller('some_folder/some_class', 'index'); and it would detect … | |
Here's dish. When I submit a form, it straight up crashes my site on my network. Here are the details. 1. The form submits to itself. The form is on site.php (fictional name for reference on this post) and the action= "site.php". 2. When it crashes, it crashes for every … | |
I need help parsing json data to a specific format so I can put it on a line chart. More specifically a line graph using [highcharts](http://www.highcharts.com/demo/line-basic) This data comes from a query $data['graph']=$this->mymodal->graphmodal($id); foreach ($data['graph'] as $row) { //modify array.. } echo json_encode($data['graph']); The result this produces is the following … | |
I have the following $subUsername = trim($_POST["user"]); $sql = "SELECT userID, username, password FROM user WHERE username = ':user')"; $q = $conn->prepare($sql); $q->bindParam(':user', $subUsername); $q->execute(); $result = $q->fetch(PDO::FETCHASSOC); print_r($result); echo "</p>"; print_r($subUsername); echo "</p>"; print_r($subPassword); However `$result` is always just an empty array, if I run the SQL on the … | |
I have this code for checking the username and ticket availability but something doesnt work well if someone can tell me whats the problem, this error shows me if i enter the right info `Invalid Ticket or Receiver` here is the code: <?php if(isset($_POST['sendTicket'])) { $ticketID = $_POST['ticketID']; $ticketReceiver = … | |
Hello, This is my case: - In file abc.php, I have mentionned two other file as two tabs (tab1.php and tab2.php). Their links are: abc.php#tab1 and abc.php#tab2 - On tab2.php, I have a form: <form action="" method="POST"> <select name="slot" id="slot"> <option value="1"> <option value="2"> <option value="3"> </select> <input type="submit" value="Update" … | |
Morning guys hope that you are all well. need to pick your brains because I'm ready to bang my head against a brick wall. I'm building a multipolchoice quiz I want to just show 20 random questions from the 80 questions that I have in the question bank, in my … | |
Hi, I need to create a image editing tool in php. I'm begginer to the php. I tried it in 'javascript' but I need it to create it in php. my javascript code also didn't work(crop box is didn't work properly even it didn't move). I have no idea to … | |
Me again... So now I am confused... I have a form: <form action="addanimal_submit.php" method="post" enctype="multipart/form-data" style="padding-left:10px"> <p>Name: <input type="text" name="name"></p> <p>Date of Birth: <input type="text" name="dateofbirth"></p> <p>Description: <input type="text" name="description"></p> <p>Available For Adoption? <select type="text" name="available"> <option value="1" selected>Yes</option> <option value="0">No</option> </select> </p> <p>Image Of Animal:</p> <p><input type="file" name="fileToUpload"></p> <input … | |
So I currently have a listbox which dynamically generates its members from the database. It has name and id set to "availablePets". When one of the items in the list is clicked I want to populate some other fields on the screen by quering the database for the rest of … | |
QUIZ (Due to the beginning of next class) Create a website that asks a simple question and retrieves the viewer’s answer. Display messages on the screen depending on the answer: • If the answer is correct, display “Congratulations!”. • Otherwise, display a message like “Your answer was ---------. The correct … | |
One of my websites recently had problems with the PHP news parser. For many years, it worked fine. However, a while back it started acting up. See the attached image of a screenshot. And since the PHP parser was the first block of code on the page, since it didn't … | |
how to split numbers in php?i need a PHP code for this input.if the input is 143,i need output as **8**(tat is sum of 143{1+4+3}) | |
I need to process a CSV file and create a new CSV file. In order to get a proof of concept, I placed the CSV on the server and was able to process it fine. Then I setup a form in order to allow the client to upload the file. … | |
I am trying to pass a value from a hidden input using ajax but console says whatever im doing is not a function `Uncaught TypeError: "#name".val is not a function page.php:35` which is this line : `var name = ("#name").val();` html: <input type='hidden' value='$newname' id='name'> ajax: var name = ("#name").val(); … | |
I am having no luck with this code but for some reason i can get this element to work but not the other one. here is my code. <td><a onclick="javascript:approve_account_function(<?php echo $row['id'];?>, <?php echo $rownumber;?>)" class="btn btn-success" name="yes_account" id="yes_account">Approve</a></td> <td><a onclick="javascript:decline_account_function(<?php echo $row['id'];?>, <?php echo $rownumber;?>)" class="btn btn-danger" name="no_account" id="no_account">Decline</a></td> … | |
Hi. Im trying to update a page with a form using AJAX but it isn't working. Nothing happens. I have a table and one of the columns has an anchor tag like this`<td><a href='#' value='$name' class='request' onclick='request(".$name.")'>$status</a></td>` so when the user clicks on Request a form opens up via ajax. … | |
I'm beginner to wordpress I'm writing Business Directory Plugin for test from scratch. I have category page with database. how to add image support for categories? I got error while uploading images. *"File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled … | |
Hi All I am new to trying to create my own mod_rewrite rules but do know from the outset my server host supports it. I have one pre-built script which uses them without issue which means it is me :-( So, my goal is to make: http://www.kentroadplanings.co.uk/index.php?show_pages=4&p=Screened-Road-Planings into: http://www.kentroadplanings.co.uk/Screened-Road-Planings.html So, … | |
Hello everyone, it seems that most often many projects or let me say jobs requires PHP frameworks. But I have not used a framework before and I love coding in the actual php OOP syntax. Is it necessary to use a framework for a project? |
The End.