39,320 Topics

Member Avatar for
Member Avatar for vivosmith

<html> <head> <title>Zachs Page</title> </head> <body> <form enctype="multipart/form-data" action="upload_image.php" method="post"> <input type="hidden" name="MAX_SIZE" size="524288"> <p> File:<input type="file" name="upload"/></p> <input type="submit" name="submit" value="submit"/> <input type="hidden" name="submitted" value="TRUE"/> </form> <?php if(isset($_POST['submitted'])) { if(isset($_FILES['upload'])) { $allowed= array('image/pjpeg', 'image/jpeg', 'image/jpeg', 'image/JPG', 'image/X-PNG', 'image/PNG', 'image/png', 'image/x-png'); if(in_array($_FILES['upload']['type'],$allowed)) { if(move_uploaded_file($_FILES['upload']['tmp_name'] , "/MyFiles/{$_FILES['upload']['name'] }")) { echo "The …

Member Avatar for diafol
0
2K
Member Avatar for Sophia_1

Hi everyone, I have this issue, currently am able to save the attachment name in mysql database. However, after saving it doesn't display the attachment name in the form and so unable to open the attachment. Below is the coding. Please advise how to display the attachment name and open …

Member Avatar for Johnny1
0
455
Member Avatar for phpkoder

I'm working on a web application that will receive gps data and split received string to detailed information and then store it in some database tables. Every piece of application is ready, now I need to setup my **new** server to accept data from gps device. In my gps device, …

Member Avatar for rubberman
0
1K
Member Avatar for bLuEmEzzy

I added "DISTINCT" in my code. but seems the output is still the same, it have duplicate records. Thank u :D (note: I changed the field names and tables here) SELECT DISTINCT b.field1, b.field2, b.field3, b.field4, c.field1, c.field2, c.field3 from tbl1 b inner join tbl2 c on b.logid = c.logid …

Member Avatar for daniellemacey
0
367
Member Avatar for Teun_1

**What is the best way to build a simple & clear web based Suppliers database/list for my Design agency?** Has to: -Be accessable by all my collegue's (20) by webbrowser (Security/account issue?) - Have 'Input Supplier' & 'Search Supplier' Function - Provide multiple categories : Name, Website, Email, Function, Categorie …

Member Avatar for cereal
0
232
Member Avatar for Benjamin Alexander

Hello everyone. I am fairly new to PHP. Because of this I try and learn as much as I can with each problem that I encounter. In this particular case I have been left high and dry by the developer of a simple CMS that I had developed for me …

Member Avatar for Benjamin Alexander
0
572
Member Avatar for scarcella

Hey guys i need to get the database column into a 1 mentionable array. Here is my code. [CODE] $spreadsql = "SELECT `categories_id` FROM `".$TABLES['CATEGORIES_SPREAD']."` WHERE `products_id` = '".$_REQUEST['pid']."'"; $spreadquery = mysql_query($spreadsql, $connection) or die ('Could not execute SQL query:<br />'.$sql.'<br /><strong>'.mysql_error().'</strong>'); $spread = mysql_fetch_assoc($spreadquery); $array = array(); foreach ($spread …

Member Avatar for jkon
0
228
Member Avatar for michael.onyenma

I have issue with a php script i tried to use for file upload (ref: sitepoint 2015) ===index.html======== <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>form upload</title> </head> <body> <form action="control.php" method="post" enctype="multipart/form-data"> <p><label id="upload">Select file to upload: <input type="hidden" name="MAX_FILE_SIZE" …

Member Avatar for pritaeas
0
299
Member Avatar for SirMahlon

page with form open in laravel 4.2 is not working. it throws this error Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException

Member Avatar for SirMahlon
0
299
Member Avatar for lewashby

Linux Mint I logged into phpmyadmin and set the password option to 'no password' and now I can't log in. If I enter the password I was using I get this error -> `#1045 Cannot log in to the MySQL server` and if I don't user a password at all …

Member Avatar for cereal
0
4K
Member Avatar for masterjiraya

<?php $array['key1']['key2']=array(); array_push($array,$array['key1']=>'one',$array['key2']=>'two') print_r($array['key1']['key2']); ?> can someone tell me if this is possible for multidimensional arrays? revise the code if I am wrong actually I am creating a site for billboards reservation

Member Avatar for diafol
0
72K
Member Avatar for BrickZ28

Hello, I am a little stumped here. I have a few tables I am trying to display data with. The first is tbl_pilot which holds data such as ID numbers that come from other tables. So my issue is tbl_pilot there are 3 airframe choices tblPilotAirframeChoiceID1FK,tblPilotAirframeChoiceID2FK,tblPilotAirframeChoiceID3FK. I am trying to …

Member Avatar for BrickZ28
0
192
Member Avatar for network18

I have a Premium SEO Pack – Wordpress Plugin installed and with its Facebook planner, we are supposed to authorize app after providing the initial settings. I have provided all the settings correctly. Provided app id, app secret, app domain, site url (through add platform), settings->advanced->enabled browser OAuth login, provided …

Member Avatar for network18
0
417
Member Avatar for janicemurby

hi i have a script that was made up for me a while ago it was working full but now its stopped can anyone see whats going off as the infprmation from the form is not echoing through to another page although its going to database heres database string to …

Member Avatar for cereal
0
212
Member Avatar for tissam

In MySQL I have "users" table and one user for password and username exist. i need to change this password using basic HTML form. But when press the "Update Password" button every time given print out "The username you entered does not existThe new password and confirm new password fields …

Member Avatar for diafol
0
6K
Member Avatar for pilucho

Hello everyone you can create a pager, in this code Answer search found nothing Please can you help me with this <form action="Search.php" method="post"> <input type="text" name="Words" /> <button type="submit">Search</button></p> </form> <? $consulta = $_POST['Words']; if ($consulta == "") { } else { mysql_connect($dbhost,$dbuser,$dbpass) or die(mysql_error()); mysql_select_db($dbdatabase) or die(mysql_error()); $SQL …

Member Avatar for diafol
0
110
Member Avatar for Liang_1

Dear All, I am facing a weird problem, similar codings give different result. Why is this happening? I am saving both files as .php file. Please guide me. I really having headache with this form. Code 1: Working Fine (Non-bootstrap) <html> <head> TestPage <link rel="stylesheet" href="http://gsmtecharena.com/Testing/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://http://gsmtecharena.com/Testing/bootstrap/3.3.5/js/bootstrap.min.js"></script> …

Member Avatar for Satish_7
0
818
Member Avatar for Ventech_IT

I am trying to make my bootstrap carousel dynamic in codeiginter here is what i have so far Model Fucntion function get_all_images(){ $query = $this->db->query("SELECT * FROM property AS p INNER JOIN property_images AS pi ON p.ID = pi.image_id GROUP BY p.ID ORDER BY p.ID"); return $query->result_array(); } My Controller: …

Member Avatar for mangel.murti
0
5K
Member Avatar for Hue_1

Hi all. I am having some trouble implementing my add-data.php as explained in this [tutorial](http://www.codingcage.com/2015/06/multiple-insert-update-delete-crud.html) My situation is that I should be able to do CRUD of data but from/to multiple tables. Following the tutorial, so far I have done the display/index.php, generate.php and the form part of add-data.php. Now, …

0
756
Member Avatar for programmer12

HI , I am creating a social media site, but getting stumped on updating the status comment boxes. Currently, when a user post a comment to a status it updates in REAL-TIME (ajax) on their page, however, it does not on the clients side. How can I build a comment …

Member Avatar for ryantroop
0
164
Member Avatar for vikasmca2k11

There is a lot of people who thinking that one day PHP will die then Why Maximum web development is going in PHP ?

Member Avatar for invisal
0
183
Member Avatar for amith_ami

How to disable forwarding credential contents from email.? ie. if a mail send to a user from my website, don't allow the user to forward the credential contents to another mail.

Member Avatar for rproffitt
0
105
Member Avatar for Jiby_1

1) i fetch data from database suppose $data contains all the data of table A from $data first two goes to below div <div> //bgcolor green echo $data['a']; echo $data['a']; </div> next 2 data to below div <div>//bgcolor yellow echo $data['a']; echo $data['a']; </div> again next two data to <div> …

Member Avatar for diafol
0
134
Member Avatar for rpv_sen

Hi I want to stop direct download of videos file from my webiste folder. .htaccess is not working in godaddy windows server Please help me. eg: http://www.domain.com/folder/video.mp4 If paste the URL in the browser. it should not download the file from the server.

Member Avatar for rpv_sen
0
814
Member Avatar for UK-1991

Helo, I have a confussion and I need to get it solved in core php we used to create a url parameter through which we would be able to get values from the url so hwo this could be happend in codigniter for example <a href="index.php?add=1">Add page</a> //setting up a …

Member Avatar for UK-1991
0
283
Member Avatar for solomon_13000

I am attemping to calculate the cost by issuing the query below however it always return no value: //Re-calculate the cost price $f15 = "SELECT sum(cost) FROM ingredients WHERE item_id_fk = :targetID"; $e16 = $this->l1->prepare($f15); $e16->bindParam(':targetID', $g4); $e16->execute(); $g5 = $e16->fetch(PDO::FETCH_NUM); error_log(print_r($g5[0], TRUE)); Did I miss out something? Your help …

Member Avatar for diafol
0
3K
Member Avatar for brispea

Hiya all, I really need your help with understanding. But first, please avoid offering wordpress or so as a solution. I have a couple of templates (more to come) done from scratch to meet a specific business type (very specific). My problem if a customer selects one template, how do …

Member Avatar for brispea
0
127
Member Avatar for AntonyRayan

HI, I am trying to do questions generation system in PHP. I need some idea form all of you, how to shuffle questions and answers from table based on standard, section, subject,difficulty of question (Easy, Medium, High),No of module (Like, choose the best anser, true or false, Explanation ), and …

Member Avatar for parvez alam
0
992
Member Avatar for Jiby_1

Below shown code after fetching data from database not listing the result? <?php $answer = $listcareer['bigcontent']; $bigcontent = substr($answer,0,10); print_r($bigcontent); exit(); ?>

Member Avatar for diafol
0
101
Member Avatar for UK-1991

Hello, I have created a quiz system where I tried to create a condition which is just simple one if time is up then correct answer will be shown up and the button would be disabled but I am confused and unable to make some logic about I need you …

Member Avatar for UK-1991
0
244

The End.