39,320 Topics

Member Avatar for
Member Avatar for nadiam

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

Member Avatar for nadiam
0
490
Member Avatar for iamthwee

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.

Member Avatar for Dani
0
390
Member Avatar for Hannan_2

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

Member Avatar for diafol
-2
246
Member Avatar for AdriftUniform

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

Member Avatar for garyrichard
0
16K
Member Avatar for nevek

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 …

Member Avatar for nevek
0
167
Member Avatar for pooja.naik.1297
Member Avatar for momonq1990

$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

Member Avatar for Borzoi
0
242
Member Avatar for LRNPHP

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 …

Member Avatar for LRNPHP
0
220
Member Avatar for My question

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 …

Member Avatar for pritaeas
0
162
Member Avatar for vizz

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

Member Avatar for pritaeas
0
78
Member Avatar for [NOPE]FOREVER

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

Member Avatar for [NOPE]FOREVER
7
7K
Member Avatar for azapovjednik

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 …

Member Avatar for azapovjednik
0
1K
Member Avatar for rakibtg

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 …

Member Avatar for HelgeSverre
-2
1K
Member Avatar for [NOPE]FOREVER

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 …

Member Avatar for hericles
7
508
Member Avatar for junaid_5

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 ?

Member Avatar for hericles
0
170
Member Avatar for Benjamin_11

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

Member Avatar for Benjamin_11
0
216
Member Avatar for ravi142

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 …

Member Avatar for veedeoo
0
289
Member Avatar for saadi06

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 …

Member Avatar for veedeoo
0
107
Member Avatar for filipgothic

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 …

Member Avatar for filipgothic
0
203
Member Avatar for iamthwee

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

Member Avatar for iamthwee
0
653
Member Avatar for Benjamin_11

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 …

Member Avatar for iamthwee
0
302
Member Avatar for Syntax12

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 …

Member Avatar for zein1212
0
335
Member Avatar for 68thorby68

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 …

Member Avatar for zein1212
0
335
Member Avatar for saravananosiz

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.

Member Avatar for diafol
0
75
Member Avatar for Hannan_2

<?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(); } ?>

Member Avatar for diafol
0
134
Member Avatar for Bile

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

Member Avatar for Bile
0
406
Member Avatar for mark.giles.14

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 …

Member Avatar for pritaeas
0
468
Member Avatar for Rajan Malotiya

error is : **mysql_fetch_array() expects parameter 1 to be resource, boolean given in line 28** <? $result = mysql_query("SELECT * FROM chart1"); while ($row = mysql_fetch_array($result)) { echo $row['price']; } ?>

Member Avatar for pritaeas
0
162
Member Avatar for fireburner29

Hi there, I want to integrate the sms api in osclass after the user posted the advertisement or after registering his profile. I have purchased the sms api . can you please help me to write script for sms alert. Thanks

Member Avatar for pritaeas
0
1K
Member Avatar for My question

How do i write php code for getting field from mysql as dropdown in php, and, also to display the related records of selected option in dropdown from database

Member Avatar for fireburner29
0
416

The End.