39,393 Topics

Member Avatar for
Member Avatar for Sydique

Am creating an Online house rent system that will enable tenants to pay house rent online,check statements,a caretaker to write reports,landlord to write statements,add new tenants. I welcome all your ideas on how to go about it.The database requires either Ms-Excel or Mysql.

Member Avatar for diafol
0
101
Member Avatar for shapeape

Hi, I'm building a basic log in system just to learn the ropes of PHP. Currently I'm a bit stuck. I'm trying to get a connection through a function file sorted for the rest of it to work but it's proving far more complicated then I thought. This is my …

Member Avatar for pritaeas
0
180
Member Avatar for devianleong

I've a working code and display well. Now I want to integrate into html code but I don't know how to add a custom div into it. Here's my php function hasChild($parent_id) { $sql = "SELECT COUNT(*) as count FROM w_category WHERE ParentID = '" . $parent_id . "'"; $qry …

Member Avatar for diafol
0
271
Member Avatar for cereal

Hello, I've an array with different type of values: int, null, strings, arrays. I'm trying to remove nulls and empty strings, but I want to save ints, even when it equals to zero, so I tried with `array_filter()`, by default it will remove `0`, `''` and `null`, but by applying …

Member Avatar for cereal
2
435
Member Avatar for showman13

Good Afternoon. I've been sporatically researching this for weeks, but haven't been able to locate any 'CLEAR', 'PRECISE' direction on creating .csv files from a query of multiple tables. What I need to be able to do is gather the relavent information from the tables and combine it into a …

Member Avatar for showman13
0
465
Member Avatar for Shikha_1
Member Avatar for ananthapriya
-7
217
Member Avatar for saadi06

Hi, I am using smtp for sending the email and attachments from my system. What I want to accomplish is that I should be able to send information in an encrypted form so that the message cannot be tempered. I am using https for sending the emails. But is there …

Member Avatar for pritaeas
0
563
Member Avatar for orangeoctane

Hello everyone. First post... I have a strange problem... used to be that Internet Explorer 6 would open PHP files that I had stored on my local machine (which is not a server). I would usually get some kind of "pop-up" warning from IE asking me if I wanted to …

Member Avatar for Simon_2
0
1K
Member Avatar for ej.p.lopez

hello i have a running code the only question is the get function wont get the field i type here's my whole code index.php <?php include_once('includes/dbConnect.php'); ?> <?php $searchText = htmlspecialchars ($_GET['q']); $action = (isset($_REQUEST['action'])&& $_REQUEST['action'] !=NULL)?$_REQUEST['action']:''; if($action == 'ajax'){ include 'pagination.php'; //include pagination file //pagination variables $page = (isset($_REQUEST['page']) …

Member Avatar for Zagga
0
1K
Member Avatar for lloydsbackyard

i have this code so to hinder from access when the url is directly type i understand BASEPATH is a constant but can anyone give me idea on how to cofigure the basepath? do i need to create a constant folder and constant php file? if (! defined('BASEPATH')) exit('No direct …

Member Avatar for almostbob
0
187
Member Avatar for Shikha_1

Following function implements a way to find all the indices of a given $needle in $haystack. There is at least one bug in the implementation. Find and fix the bug(s). <?php function findAllIndices($haystack, $needle) { $indices = array(); while ($index = strpos($haystack, $needle)) $indices[] = $index; return $indices; }

Member Avatar for almostbob
-5
120
Member Avatar for asaidi

Hi i want to display if possible a field from another table table a has group_id linked to group table..in edit it shows me the group_id i want to display near it the libelle of groupe i m just starting in cakephp please fine the code <div class="acnopens form"> <?php …

Member Avatar for diafol
0
161
Member Avatar for code_rum

I am using IIS for php. I want to confirm whether it uses fastcgi or cgi I used php_sapi_name() and it gives "cgi-fcgi" I don't know what does it mean Is there any other way to find the same

Member Avatar for code_rum
0
323
Member Avatar for klemme

Hi all, I have this script sending an really simple html email. It works fine, but I cant seem to preserve the line breaks when sending the email to the client. Any idea how I can preserve line breaks? Thought nl2br would do the trick.. // Data der skal emailes …

Member Avatar for klemme
0
339
Member Avatar for wastedkill

So here is what I want. if (tracks, the db) (user_id, the row) for '".$_SESSION['user']['id']."' = equal (tracks, row) in (users, the db) for '".$_SESSION['user']['id']."' exit else update (users, the db) (tracks, the row) to match. This isn't the script as I don't know where to start but I am …

Member Avatar for diafol
0
167
Member Avatar for ej.p.lopez

![87c254267ddc1a1686974c863a7bf415](/attachments/large/4/87c254267ddc1a1686974c863a7bf415.png "87c254267ddc1a1686974c863a7bf415") ![282a041b1e7ea8ddc9240fe7bb9989fe](/attachments/large/4/282a041b1e7ea8ddc9240fe7bb9989fe.png "282a041b1e7ea8ddc9240fe7bb9989fe") hi everyone can anyone give me a coad for the form of search inside the php i mean they belong in the same page ? here's my php command for the pagination and results //Count the total number of row in your table*/ $count_query = mysql_query("SELECT …

Member Avatar for ej.p.lopez
0
457
Member Avatar for a.arjunvasan

I am getting the following error on my home page. I am new to php code and this one is looking pathetic on my wordpress site. any help would be highly appreciated. The error is as below: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given on line 39 …

Member Avatar for a.arjunvasan
0
403
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
367
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
362
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
610
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
242
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
386
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
552
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
139
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
98
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
263
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
190
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
195
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
169

The End.