class Competitor
{
    public $CompetitorID;
...

PHP Make a repository DRYer

by Ants, December 21, 2011 23:59, No refactoring, tagged with mysql, DRY, repository

I need suggestions on how t...

F9a9ba6663645458aa8630157ed5e71e Talk
select distinct(user_id) from facebook_post_comments where page_id =some_page_id and user_id in (select distinct(user_id) from facebook_post_comments where page_id = some_other_page_id)

Python MySQL O(n^2)

by https://www.google.com/accounts/o8/id?id=AItOawlXyCfS3cPSoWLo635rrzVPpmDr0-DUdus, October 20, 2011 12:54, 2 refactorings, tagged with sql, mysql, short clean ruby

Hello! Trying to run this q...

55502f40dc8b7c769880b10874abc9d0 Talk
// Copyright (C) 2010 Simon Holywell
...

C Code review for a MySQL UDF...

by Treffynnon, June 01, 2011 07:58, 1 refactoring, tagged with mysql, memory, C, udf, ssdeep

I have written a small MySQ...

715a4bd349679b00b4659a3c136d1f3e Talk
//Removed the 'Javascript' as well as 'css' styles here bcs tht wont be needed...
//datas getting inserted fine on command line and on php-editor preview, but not on the localhost server.
//"Apache/2.0.54 (Win32) Server at localhost Port 80" this is the bottom line msg displayed on my browser.
...

PHP Please help me

by phptomysqlhelpmeplease.blogspot.com, February 27, 2011 10:02, 3 refactorings, tagged with help, php, mysql, apache, please, me, browser, 8080, 80 port

I created an html form to g...

55502f40dc8b7c769880b10874abc9d0 Talk
#insert new record if it dosent already exist
             if !dbh.select_one('SELECT Salenm FROM Auctions Where Salenm LIKE "%' + c.attributes["href"][/....$/] + '%"')
                dbh.do("INSERT INTO Auctions (Salenm, Date, Location) VALUES (?, ?, 1)", 
...

Ruby Insert new record if it dos...

by bain19.myopenid.com, June 24, 2010 04:33, 1 refactoring, tagged with mysql, if, select, bain19, sql injection

Is there a safer way to-do ...

642d333608cc3483f64dba38cb81bdd2 Talk
<?php
function clean($string){ 
...

PHP Register/Login Script

by penaf.myopenid.com, March 12, 2010 23:45, 114 refactorings, tagged with php, mysql, register, login

Hello People,

This websi...

84c8afb06eeacbf350b5b42cb795f195 Talk
<?php
/**
 * Database: MySQL connection
...

PHP MySQL database class

by lukas, September 02, 2009 20:20, 5 refactorings, tagged with php, mysql, database

This is a class to do all t...

A54000a44341dc35ab30a332a49784d3 Talk
<?php

public static function addUser($username, $email, $password)
...

PHP User Registration Function

by gwrtheyrn, July 24, 2009 20:05, 4 refactorings, tagged with php, user, mysql, registration, real_escape_string

Is this user registration f...

D3bd7339e1941bc25c05110b69a82721 Talk
<?php

if (!defined('ANTIHACK'))
...

PHP php mysql wrapper begginer

by fantomel, April 03, 2009 14:33, 5 refactorings, tagged with php, mysql, mysql wrapper, wrappers, wrap, simple

Hello ppl i'm new to php\\O...

8bdcb8b82adf1dd562970b22d3458d7d Talk
<?php

abstract class mySQL // abstract => cannot be instanciated
...

PHP MySQL original PHP 5 wrappe...

by TiTi, August 01, 2008 20:44, 10 refactorings, tagged with object, php5, mysql, static, wrapper, const, student, titi

Typical MySQL wrapper writt...

1e6b9d50678a0cc32d98aa1dd1ec3846 Talk
function db_cache_2($query)
 {
  // Query cache table
...

PHP DB Cache

by ellisgl.myopenid.com, January 14, 2008 22:48, 8 refactorings, tagged with php, cache, mysql, update

It's a DB caching scheme th...

8bba46dba9043c254e6eef1aa664e6f0 Talk