Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~9K People Reached
Favorite Tags
Member Avatar for kutchbhi

I am trying to connect and fetch messages of my hosting's email address using imap_open(), but its throwing errors. $server = '{mail.booksnearby.in:143/imap/ssl/novalidate-cert}INBOX'; $imap_connection = imap_open($server, $login, $password); $mailboxinfo = imap_mailboxmsginfo($imap_connection); $messageCount = $mailboxinfo->Nmsgs; The above throws this error: Array ( [0] => Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. If …

Member Avatar for blocblue
1
839
Member Avatar for kutchbhi

I have only coded 2 sites till now, first one in plain php (wall of php intermingled with js, html , super messy) and the other in codeigniter(much better as far as separating display with logic is concerned) now I have to code a website for a friend (designer). The …

Member Avatar for diafol
0
113
Member Avatar for kutchbhi

My table: $query = "CREATE TABLE categories ( id int(11) NOT NULL auto_increment, name varchar(100) NOT NULL, parent int(11) NOT NULL, visible tinyint(11) NOT NULL DEFAULT 1, PRIMARY KEY (id) )" ; The query: SELECT t1.id ,t1.name FROM flipkart_categories AS t1 LEFT JOIN categories as t2 ON t1.id = t2.parent …

Member Avatar for adam_k
0
135
Member Avatar for kutchbhi

Say i have a list of items on a page . Now this list can be filtered by price ( in a simple POST form ) OR by discount (in another form element) OR by category links in the sidebar. Now if the user first filters by price and then …

Member Avatar for vibhaJ
0
135
Member Avatar for kutchbhi

This should be simple , but the explanations in books and tutorials don't make sense to me. what exactly does the clear property do? I want to know exactly ,EXACTLY what it does. Take for example this code: p.one { width: 200px ; float: left ; clear:both; } p.two { …

Member Avatar for Philippe.Lahaie
0
108
Member Avatar for kutchbhi

Hi, I am trying to implement a categories/subcategories feature for navigation. For this I am using the The adjacency model as described [url=http://sqllessons.com/categories.html]Here[/url] Description(copy pasta): This is the categories table: [CODE]create table categories ( id integer not null primary key , name varchar(37) not null , parentid integer null , …

Member Avatar for kutchbhi
0
348
Member Avatar for kutchbhi

This is the project I am reading from . [url]https://github.com/sasatomislav/PHP5-OOP-Cart[/url] [CODE] class Cart { <snip> private function __construct() {} /** * Fetch Cart instance * * @return Cart */ public function getInstance() { if (NULL === self::$_instance) { self::$_instance = new self; } return self::$_instance; } } <snip> // initialize …

Member Avatar for pritaeas
0
262
Member Avatar for spowel4

I know this has been asked many times before so I apologize but here's the php file that's generating the error on the "if($stmt = $this->conn->prepare($query))" line: [CODE]<?php require_once 'includes/constants.php'; class Mssql { private $conn; function __construct() { $dbServer = DB_SERVER; $dbName = DB_NAME; $conn = new PDO( "sqlsrv:Server=$dbServer;Database=$dbName", NULL, …

Member Avatar for spowel4
0
6K
Member Avatar for scarcella

Hi everyone, I am wanting to know if there is such a thing like the mySQL SELECT WHERE but in array's. I have this array: [CODE]<?php $array = array( [1] = array( ['test'] = '1', ['test2'] = '2' ); [2] = array( ['test'] = '4', ['test2'] = '2' ); ); …

Member Avatar for scarcella
0
210
Member Avatar for kutchbhi

user types text in a text box, the text is sent to a php script with ajax. The response is used to populate a select menu. I am getting a xmlResponse is null error with some browsers. Steps to recreate problem: 1. Goto [url=http://kutchbhi.x10.mx/choose.php]Example page[/url] , in firefox/chrome. 2. type …

Member Avatar for kutchbhi
0
150
Member Avatar for kutchbhi

The situations: I have text in a var, that I am assigning to the innerhtml of a 'p' tag . The text has whitespace at the end. The problem: The last whitespace isn't rendered, by p tags. IT is ignored. Is there a tag other than the pre tag, that …

Member Avatar for Troy III
0
174
Member Avatar for kutchbhi

The following sets a keydown event, preventing further input when a condition is achieved. [CODE]<textarea rows="5" cols="30" onkeydown="return checkLength(this)"></textarea> <script type="text/javascript"> var maxLength = 30; function checkLength(elem) { if (elem.value.length == maxLength) { return false; } return true; } </script> [/CODE] IN the above I don't understand this part: onkeydown="return …

Member Avatar for Troy III
0
122
Member Avatar for kutchbhi

I made a classified site and am concerned that my database design amd sql queries may not be optimal. Need your suggestions. This is how the site works now: The user selects his colony, and my app shows posts made from the colony and posts made from nearby colonies. 2 …

0
79
Member Avatar for kutchbhi

[CODE] <script type="text/javascript"> aLabe = document.getElementById('alabel') ; function init(){ aLabe.innerHTML= "asdf" ; } </script> <body onload="init()"> <div id="container"> <div id="header" > Google maps Intro 1</div> <div id="alabel">Yo!!</div> <div id="map_canvas"></div> </div> </body> [/CODE]In the above,line 4 throws an aLabe is null error. Why is this? isn't aLabe a global var which …

Member Avatar for kutchbhi
0
148
Member Avatar for kutchbhi

Trying to make a form's background transparent, without it losing its ability to receive clicks. this.Opacity makes the whole form transparent (not just the background [CODE] BackColor = Color.Red; TransparencyKey = BackColor; [/CODE] makes the background of the form transparent and click through-able. I want the form to be transparent …

Member Avatar for serkan sendur
0
325
Member Avatar for kutchbhi

Currently I am reading this book -> Microsoft - Programming Windows API 5th . But it was released in 1998 . The very first Hellowin program in this book seems incompatible with xp sp3 (it didn't mention something that needed to be #defined). So can someone point me to a …

Member Avatar for marco93
0
139