39,320 Topics

Member Avatar for
Member Avatar for bobgodwin

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

Member Avatar for bobgodwin
0
150
Member Avatar for navp

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 …

Member Avatar for navp
0
258
Member Avatar for jimmyo88

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 …

Member Avatar for jimmyo88
0
108
Member Avatar for branding4you

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 …

Member Avatar for branding4you
0
86
Member Avatar for TechySafi

[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?

Member Avatar for TechySafi
0
286
Member Avatar for LloydFarrell

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 …

Member Avatar for LloydFarrell
0
602
Member Avatar for LloydFarrell

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 …

Member Avatar for LloydFarrell
0
147
Member Avatar for ofir0803

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.

Member Avatar for ofir0803
0
131
Member Avatar for anirban1087

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 …

Member Avatar for anirban1087
0
133
Member Avatar for qazplm114477

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 …

Member Avatar for kekkaishi
0
106
Member Avatar for didi00

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"]); …

Member Avatar for didi00
0
194
Member Avatar for phpDave

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

Member Avatar for phpDave
0
91
Member Avatar for Xentiago

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 …

Member Avatar for diafol
0
303
Member Avatar for RazorRamon

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 …

Member Avatar for Insensus
0
180
Member Avatar for LWS

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

Member Avatar for trueedmar
0
2K
Member Avatar for OldDeveloper01

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 …

Member Avatar for diafol
0
97
Member Avatar for anirban1087

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

Member Avatar for anirban1087
0
132
Member Avatar for saqib_604

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 …

Member Avatar for tiggsy
-1
191
Member Avatar for mossa

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

Member Avatar for mossa
0
320
Member Avatar for chris.aaker

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.

Member Avatar for sutindaya
0
196
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
107
Member Avatar for rajeesh_rsn

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 …

Member Avatar for tomato.pgn
0
80
Member Avatar for Lioshenka

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 …

Member Avatar for Akash Saikia
0
162
Member Avatar for ebanbury

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 …

Member Avatar for ebanbury
0
138
Member Avatar for flynismo

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 …

Member Avatar for flynismo
0
120
Member Avatar for joomphp

[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

Member Avatar for ariese
0
82
Member Avatar for never_rain

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

Member Avatar for ariese
0
225
Member Avatar for jenthevb

Hello, I have a problem with this script when i will check it in the browser, the output is : "Warning: mysql_query() expects parameter 1 to be string, resource given in C:\xampp\htdocs\doto\php\new_case.php on line 8 FOUT SELECT * FROM disp_type ORDER BY t_naam ASC Resource id #3" [CODE]<?php $host="localhost"; $username="TEST"; …

Member Avatar for ariese
0
415
Member Avatar for Chubbymouse

Hi there, I have a very basic CMS system that I wish to update within itself and on the same page to cut down the amount of pages it gives me. At present I have a content box and an edit button, this box is validated by JS and if …

0
75
Member Avatar for karthik_ppts

Hi Frendz, I have a latitude and longitude points of particular place namely X. Now I want to check the given latitude and longitude point of a place namely Y is within a circumstance of a particular radius from that point X. How to check that? i'm using google map.

Member Avatar for karthik_ppts
0
158

The End.