39,320 Topics

Member Avatar for
Member Avatar for Venom Rush

I have no previous knowledge of connecting to a web service using JSON and I haven't been able to find any examples online that clearly explain how I would go about connecting using authentication. I have the following documentation: Credential (type: Credential) - An object used to authenticate the client …

Member Avatar for Szabi Zsoldos
0
365
Member Avatar for devianleong

Currently I've a database table call category: Table attribute: id,parent_id,name How can I make it display in the following structure? <li class="dropdown level-0"><a href="#">electronics<img src="images/dropdown-arrow.png" alt="" /></a> <ul> <li class="level-1"><a href="#">Televisions</a> <div class="level-1-div clearfix"> <ul> <li class="level-2"><a href="catalog.html">Projectors</a></li> <li class="level-2 last-level-2"><a href="catalog.html">DVD Players</a></li> </ul> <div class="productImageDiv"> <a href="catalog.html"><img src="images/product-image2.png" alt="" …

Member Avatar for devianleong
0
334
Member Avatar for joshmac

I have a query in which I insert data with json_encode(), and I am trying to receive that data with json_decode(), however, I get an error message that is something like this: stripslashes() expects parameter 1 to be string, array given in I have this database table that has about …

Member Avatar for joshmac
0
603
Member Avatar for gogs85

Dears, how to get div or content informations text and pictures from another website and show in my webpage? Please help!

Member Avatar for mrvijayakumar
0
240
Member Avatar for nazmule27

Foloowing is my out put of data, Now I need to show in label the 'amout' and 'trxID'. Please help me. { "transaction": { "amount": "29", "counter": "1", "currency": "BDT", "receiver": "01811700563", "reference": "a", "sender": "01711643998", "service": "Payment", "trxId": "270413065", "trxStatus": "0000", "trxTimestamp": "2013-07-02T00:00:00+06:00" } }

Member Avatar for mrvijayakumar
0
178
Member Avatar for klemme

Hi all, I would like to get my head around how I can create a singleton db pattern. What I have now works though, but as I know its not a singleton - My idea is this: * I would like a class that holds all config information and them …

Member Avatar for pritaeas
0
383
Member Avatar for Webville312

Hullo, I have hit a snag when I got to the point where I draw a bar graph. I want to have a bar graph based on the database records, but I have no idea on how to do it. I tried searching online, but to no avail. I only …

Member Avatar for broj1
0
550
Member Avatar for mangel.murti

i am building a message system for website.i have two table one store user_detail and other store message sent to each other users. you can see main.jpg file where inbox sent etc.. will be display and action takes accordingly. $query='select m1.id, m1.title, m1.timestamp, count(m2.id) as reps, user_detail.user_id as userid, user_detail.username …

Member Avatar for diafol
0
136
Member Avatar for saadi06

Hi, I am creating an internal messaging system.In the system users can communicate with each other and send messages internally. The functionality is working fine and I am using AES encryption for encrypting the message.I am also using SSL for sending the messages. Now I want to implement the message …

Member Avatar for veedeoo
0
95
Member Avatar for metaface

Hello, I am familiar with the get_defined_functions() function as a way of listing all of the user defined functions. Is there a way with PHP to also determine from which file the user function was defined? Consider the following example. Assume there are three files: - index.php - user_functions1.inc.php - …

Member Avatar for veedeoo
0
254
Member Avatar for dany12

I have strated this thread so that we can all share our favorites ide's for PHP My personal favorites are : Notepad++ Netbeans PHP Aptana OK share your favorites and see who will win you can add any php editor you like mac linux android windows it dosen't matter Let's …

Member Avatar for diafol
0
187
Member Avatar for subrata_ushasi

Hi , I have an website from where I want to view image using any image viewer . Images are uploaded in cloud server from where I want to show images by clicking on a link . Images are downloaded but taking much time . What I want is to …

Member Avatar for almostbob
0
192
Member Avatar for klemme

Hi all, How come this class doesnt connect to the database..? class credentials { private static $config = array(); const DB_USER = 'root'; const DB_PASS = ''; const DB_HOST = 'localhost'; const DB_NAME = 'dev_dcs'; public function __construct() { self::$config['user'] = self::DB_USER; self::$config['pass'] = self::DB_PASS; self::$config['host'] = self::DB_HOST; self::$config['name'] = …

Member Avatar for klemme
0
167
Member Avatar for Rahul47

Hi friends, recently i am learning php with your help and online tutorials. I googled for anatomy of GET and POST but didnt find satisfaction. So what is working behind GET and POST Methods ? How they work between client(browser) and Server ? Thanx.

Member Avatar for Rahul47
0
533
Member Avatar for bradly.spicer

Hey guys, Got this wordpress script which is bugging out for me :/ function JobBoard_admin_add() { ?> <div class="wrap"> <?php $con=mysqli_connect("localhost","profiled_job","","profiled_jobboard"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $sql="INSERT INTO details (Employer, LearningProvider, ContractedProvider, LearningDeliverySite, VacancyDescription, VacancyTitle, EmployerDescription, VacancyLocation, NoVacancies, VacancyRefNumber, …

Member Avatar for broj1
0
246
Member Avatar for uncat_myself

I have table which has the table field name: - Start Date - Duration Count (e.g. 1, 2 or 3) - Duration Name (e.g. Daily, Monthly, Yearly) - End Date How do I code in PHP to calculate the end date from a particular start date? E.g. The start date …

Member Avatar for diafol
0
344
Member Avatar for Octavian_1

I have the following code that is working but i need further functionality. The code shows the payments made and is based on two tables. The payments table that has the following fields mID, type (account type), dayentered(date when the money was donated) and the members table has the following …

Member Avatar for Octavian_1
0
260
Member Avatar for saadi06

Hi, I have a table in database and I want to create a hash value string that will be based on the entries of that table. Is it possible in php that I can create sha1 value of the whole table and how can I compare the sha1 value that …

Member Avatar for cereal
0
215
Member Avatar for Rahul47

What is possibly wrong with following script that caused it to scream ? <!DOCTYPE html> <html> <head> <script> function formSubmit() { document.getElementById("form1").submit(); } </script> </head> <body> <form id="form1" action="test.php" method="POST"> Name: <input type="text" name="name" ><br/> <input type="button" onclick="formSubmit()" value="Submit" /> </form> <?php $name1=$_POST['name']; echo "<br> Your name is $name1 . …

Member Avatar for JorgeM
0
176
Member Avatar for brandon66

Hello, I am wondering how i would connect PHP to Microsoft Exchange? I have a form set up that when it gets submitted i want it to be emailed to a certain person the problem im having is im not sure how i would get the connection to exchange.

Member Avatar for brandon66
0
11K
Member Avatar for aVar++

So I tried to download browscap.ini and when I find the browser it just says 'default browser'. I tried all of these: http://tempdownloads.browserscap.com/ and restarted apache but nothing happened, help?

Member Avatar for aVar++
0
214
Member Avatar for gogs85

How to show on my website ,content from this web page (cdkeyshere.com) i try with simple DOM code but show oonly text of liks of image i need image and text and links?How to do that please help?

Member Avatar for pritaeas
0
58
Member Avatar for lloydsbackyard

this is not working if this is coded in a file located more than 2 subdirectories.. header('location: admin.php'); i want to go back to the file to the main page...in the root directory..

Member Avatar for pritaeas
0
167
Member Avatar for wareez

i have problem in this script below. the login box and the registration form was unable to connect to the database: after entering my username and password the respond from my login.php is: SELECT * FROM members WHERE email = '' AND password = ''Query failed below is my login-exec.php …

Member Avatar for cereal
0
122
Member Avatar for bojan123

Hi, I have a problem with PHP error is: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4320001 bytes) in /home/explorer/public_html/secure/foto/libs/upload/Image.php on line 480 Image.php code > http://pastebin.com/Wu8cHYUx Please help

Member Avatar for bojan123
0
247
Member Avatar for mmcdonald

Hi all, I've been playing around with PHP for a while now and never really studied hardcore (Just used it as best as I could on a whim) but I've now decided to sharpen the skill and get much better. I'm playing around with my first class and would like …

Member Avatar for mmcdonald
0
507
Member Avatar for spluskhan

Gyz i have some serious prob my code. if you find any error plz correct me . My code for Pay Fees (Update) <div id="wb_Form1" style="position:absolute;width:365px;height:270px;"> <form name="update" method="post" action="./Update_Fess.php" id="Form1"> <div id="wb_Text7" style="position:absolute;left:10px;top:15px;width:104px;height:16px;z-index:1;text-align:left;"> <span style="color:#000000;font-family:Arial;font-size:13px;">ISPID#:</span></div> <input type="text" id="Editbox1" style="position:absolute;left:124px;top:15px;width:198px;height:23px;line-height:23px;z-index:2;" name="ISPID" value=""> <div id="wb_Text9" style="position:absolute;left:10px;top:45px;width:104px;height:16px;z-index:3;text-align:left;"> <span style="color:#000000;font-family:Arial;font-size:13px;">August 2013:</span></div> <input type="text" …

Member Avatar for pritaeas
0
165
Member Avatar for Priti_P

Hello, I have one query, $sql_query = db_select('Int_schedule_Table', 'c'); //name given as **c** $sql_query->fields('c',array('Int_Schedule_Id', 'cand_id', 'Int_Panel_Id', 'Interview_Date', 'Interview_Time','Interview_feedback_status', 'Interview_for_vacancy', 'hr_name', 'Int_Type')); //took fields from C $sql_query = $sql_query->extend('TableSort')->extend('PagerDefault')->limit(20); // I fired qury here $result = $sql_query->orderByHeader($header)->execute(); // after this I have simply applied my logic of displaying fields on $result. …

Member Avatar for Priti_P
0
143
Member Avatar for bojan123

I have a problem that is probably very easy to solve for someone who knows PHP, and I feel sick for 3 days. Namely, it is a Facebook application for the a photo contest, and when the user is uploading an image, the image uploading, but ejects the following error …

Member Avatar for bojan123
0
301
Member Avatar for rowly

Hello, I am trying to use sso login on my website where my clients can login to a certain company X without signing in again. I spoke to the developers at the company X. they told me that they are using SAML 2.0 for exchanging authentication and authorization. I was …

Member Avatar for rowly
0
2K

The End.