39,326 Topics

Member Avatar for
Member Avatar for <M/>

I am trying to create a way so that I can collect 5 points within the (x,y) format. Then, I want to take those points and plot them on a coordinate plane. I am not sure how to write this, espicially when I am only planning on PHP. I have …

Member Avatar for diafol
0
292
Member Avatar for Man Event

<?php extract($_POST); if (isset($price)){ $xml = "<?xml version='1.0' encoding='UTF-8'?> <TKKPG> <Request> <Operation>CreateOrder</Operation> <Language>EN</Language> <Order> <Merchant>WAYTELL</Merchant> <Amount>".$amt."</Amount> <Currency>566</Currency> <Description>".$prot."</Description> <ApproveURL>http://localhost/integration/approved.php</ApproveURL> <CancelURL>http://localhost/integration/declined.php</CancelURL> <DeclineURL>http://localhost/integration/declined.php</DeclineURL> </Order> </Request> </TKKPG>"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://196.46.20.36:5443/Exec"); curl_setopt($ch, CURLOPT_SSLVERSION, 3); curl_setopt($ch, CURLOPT_VERBOSE, '1'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 5000); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); …

Member Avatar for Man Event
0
335
Member Avatar for everton.retweets

I have been looking around the web today to see how I could get a list of followers from twitter. Apart of the code is - $tweet->get('followers/ids', array('screen_name' => 'YOUR-SCREEN-NAME-USER', 'cursor' => 9999999999)); My Question is, How do I create a loop to display "Screen_name" of all my followers

Member Avatar for diafol
0
218
Member Avatar for poshka

It is the student_info table CREATE TABLE student_info ( s_id varchar(50) NOT NULL, c_id varchar(50) , sem_no varchar(50), quiz_mark varchar(50) , att_mark varchar(50), total_mark varchar(50), exam_mark varchar(50), grade varchar(50), ); insert into student_info values('0006','chem1115','1','15','9',' ','59 ',' '); insert into student_info values('0006','cse101','1','15','9',' ','70 ',' '); insert into student_info values('0006','cse111','1','15','9',' ','49 ',' …

Member Avatar for jstfsklh211
0
153
Member Avatar for Raadha

can any one help me.. how to export a table echoed in php to an excel through a button ??

Member Avatar for diafol
0
92
Member Avatar for jitusorout

I want to take students attendance. i had made a page attendance.php This is coding part <?php $report = mysql_query("SELECT id, name, rollno FROM registered_members") or die(mysql_error()); ?> <form action="attendinsert.php" method="post"> <table id = "attendance" width="567" border="1 bold"> <tr> <th width="83" scope="col">ID</th> <th width="83" scope="col">Student Name</th> <th width="55" scope="col">Student Roll.No</th> …

Member Avatar for diafol
0
1K
Member Avatar for hanspeare

Hello PHP fanatics, The browser shows Warning: mysql_numrows() expects parameter 1 to be resource, array given in C:\xampp\htdocs\a\Student_Home.php on line 13 here is the line 13... the LINE 5 is the LINE 13. include 'Connect.php'; $student_id = htmlentities($_REQUEST['id'], ENT_QUOTES); $result = mysql_query("SELECT * FROM student_information where student_id='$_GET[id]'"); $data = mysql_fetch_array($result); …

Member Avatar for hanspeare
0
338
Member Avatar for gdp

Hi, i am working through Christian Daries PHP and Mysql Ecommerce chapter 4 and am receiving a Fatal Error. [I]Fatal error: Class 'Catalog' not found in C:\xampp\htdocs\myshop\presentation\departments_list.php on line 23[/I] Can anyone please help me with this error? Many thanks in advance. Here is the code from the files associated …

Member Avatar for veedeoo
0
4K
Member Avatar for mathieu67

I have this issue with this little bitcoin ticker code I'm trying to put on my site [bitcoinvalues.net](http://www.bitcoinvalues.net), I used to work pulling the data from Mt.Gox but not anymore cause they shutdown their site. What I want to do now is replacing Mt.Gox with either bitstamp.net/api/ticker/ and blockchain.info/ticker ticker. …

Member Avatar for mathieu67
0
338
Member Avatar for Suzie999

Taking some baby steps in php. Here is my simple code... <?php $data = file_get_contents('http://www.blankwebsite.com'); //$regex = '/<TITLE>(.+?)\<\/TITLE\>/'; $regex = '/TITLE>(.+?)TITLE/'; preg_match($regex,$data,$match); echo "blah"; echo "<br>"; echo $match[1]; ?> The target source is basically this... > <HEAD> > <TITLE>Blank website. Blank site. Nothing to see here.</TITLE> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; …

Member Avatar for Suzie999
0
177
Member Avatar for morfious90

I just have one month for preparation. 1-What to prepare most part in asp.net and php to cover in one month.I have basic knowledge of asp php and c#.sql server 2005/08.Quick way to prepare 2.What type of demo project should i make to show them. 3-How to show my 2 …

Member Avatar for morfious90
0
427
Member Avatar for gogs85
Member Avatar for hriti

hello. i have some problem while uloading song or image in php...if i have a song name like "05.Judaiyaan [MusikMaza.Com].mp3" then it have double dots...and i am unable to retrieve mp3 extension...can anyone help me out???

Member Avatar for diafol
0
161
Member Avatar for filipgothic

<?php //Provjerava da li se korisnik vec ulogovao. Ako nije, ispisace gresku. session_start(); if (!isset($_SESSION['korisnik'])) { die('Za pristup ovoj stranici morate se prvo ulogovati.'); } if ($_SESSION['korisnik'] != 'administrator') { die('Za pristup ovoj stranici morate se prvo ulogovati kao administrator.'); } //Podaci o bazi podataka $hostname = ""; $db_username = …

Member Avatar for filipgothic
0
431
Member Avatar for filipgothic

I am unable to login even tho I provided correct username and password, this is error Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a9752689/public_html/zadatak/index.php on line 79 (I am not sure what this error means, since I don't want to show any rows, I don't …

Member Avatar for filipgothic
0
296
Member Avatar for arafath077

how to display this array.i tried sevaral way.does not working. Array ( [0] => Array ( [date] => Array ( [epoch] => 1401197400 [pretty] => 7:00 PM IST on May 27, 2014 [day] => 27 [month] => 5 [year] => 2014 [yday] => 146 [hour] => 19 [min] => 00 …

Member Avatar for delta_frost
0
270
Member Avatar for ravi142

Hello I have use 'LIKE' query in Model $this->db->like('job_title','keywords','both'); $query = $this->db->get('job_description',$data); which generate Query Output like SELECT * FROM (`job_description`) WHERE `job_title` LIKE '%keywords%' LIMIT 1 **Problem:** How could i remove the LIMIT that automatic generate in Query **OR** can i given Infinite LIMIT in CI Query. Can you …

Member Avatar for veedeoo
0
585
Member Avatar for ankit1122

hello i have a textarea named skills.. i wanna get values from skills and put it in a array ..my code <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <form name="f1" action="wel.php" method="post"> <textarea name="table"></textarea> <textarea name="skills"></textarea> <textarea name="city"></textarea> <textarea name="region"></textarea> <textarea name="country"></textarea> <input …

Member Avatar for babbu
0
168
Member Avatar for ankit1122

index.php code <html> <head> <meta charset="UTF-8"> <title>Our Local site</title> </head> <body> <form action="welcome.php" method="post"> <input id="t1" name="t1"type="text" placeholder="table name"><br> <input id="s1"type="text" name="skill[]"placeholder="skill or item or spec"> <input id="s2" type="text" name="skill[]" placeholder="skill or item or spec"> <input id="s3" type="text" name="skill[]" placeholder="skill or item or spec"> <input id="s4"type="text" name="skill[]" placeholder="skill or item …

Member Avatar for Excizted
0
370
Member Avatar for grant.baker

So I've got a php script that emails me a daily database backup via cron. The script will either output success or failure upon mail->send(), and it always succeeds. However, no email ever is delived *if* the domain name is the same (i.e. www.example.com and myself@example.com), but if I send …

Member Avatar for Borzoi
0
227
Member Avatar for patk570

Hey Guys, I am looking for a file manager that will allow me to customize the top level folder( to the user that is logged in) as the top level. The folder structure should be something like username Folder 1 Sub folder 1.1 Sub folder 1.2 Folder 2 Sub Folder …

Member Avatar for pritaeas
0
472
Member Avatar for hiiiiii@

hi i am working in a project it is about online ordering of food .. I have problem in createing the cart. I have these tables Member-will have the username and password, member id. Fooddetails- will have foodid,foodname,fooddescrtion,foodimage,price. Cartdetails-cart id ,quantity ,price,total,member id, Orderdetails-order id,total,member id. cart details has the …

Member Avatar for hiiiiii@
0
201
Member Avatar for david.roun.7_1

Ok, so here is the problem. Below is a fairly simple code that will count the number of members registered to a site. The html works just fine but the php doesn't display anything unless I do something like `if($result>0)`--- then it will display everything to the right of the …

Member Avatar for david.roun.7_1
0
1K
Member Avatar for seotheo

Hi, Having a bit of trouble with breadcrumbs in Wordpress, the theme has the breadcrumbs feature enabled but only includes the object page and the homepage, I want to add the parent page into the breadcrumbs. Here is the code: <div id="breadcrumbs"> <?php if(function_exists('bcn_display')) { bcn_display(); } else { ?> …

Member Avatar for ko ko
0
270
Member Avatar for skusobny

Hello please i need some help to rewrite this code in PHP to Python i am totally new in this and need this baddly please help if u can. Thanks a lot. <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>phpChart - Basic Chart</title> </head> <body> <?php function array_delete($array, …

Member Avatar for itsnauman
0
193
Member Avatar for filipgothic

Hey guys, I need example of simple site that stores registration of students and for each student shows what class can he/she go depend on what college they are registered to, so its bassicly just words and everything static. The registration page and database is not problem, but checking to …

Member Avatar for filipgothic
-4
6K
Member Avatar for ankit.baphna

Code1: <input id="text" type="text" name="fname" value="First Name" onclick="this.value='';"/> Hi Friends, Code1 - this print in my text box value "First Name". onclick this value gets erased so I can type Name. but if I go to second text box and come back to this text box to modify or add …

Member Avatar for patk570
0
199
Member Avatar for ankit1122

` <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title>Our Local site</title> </head> <body> <form action="welcome.php" method="post"> <input id="t1" name="t1"type="text" placeholder="table name"><br> <input …

Member Avatar for diafol
0
218
Member Avatar for vish akha

Hii, i am new here. I have an assignment and now i am confused so is here anyone who can helpp me. I have created the code lyk- {<?php include 'header.php' ?> <?php include 'connection.php'; ?> <form name="f1" method="post" > <b>COURSE:</b> <select name="select" id="course"> <option value= "MCA" selected > MCA …

Member Avatar for diafol
-1
280
Member Avatar for nishad yasmin

<html> <head> </head> <body> <script type="text/javascript"> function ajaxFunction(choice) { var httpxml; try { // Firefox, Opera 8.0+, Safari httpxml=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { httpxml=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { httpxml=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return …

Member Avatar for diafol
0
124

The End.