39,323 Topics

Member Avatar for
Member Avatar for hrushi9

How to create image of receipt using **file_put_contents** or **imagecreatefromstring** , **imagejpeg**? I have following code, which generates corrupted images, when I open images it shows **invalid image** And how to email generated image ? ( *optional* ) Thanks in advance. $html_code = ' <div class=confirmation-wrapper id=test> <div class=container> <div …

Member Avatar for hrushi9
0
1K
Member Avatar for uttar14

I am creating a dynamic Form, which is like a registration form on my website.The text fields needs to accept and allow multiple entries .since i am a beginner and i am not sure on how to start ..i already created my html code and form has working fine for …

Member Avatar for uttar14
0
241
Member Avatar for Praveen_15

Hi everyone i need help in getting value from 3 depenedable dropdown menu and after selecting option from 3 dropdown menu the data showed be shown in textbox eg. First value **package1** Second Value **car1** Third value **Type** and textbox value **Rate1** **Rate2** **Rate3** Please help me in this Thanks …

Member Avatar for Praveen_15
0
423
Member Avatar for sukesh55555

HI.... im new to php, i ve a doubt. i want source code in php for the requirement as traited below. im creating a registration form with two image file uploading system. I need a source code in such way that, the inputs NAME, AGE, MOBILE NUMBER, image upload(ONE), image …

Member Avatar for rproffitt
0
342
Member Avatar for ribrahim

Dear All, I'm developing a php system which contains over 50000 images in a directory. Is there any tools which help me to do a search script to find a similar images in that directory. What I'm looking for is the user can upload the image and the script retreive …

Member Avatar for AleMonteiro
0
152
Member Avatar for masimies

Hello, Simple is not so simple i see, Trying to save file in html-format from server to local disk. <?php if(isset($_POST['submit'])) { $file = $_POST['file']; file_get_contents('files/$file'); file_put_contents('download/$file'); } ?> <form method="post" action=""> <select name="getfile" id="getfile"> <option value="">Select file...</option> <?php $dir_open = opendir('files/'); while(false !== ($filename = readdir($dir_open))){ if($filename != "." …

Member Avatar for masimies
0
3K
Member Avatar for Marco_4

Hello, simple information. I was creating the connection to the database files with various functions, such as: "Get One, getAll". I wondered if their syntax was safe against sql attacks, though in fact could be improved with the inclusion of the bind, but do not know how to make them …

Member Avatar for cereal
0
184
Member Avatar for godfreysseki

Hello, Help with the php code to select things from the database, put them in ckeck boxes and use the checkbox to select what will return in another table in the database. Thank you.

Member Avatar for cereal
-1
56
Member Avatar for Coderunner

Hello, I have a php script which devide the emails in groups so that each group can send separately. Servers can look it as spam if the group is too big. Now how can I add the correct email address of each person in this script below (cfr '. $ …

Member Avatar for Coderunner
0
338
Member Avatar for Marco_4

Hello, kindly ask your help regarding a function to upload images in two folders, one original image and the "Thumb" folder for thumbnails. Well, I entered the rand code to rename the file name. Loading is performed properly in the root folder (Original image) but not in the thumb folder. …

Member Avatar for AleMonteiro
0
202
Member Avatar for shashigowda

Hi, how to pass variable value inside js. i want to add **Days** value to **From** date and dispaly it as **To** date here is my code,please go through it,i have explained in comments HTML days:<input type="text" id="capped_days">//manual i/p From:<input id="dt1" type="text">//date picker1 To:<input id="dt2" type="text">//datepicker2 javaScript $("#dt1").datepicker({ dateFormat: "dd-M-yy", …

Member Avatar for AleMonteiro
0
324
Member Avatar for shubhamjain1

By this script you can remotely login into facebook account with your password and username and fetch/send data.

Member Avatar for Tùng
2
8K
Member Avatar for Dipti_1

XML - <?xml version='1.0' encoding='UTF-8'?> <Form name='Demo' id='DemoID' searchname='Demo' search='Demo' org='Yes' > <Field name='IdentificationNumber' datatype='String' control='InputText' length='10' search='Yes' /> <Field name='Country' datatype='String' control='InputText' length='50' search='Yes' /> </Form> PHP - <!DOCTYPE html> <html> <body> <?php $xml=simplexml_load_file("Demo.xml") or die("Error: Cannot create object"); echo $xml->FIELD . "<br>"; ?> </body> </html>

Member Avatar for AndrisP
0
240
Member Avatar for rpv_sen

Hi i am trying to display the username with their daily activity with count. i am getting the output for the last row reset is showing 0 in all the name. please help me to resolve. **connection.php** <?php class Database{ //specify your own databse credentials private $host = "odbc:DRIVER={SQL Server};SERVER=servername;DATABASE=DB"; …

Member Avatar for rpv_sen
0
212
Member Avatar for AntonyRayan
Member Avatar for theflashbr

The system basically work in this series: a new registration is made in the database, the system sends me an e-mail notifcando a new record.

Member Avatar for dean8710
0
449
Member Avatar for Marco_4

Hello, I ask your help in order to use this class. I need your explicit example is the code and form to use it properly. http://www.phpclasses.org/package/9683-PHP-Validate-and-add-watermark-to-uploaded-image-files.html#view_files $upload = new ImageOperations(); ext and the correct form. Thank you in advance for your help.

Member Avatar for rubberman
0
151
Member Avatar for janicemurby

hi all im in the middle of following a tutorial online for a rating system and im encountering a problem when i click a number of 1/5 to rate a topic the rating is not going into the database can someone check the code to see what going off sql …

Member Avatar for cereal
0
292
Member Avatar for shany0786

Hello everyone i have facing problem in creating a array of sub categories. below is my html code,where user can add category name crossponding this he can add any number of sub category its image and detail by adding on add-more sub category,(form is duplicated by clicking button) <input type="text" …

Member Avatar for lps
0
241
Member Avatar for shany0786

hello all i have following $_POST array array(5) { ["addcatagory"]=> string(8) "CATEGORY" ["reg_admin_id"]=> string(2) "25" ["subcatagory"]=> array(2) { [0]=> string(9) "SUB CAT 1" [1]=> string(9) "sub cat 2" } ["subCat_Detais"]=> array(2) { [0]=> string(9) "AAAAAAAAA" [1]=> string(8) "BBBBBBBB" } ["submit"]=> string(15) "Submit Catagory" } now what i want to achieve …

Member Avatar for lps
0
191
Member Avatar for ankit_21

this is my code $line = trim(fgets(STDIN)); echo $line; what browser shows: Warning: fgets() expects parameter 1 to be resource, string given in /storage/emulated/0/coding/mobilephp

Member Avatar for rubberman
0
951
Member Avatar for berserk

platform: IIS + Apache + mysql + php (please dont justdge me on the platform it was not my choice) I have this weird bug that seems to be directly related to my sessions on my web based app. when i travel between links, if i give the previous page …

Member Avatar for berserk
0
364
Member Avatar for James_43

Hi all, wondering if the following is possible. A MS Exchange server is connected to an Outlook client. Would it be possible to capture sent/recieved emails and add them to a database using PHP. I would like to investigate whether I could use this functionality to create a small email …

Member Avatar for rproffitt
0
214
Member Avatar for Webville312

Hi, I need to have passwords encrypted whenever a user signs up. How can I attain that? Any ideas? Thanx in advance.

Member Avatar for Dini_1
0
16K
Member Avatar for miltonbburke

Hello, I am using this very basic form of the dom scraper to scrape image urls from tumblr webpage, it kinda does what i am looking for but i am facing two issues. 1. Its scraping all links, i want it to scrape only links that contain "media.tumblr.com" 2. I …

Member Avatar for miltonbburke
0
226
Member Avatar for nabilamn

guys, i got an error while saving or updating bank account number. first, everything is ocay when i set my account into bigint (16) data type. but, i changed it into varchar(16) however,when i try to change it back to bigint suddenly the account number that i save before this …

Member Avatar for desito
1
434
Member Avatar for sahilmohile15

Hello guys, Here i am having another error. Error is undefined index on my products.php page i tried everything i can to define it but if i define it code doesn't work so here's the code products.php: <?php require_once $_SERVER['DOCUMENT_ROOT'].'/Online Store/core/init.php'; //Including database path stored in init.php include 'includes/head.php'; //Including …

Member Avatar for pritaeas
0
437
Member Avatar for ekuban

I m working on a MLM project in which i have to store member automatically in binary tree form like 1 is root 2 is child of 1 3 is child of 1 Then 4 is child of 2 5 is child of 2 6 is child of 3 7 …

0
112
Member Avatar for joshl_1995

Hello Daniweb Community, I've been looking around online for help with this but I can't seem to find a way to get a query to do what I want. The image below should pretty much say what kind of result I'd like to get, it's pretty much merging the tables …

Member Avatar for joshl_1995
0
289
Member Avatar for ansh.29

How can I insert select list value's(dropdown) name and id into database ? Help will be appreciated.

Member Avatar for milil
0
306

The End.