39,326 Topics

Member Avatar for
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
336
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
135
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
469
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
163
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
418
Member Avatar for hriti

hello everyone i am having problem while creating zip file..when i use static images then it works well...but when i coonect it wiTH database it stops working.. can anyone please tell me.... my code is: ` <?php include("include/connection.inc.php"); $error = ""; //error holder if(isset($_POST['createpdf'])){ $post = $_POST; $file_folder = "./store/product/images/"; …

0
122
Member Avatar for shella

Ciao guys, I'm getting mad with this issue. I have a script in a WP theme that it's supposed to retrieve some data. It works ok but I need it does the thing in alphabetic mode and this seem to be... quite hard! I dig into the web looking for …

0
150
Member Avatar for My question

I am trying to retrive value from database in dropdown and to display the datas related to the selected option. I am new to php, Please Help me to write php code for the above .

Member Avatar for My question
0
295
Member Avatar for 68thorby68

Hi, I'm thinking of using the htaccess file on my apache server to add a layer of security to the payment processing on my site. I am considering the 2 actions below, not sure how yet, but thats where the trial & error & learning begins. 1. rewrite the url …

Member Avatar for iamthwee
0
325
Member Avatar for patk570

I have a url that is `filemgr.php` when a user navigates to lower levels of said file manager it shows up as `filemgr.php#userfiles/username/Images` Is there a way to just have it show up as `filemgr.php ` with out the rest of the url showing? I am open to .htaccess editing …

Member Avatar for diafol
0
339
Member Avatar for rjusman90

$abc =$_POST['LinkWidth']; $link = $abc; echo $link; if ( $link == "page" ){ die('inputbox validate[required]'); } else if ($link =="otherlink"){ die('inputbox validate[required]'); return; }

Member Avatar for DJBirdi
0
149
Member Avatar for SimonIoa

Hello i cant understand what this variables mean havent seen them before $ser=$_SERVER['HTTP_HOST']; $ref=$_SERVER['HTTP_REFERER']; $url = $_SERVER['SCRIPT_NAME']; $host = $_SERVER['SERVER_NAME']; $url = $_SERVER['SCRIPT_FILENAME']; $ura = $_SERVER['SCRIPT_NAME']; $host = $_SERVER['SERVER_NAME']; this script connects with its own database but i want it to connect to a database that i have already. i …

Member Avatar for chrishea
0
138
Member Avatar for Priti_P

Hello , I have an 2 dimetional array: Array ( [0] =>Array ( [0] => add1 [1] => add2 [2] => May 2014 [3] => ascascascasc [4] => 160 ) [1] =>Array ( [0] => Framework [1] => hii [2] => May 2014 [3] => ascascasc [4] => 161 ) …

Member Avatar for diafol
0
318
Member Avatar for eaanscl@ssm@te

<?php session_start(); // JSONURL // function get_html($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_FAILONERROR, 0); $data = curl_exec($ch); curl_close($ch); return $data; } function get_json($url) { $ch = curl_init();

Member Avatar for Tpojka
0
152
Member Avatar for rjusman90

<td>FooterMenu</td> <td><input type="checkbox" name="FooterMenu" value="1" <?php if($FooterMenu == 1): ?> checked="checked" <?php elseif($FooterMenu != 1):?> checked="unchecked" <?php endif;?>/> </td>

Member Avatar for Borzoi
0
178
Member Avatar for centenond

foreach($vip_users as $vip_user){ $extra_info = fetch_profile_pic($vip_user); /* in this function it connect to mysql db */ $profile_picture[$vip_user] = $extra_info['ProfilePic']; } its seems like a bad idea to me , what do u guys think? and how can do this in a proper way Thanks

Member Avatar for centenond
0
174
Member Avatar for Priti_P

Hi, I have an array as: $data = array ( array ('add1','add2','May 2014','ascascascasc',160), array ('Framework','hii','May 2014','ascascasc',161 ), array ('Framework','test framework 1','May 2014','asdasdasd',159 ) array ('Framework','test framework','May 2014','asdasdasd',149 ) array ('OS','other OS skill','May 2014','ascascASC',162 ), array ('Databases','test db skill 3','May 2014','bnmbnmbnm',158 ), array ('Databases','test db','May 2014','bnmbnmbnm',18 ), ); I want to …

Member Avatar for Alberto Bucur
0
161
Member Avatar for EJL242000

Hello, I am trying to create a table in MySQL with the following data: $sql = "CREATE TABLE $uID ( Col0 int(10) NOT NULL auto_increment, Col1 varchar(255) NOT NULL, Col2 varchar(255) NOT NULL, Col3 varchar(255) NOT NULL, PRIMARY KEY(Col0) )"; However, I keep getting a syntax error. Can someone pls. …

Member Avatar for cwarn23
0
444
Member Avatar for david.roun.7

Ok, so here is the CSS code in an external sheet: #header{ position:fixed; width:100%; height:15%; } #hedr{ position:fixed; height:5%; width:6%; top:5%; left:30%;} #nme{ position:fixed; font-size:400%; top:3%; left:10%; } Here is the php document: <!DOCTYPE HTML> <html> <head> <meta name="keywords" content="Roun, David Roun, Rounsworld, Heather Roun"> <meta name="description" content="Personal website"> <meta …

Member Avatar for david.roun.7
0
2K
Member Avatar for vishalonne

I have 2 drop down. In 2nd drop down items are added dynamically based on 1st drop down selection. Now I want selected value of 5th subject to store in MySQL table. I am not able to get the value of option which is selected in 2nd drop down. How …

Member Avatar for DJBirdi
0
293
Member Avatar for [NOPE]FOREVER

I have a php/mysql project and I am currently trying to display a table into an html table through PHP how ever Only the headers are getting returned not the actual table data, here is my query plus html table <?php $result = mysql_query("SELECT * FROM store"); echo"<table border = …

Member Avatar for [NOPE]FOREVER
7
187
Member Avatar for navaidstech

Hi guys... I'm fairly new to PHP but do have experience with other languages. Having an issue with sharing variables between multiple PHP scripts on the same page. Here is the deal: The page in question is called by another page, which then passes a variable in the URL string, …

Member Avatar for navaidstech
0
6K
Member Avatar for zzmrzz

Hi there follow coders! I just found this awesome login hover menu...Thing. But can anyone make a code, to me, that shows me how to make that kind of hover... The website i know they use it is: http://www.badlion.net/ It is a Minecraft server website, if you wonder. Please put …

Member Avatar for JorgeM
0
249
Member Avatar for ankit1122

i have an array names skills in which there are various skills now i wanna create aquery like select * from tablename where skills regexp ""skill1" and skills regexp "skills2" and skills regexp "skills3"; how could i do this.. upon defining a string for concatenation php shows error....`$s=select * from …

Member Avatar for broj1
0
353
Member Avatar for poochiteap

I want to create an archive list like this: 2014 -March -Feb -Jan *Post 1 *Post 2 2013 -November *Post 1 My config file is: <?php ob_start(); session_start(); //database credentials define('DBHOST','127.0.0.1'); define('DBUSER','name'); define('DBPASS','pass'); define('DBNAME','sample'); $db = new PDO("mysql:host=".DBHOST.";dbname=".DBNAME, DBUSER, DBPASS); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); //set timezone date_default_timezone_set('Europe/London'); ?>` the table I m …

Member Avatar for broj1
0
1K
Member Avatar for hanspeare

Hello PHP Friends, I think this is just if else statement problem but im kinda lose to it. The whole code is succesful in deleting the data from database the problem is i wanted to put a script that remind the user if he/she really sure to delete the data. …

Member Avatar for broj1
0
313
Member Avatar for jorgeftz

$result =0; if ($id_marca!=1) { $result = $result + $vl_max*$pares; // id_marca = 22 [ 38 pares * 1.451 = 55.14 ] } elseif ($id_marca=='1'){ $result = $result + $vl_min*$pares; ///id_marca = 1 [ 36 pares * 1.392 = 50.15 ] } else { $result =''; } $result; Hello, I …

Member Avatar for diafol
0
277

The End.