39,323 Topics
| |
I am using **name** field to get the option in dropdown from database datas in my database id name 1 Resham 2 Rukshana 3 Resham 4 sindya how to write a php code for displaying the name only once in dropdown and if the option *Resham* is choosen then my … | |
I am php developer, my site have many sellers sell their item. When buyer going to purchase their item then buyer pay the amount to all multi seller using credit card details via paypal , i need the php script to implement the credit card parallel payment via paypal . … | |
Hey guys, so im wondering if theres a way to insert 2 input values into one column in PDO? coz in mysql_* i just did something like this and it worked: INSERT INTO tablename VALUES ('input1 input 2', 'input3'); pdo i tried : $event = $dbh->prepare("INSERT INTO event(event_name,start_event,end_event,event_venue) VALUES('$name', CONCAT_WS('$dstart', … | |
hey guys so im trying to display data into text boxes that are fetched from database according to checkbox with value id. php: <?php if(isset($_POST['edit_event']) && isset($_POST['check'])) { require "connection.php"; foreach($_POST['check'] as $del_id) { $del_id = (int)$del_id; $sql = mysql_query("SELECT * FROM event WHERE event_id = '$id' ") or die(mysql_error()); … | |
| I'm just wondering what the codeigniter caching library does and where it might be useful, or what problems people have encountered with it are. |
<?php /* @Author: Hannan_Mondul php() 2014 */ //use construct class Car { public $name; public $band; public $spreed; public function __construct($name="Unkown",$band="Unkwon",$spreed=40){ $this->name = $name; $this->band = $band; $this->spreed = $spreed; } function output (){ printf("<p> This car name is %s and its band is %s and its spreed is %d … | |
Hi, I am trying to display two or more images from a database and I cannot get them to display simultaneously. I have a database table called 'tbl_images' which has two fields 'id' and 'image' here is the code for the database creation: [code=mysql] CREATE TABLE tbl_images ( id tinyint(3) … | |
When I use `select indicator...`in my select statement below I can't use `$row[indicator]` when I use `select indicator as indicator` I can use `$row[indicator]`. Why is this? $stmt=$mysqli->prepare("select indicator as indicator, count(status)as 'ok', (select count(status) from viewindicatoren where status ='niet ok' and afdelingid=? group by IND_id ) as 'nietOk' from … | |
Aplication developed in PHP is more stronger than Codeigniter Aplication ? | |
$headers .= 'From: <donotreply@maysite.com>' . "\r\n"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'Return-Path:<donotreply@maysite.com>\r\n'; mail($to, $subject, $messageEmail, $headers); _____ what i need to add to (recieved my email generated, php mail() fuction) in inbox, because it always landed to spam | |
Hi Everyone, I haven't started coding or anything but I need to know if it's possible to read a file from last read position? I want to read a file and dump the content into a MySQL database but don't want to read the entire file from start to end … | |
I am chosing an option from database using the field named as "name". since i have the name "supriya" 3 times in my database, it displays 3 times in my dropdown. How do i restrict it by displaying the name only one time and once it is choosen, then it … | |
How to find visitor's exact operatingsystem? How to find visitor's exact computer name? How to find visitor's exact computer user name? getenv('username') is not working. gethostname() is not working to get local machines name | |
| I have a table that extracts data from a mysql database, I want the table to be centerd on the screen. I have used text-align: center; but obviously it only centers the text inside the div. here is my css .tableOuter { text-align: center; } .tableInner { text-align: center; margin-left: … |
Hello all, I need to validate google oauth2 access token... I found one script online but it is stuck on cURL function... I suppose JSON to ARRAY conversion or something similar.. but I dont know how to solve it.... can anyone show me? PLEASE!!! when I run it... it gives … | |
i need to integrate a available domain checker in my php email form. but this seems to be complex for me as i am a beginner in PHP coding. i want to integrate it in a text field, like this: <input type="text" name="domainname" /> so, a user can check for … | |
| I have a php/mysql project. When the admin deletes a customer from the database on the form I need the confirm box to display the customer row that they want to delete as well as the message. Here is current confirm box with a message <script type = text/javascript> function … |
i have 3 selectlists selectlist1 ---> option1,option2,option3 when user selects option2 , other 2 selectlist should show up for option2 only, selectlist2 ---> male,female selectlist3 ---> city1,city2,city3. does anyone has the idea how can i do that ? | |
Im using the following query with LOAD DATA INFILE: "LOAD DATA LOCAL INFILE 'file.csv' INTO table mgap_export FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\n' IGNORE 3 LINES (@dummy,@dummy,@dummy,@dummy,Full_Name,gt_accountMgrID,Email_Address,mgap_ska_id,@gtdashboardLink, @gt_rankingLink, @gt_analyticsLink) SET gtdashboardLink=CONCAT('http://www.url.com/logind.php?id=',gt_accountMgrID), SET gt_rankingLink=CONCAT('http://www.url.com/logind.php?id=',gt_accountMgrID)"; If I remove the last variable the query works just fine, … | |
Hello EveryOne I confuse of bellow code <?php if($True == 0){ ?> <a href="/#"> Apply </a> <?php}else{?> <a href="/#"> Aleary applied </a> <?php }?> **Given Me Error** `Parse error: syntax error, unexpected '}'` **BUT Solved It**: When i replace '<?php' **else** to '<?' it could be solved. But why it … | |
Hi, I have a very complex query that is using mysql functions and complex logic. I have done indexing of important fields that needs to be done but I am having issue that the records keep on duplicating and I am using group by to remove this issue but my … | |
I have this database and I need to display data from koncerti (koncertnaziv,karte,mesto,datum) based on what grupanaziv is sleceted before, and grupanaziv is in different table called grupe, grupa_id from koncerti has same id as id from grupe, so that is connected in that way, so I need to match … | |
| Sup peeps, I'm building an ultimate CMS and I am looking into building a drag and drop menu. I alreadly have the jquery to create the drag and drop items but I was wondering what is the best way to save this to a database. <ul> <li>stuff</li> <li>morestuff</li> <ul> <li>ssstuff</li> … |
I am using the following [sample code](http://www.coderelic.com/2012/01/export-data-from-a-database-to-csv-excel-with-php/) to export a query to a csv file: <?php // Connect and query the database for the users $conn = new PDO("mysql:host=localhost;dbname=mydatabase", 'myuser', 'mypassword'); $sql = "SELECT username, email FROM users ORDER BY username"; $results = $conn->query($sql); // Pick a filename and destination … | |
I want to show some mysql results in two different areas... I thought I would do two queries, and show a certain few (1-5) or whatever on one area, and the rest on another, however I need them split even.... how can I do this? I thought about doing something … | |
Am I loosing the plot or is something strange happening here? I have a simple login form (see below), but when I call the page, PHP returns and undefined index error, even though I have coded to say if index is undefined, then die. Am I missing something very obvious … | |
Hi I am working in 2D tool with SVG 2.7.1 , how can I convert the SVG code to SVG coordinated to 3D view using three.js. For creating a scene in 3D I had analysed the tutorial reference .Kindly help me. | |
<?php /* @Author: Hannan_Mondul php( image) 2014 */ if($im = imagecreate(200,200)){ $ba = imagecolorallocate($im,255,0,0); imagerectangle($im,0,0,200,200,$ba); imagejpeg($im); header("Content-Type: image/jpeg"); imagedestroy($im); }else{ throw new exception ("Sorry the GD Libary not set up"); } }catch(exception $e){ echo $e->getMessage(); } ?> | |
->Hi Daniweb-Web Developers. ->I'm using PhP 5.2.5,WAMP 5,MySQL 5. -I'LL TRY TO EXPLAIN IN DETAILS THE WHOLE STORY:- ------------------------------------------------- 1: I've declared a global variable dynamic array ALPHABETS_COMBINATION. 2:It is populated with a group of 3 Alpha combination AAA-ZZZ in a function : Generator($ALPHABETS) 3:Once the Buttonn click event is … | |
I need to rebuild my website from scratch as its using old mysql script in pages and based on xmb forum software as a logon system and to connect to my sports database pages. Can someone suggest the best option from here to either update to mysqli or PDO. So … |
The End.