39,323 Topics
| |
Hello, I have a PayPal button that uses a submit button to pay, but I have a small problem with it. The client I'm making this for also wants tracking (Hits). Is it possible to have the submit button also run a javascript before going to paypal? If you need … | |
I have been stuck on this for 2 days now. There were a ton of code available, but not one working solution. Below is my code to send the mail once a user requested a service at an auto repair shop. It updates mysql with all of the data and … | |
Hi, i am try to display and insert info on a person into my database but i keep getting this error whenever i enter the info You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use … | |
I'm using this code to check if a record exists or not: [CODE] $filename = $_FILES["file"]["name"]; /// FROM FORM $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); $bull = substr($filename, 0, strpos($filename, '.')); $myQuery = "SELECT * FROM $media WHERE label='$bull' "; $result = $dbh->prepare($myQuery); $result->execute(); $cont = $result->rowCount(); if ($cont == 1) … | |
Hey guy, I want to know if there is a way of using PHP in JavaScript. I have no idea how can i get the variables from PHP into JavaScript. I am making a pizza application, the php file is a confirmation page. The user can either go back to … | |
I'm about to start an assignment and am just trying to think of the most logical waysd of doing things at the moment. The assignment involves using mysql and php to create a website for a training company. The part i am having trouble conceptualizing is this: "Tutors are created … | |
I have textarea comming from mysql. In the backend the user tyes a letter type format in a textarea They ise Enter to make new rows etc __________________________________________________ Dear john Welocome to our website hope you find it usefull Thank you The Team ___________________________________________________ When I pull the data from … | |
| [CODE]<?xml version='1.0' encoding='UTF-8'?> <response> <status>get_ticket_ok</status> <ticket>bxquuv025arztljze2n438md9zef95e8</ticket> </response>[/CODE] This is all you got! How you will convert it into php array or something? |
Hi everyone, I have been asked to help extract data from a xml file and use the data to input into html form designed in php I have read a few articles but im missing the point some how... On the file that im trying to get the data to … | |
Hi all - I have a xml file that I am trying to extract data from and create variables to use in a PHP / html form. I am new to extracting information from xml and creating variables The XML file is show below and what I would like to … | |
Hi [CODE]$asking_price = "20"; $original_value = "100"; $discount = (1-($askingPrice/$original_value))*100; echo $discount;[/CODE] why $discount always equal to 100 ? it supposed to be 80. | |
Hi, i am working on a billing page. Where the user will add item(s) to a bill, now the number of item(s) in a bill is not pre defined. So i am taking one input at a time, then adding them to a table in the same page. Now when … | |
I have spent about a couple of hours trying to read the pcre regex syntax on the php.net manual but I can't for the love of god grasp the concept of it. If anyone can help me it would be greatly appreciated. I'm trying to split some strings into an … | |
Hi guys, I'm trying to use an individual CMS. But when I installed it it shows me this notice: NOTICE: UNDEFINED INDEX: _PAGE IN C:\WAMP\WWW\MYCMS.PHP ON LINE 16 The php file is this: [CODE] <?php if ($_SERVER["REQUEST_URI"]) { if (is_array($tmp = explode("?" , $_SERVER["REQUEST_URI"]))) { $tmp = explode("&" , $tmp["0"]); … | |
Hello, I wrote a script to send out an email and it works except for the subject line. Not sure why. Anyone know? Is it the "" marks? [CODE] $to = ($_POST['e_mail']); if (!isset($_POST['e_mail'])) $subject = "Registration at MySite.com"; $message = "Welcome to MySite! Your user account has been created. … | |
Hi, I have been left in the lurch with a few php scripts on my site and I'm the first to admit coding is not my strong point! I have managed to fix most of the issues, but I am stuck on the following. Basically, I want to query the … | |
I'm trying to build a mortgage qualifying script for a company. My php code is working fine .. up until the if else statements. fyi I'm using wamp... heres the code. The code if very raw, i've only been working on it for a day or 2, but I can't … | |
Hi, i had upload image to mySQL database... The problem is i unable to open or view the image that uploaded. May i know how display image from database by selectted id ??? the picture below is my "upload" table... Appreciate for you help | |
| Hey i was wondering if it would be possible to have this as a security measure. I am in the middle of creating an admin page for my website. I want them to register though. However to register, in one of the fields they must provide a secret number which … |
Hi, I have a php page to take user input. My page has 3 sections. [B]Section 1::[/B] I am taking some information from the user. [B]Section 2::[/B] I am again taking some input from the user, and [B]Section 3::[/B] I am displaying the data from section 2, in a table. … | |
Hi! there is some problem in uploading file. some one help me and please make corrections in code. //// upload_form.html <html> <body> <form enctype="multipart/form-data" action="upload_file.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" value="Upload File" /> </form> </body> </html> ///////upload_file.php … | |
I'm construted a php-class where I create and save some elements in an XMLfile. Outside that class I instantiate the class and save it in a _SESSION['obj'] if the session has not been created yet, otherwise I want to get the document back and add new elements to the XMLfile. … | |
I would think php.net but I could not find them. The SVN repository requires a developers password so I could not check there. A more difficult question - How do I install PHP 5.2.4 on Ubuntu Linux 10.10. Thanks in advance. | |
Hi, I have Object that performs not only registration/Login but also manages users after the log in. Does it make sense to store object of that class in session or I should only store userID on session and use that to Query DB? My Object will contain user details (Full … | |
Hi friends In one of my project I displayed data from data base in page wise order ( ie 10 data of a thread in to one page , just like a forum ) I just want to give a link at the first listing page which showing link to … | |
| I have a basic CMS running, the three main files are cpanel.php, where the user clicks the "edit" button, this then opens pageeditor.php page, where the changes can be made to the document within an iframe and then the user clicks "save", the data gets passed to the saver.php saving … |
Hi I've been using mysqli and recently moved a website to a new server hosting company. They have recently informed me that the version of PHP they use does not support mysqli. I'm not really sure about the why/why not's etc but could I just change all instances of mysqli … | |
The title is probably confusing, but here is what I am trying to do and failing miserably at: I want to display all the items from my db table named 'inventory'. Then, a user would select one item by clicking a 'Add to cart' image button. When the button is … | |
[CODE]class manage { private $entryId; function __construct($entryId) { $this->entryId = $entryId; } function deleteEntry() { //delete $this->entryId from database } } $m = new manage(23); $m->deleteEntry(); [/CODE] how this method delete entry from db deleteEntry(); how sql query works with this please help to understand | |
I am looking for a tutorial or advice wherein I can create a timer for my auction items. You can see those timers on the site like quibids.com The concept is like this. I post and auction and set an end time for the auction. When the auction is live, … |
The End.