39,402 Topics

Member Avatar for
Member Avatar for liphoso

Hope this is the correct forum to place this question. How would i run a php script in a javascript file? I have a php script named connection.php, it accesses a mysql database and runs queries. I would like to run the php script from a javascript file named initializeMap.js. …

Member Avatar for pzuurveen
0
4K
Member Avatar for vssp

Hi friends Is it posssible to create an email account in the cpanel without manualy logging in ? I want to create a php script which logs into the cpanel and create an email account . I hope i would get a solution form u guys Thanks

Member Avatar for jaison_1
0
2K
Member Avatar for praba_web

How to integrate login in ossn framework html page ? i designed separate page for login module. i have to integrate login in ossn framework index.html.. please give solution..

Member Avatar for jkon
0
120
Member Avatar for Gideon_1

I am a 19 year old guy who is yet to get a CS degree from the university. I learned web development on my own from resources online. Mostly from youtube videos precisely from thenewboston and phpacademy and a few text-based tutorials from w3schools.com. I am good with HTML, HTML5, …

Member Avatar for diafol
0
497
Member Avatar for nadiam

I am trying to update data but i get this error. `Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' username …

Member Avatar for nadiam
0
276
Member Avatar for Moin_3

[Click Here](http://dev.appcotech.com/pwrdup/static/become-postie.php)[1] UnderConstruction please go to upper link and click on SIGNUP TO DRIVE (Blue cruve Button) there will be a tab open type `london` (Not From Drop Down) only just type `london` and hit enter page will redirect to dev.appcotech.com/pwrdup/static/become-postie-vehicle.php page (This mean post keyword matched 100% with database) …

Member Avatar for pixelsoul
0
386
Member Avatar for praba_web

Hi there , How to write multiple update_batch query in codeigniter? My script is not working ... Please give some solutions for multiple update row using update_batch... getting below Error: A Database Error Occurred You must use the "set" method to update an entry. Filename: D:\xampp\htdocs\DEAL\system\database\DB_active_rec.php Line Number: 1273 mycontroller …

Member Avatar for praba_web
0
9K
Member Avatar for Paul_31

For some reason my forms have stopped working and I cannot get themt o send any emails. I have checked the server logs and I can see on form submition it throws the following error. PHP Notice: Undefined variable: email_message on line 21, <?php if(!isset($_POST['submit'])) { //This page should not …

Member Avatar for pritaeas
0
978
Member Avatar for Stefce

i cannot select from two tables but i have the right code here it is: $sql = "INSERT INTO ticket (senderName, receiverName, `Date`, ticketID, match1, match2, match3, match4, match5, match6, match7, match8, match9, match10, match11, match12, match13, match14, match15, match16, tip1, tip2, tip3, tip4, tip5, tip6, tip7, tip8, tip9, tip10, …

Member Avatar for pritaeas
0
213
Member Avatar for Mushfik

How can i show user "Your account is not confirmed yet" when the login form check whether confirm column is YES (If yes then tke it to member page & if NO then shows that error message.) I already have error message for invalid details but I want a cofirmation …

Member Avatar for diafol
0
410
Member Avatar for jeffersonalomia

how can i display the name of the user after he/she logs in? Do i need to use ajax on it together with php? Please help me.. thank you :)

Member Avatar for joshl_1995
0
85
Member Avatar for Nathaniel10

I want to increase my knowledge of PHP by learning about classes. I wrote the following very simple test program. It works. But I would like to know improve it. I plan on writing more complex test programs and that won't be the time to iron out smaller issues. Thanks …

Member Avatar for diafol
0
443
Member Avatar for Mushfik

Please someone help. I want to put the $url which is created into $shorturl = to generate a custom url ($url actually outputs a http://something.com actual link) but don't know how. or can you help me put the $url in header("Location:" ## .$url ## ']); to redirect users to the …

Member Avatar for Mushfik
-2
253
Member Avatar for pavithra madda

i have a doubt that is i have login form like user name and password and after that doing some selections the page show an body of email like this and my question is how to send that body of email to all users in a database using php and …

Member Avatar for Gideon_1
0
268
Member Avatar for UK-1991

Hello delete record not working if(isset($_POST['delete'])) { $ida = $_GET['delete']; $coupen = $_GET["code"]; $update_query = "delete from shortenedurls where id=".$ida; $query = mysqli_query($connection, $update_query); if($query) { header('Location: ../coupon.php?id='.$id.'&code='.$coupen); exit(); } else { header('Location: ../update_link.php?id='.$id.'&code='.$coupen); exit(); } }

Member Avatar for UK-1991
0
202
Member Avatar for Priti_P

Hello, I wanted this in chronoform, to select timezone and then check for the time. I hav eprovided calendar below, but now I need to show timezones there. I am not getting this on google even. Does any master have idea about this?

Member Avatar for pritaeas
0
150
Member Avatar for edbr

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 …

Member Avatar for edbr
0
142
Member Avatar for jstfsklh211

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 …

Member Avatar for diafol
0
258
Member Avatar for Kalaivani Nair

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: …

Member Avatar for pritaeas
0
200
Member Avatar for UK-1991

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 …

Member Avatar for UK-1991
0
245
Member Avatar for sanket044

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 …

Member Avatar for sanket044
0
163
Member Avatar for Nguyá»…n_6

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

Member Avatar for Nguyá»…n_6
0
258
Member Avatar for Benjamin_13

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

Member Avatar for Benjamin_13
0
150
Member Avatar for cristian.stilpeanu.1_1

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 …

Member Avatar for cereal
0
1K
Member Avatar for Nikhilesh_1

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 …

Member Avatar for diafol
0
260
Member Avatar for phoenix254

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 …

Member Avatar for jkon
0
539
Member Avatar for riwakawd

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 …

0
119
Member Avatar for Justin_14

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 …

Member Avatar for Justin_14
0
450
Member Avatar for Israel_2

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 …

Member Avatar for Israel_2
0
202
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
376
Member Avatar for Stefce

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 = …

Member Avatar for cereal
0
446
Member Avatar for paul-lucas

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" …

Member Avatar for paul-lucas
0
194
Member Avatar for stokie-rich

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 …

Member Avatar for stokie-rich
0
252
Member Avatar for skthree

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 …

Member Avatar for skthree
0
391
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
308
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
202
Member Avatar for Babaty_1

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 …

Member Avatar for cereal
0
107
Member Avatar for DavidB

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 …

Member Avatar for DavidB
0
500
Member Avatar for shashigowda

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})

Member Avatar for Gideon_1
-1
265
Member Avatar for Justin_14

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. …

Member Avatar for Gideon_1
0
292
Member Avatar for nadiam

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(); …

Member Avatar for nadiam
0
3K
Member Avatar for berserk

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> …

Member Avatar for bnmng
0
490
Member Avatar for nadiam

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. …

Member Avatar for nadiam
0
381
Member Avatar for hrushi9

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 …

0
130
Member Avatar for wooshman

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, …

Member Avatar for wooshman
0
150
Member Avatar for Gideon_1

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?

Member Avatar for diafol
0
229
Member Avatar for Kamal_6

while executing the below program i am getting the error "Parse error: syntax error, unexpected '<<' (T_SL) in C:\xampp\htdocs\registration.php on line 5" . can i get some help ?? <?php extract($_POST); include "connection.php"; $link= md5($txtuname); $str= <<<abc account is created click on the activation link <a href="http://abc.com/active.php?$link">click </a> abc; if(mysql_query("insert …

Member Avatar for Gideon_1
0
184
Member Avatar for jonlloydd

I am trying to code a search box that will search though a column in my database. If the search matches the column then that record will be printed in the table below. I am searching on a column that contains the county of a company record. There are no …

Member Avatar for Gideon_1
0
9K
Member Avatar for G_S

Hello everyone. I am trying to make a simple to-do list program using PHP and the MVC pattern. I have managed to make the login page, the model and the controller for managing logins. It is working properly because it can discern if the user exists or not. After validating …

Member Avatar for G_S
0
236
Member Avatar for solomon_13000

I have two modules built by two developers: 1) backoffice 2) reporting However they share a single connection. The problem now is the security aspect. Both modules are independent in their respective folder(s) but they share the same connection. A developer mention that with the current architecture it is impossible …

Member Avatar for cereal
0
258

The End.