Search found 10 matches

by joseazr1987
Tue Jan 11, 2011 1:07 pm
Forum: PHP - Theory and Design
Topic: Just gathering opinions
Replies: 12
Views: 5563

Re: Just gathering opinions

Thanks VladSun

I appreciate your opinion.. I just still Newbie in this of php, i had seen examples for patterns..
but really i can't understanding well.. I'll still studing the theme.

but thank's for the help
by joseazr1987
Tue Jan 11, 2011 12:01 pm
Forum: PHP - Theory and Design
Topic: Just gathering opinions
Replies: 12
Views: 5563

Re: Just gathering opinions

Yes... I know that i use the both..

that's my question.. i just want to know your opinions about which spends less resources..
by joseazr1987
Tue Jan 11, 2011 11:08 am
Forum: PHP - Theory and Design
Topic: Just gathering opinions
Replies: 12
Views: 5563

Just gathering opinions

Well.. i was thinking about the performance of a web system and I found an small interrogant.. I use the OOP and have a class with inheritance to a data base class, and i usually I do in this way include('db.php'); class Car extends db { private $db; function __construct() { $this->db = new db(); } ...
by joseazr1987
Tue Sep 21, 2010 1:17 pm
Forum: General Discussion
Topic: Work on Layers on Php (User, Busines, Data)
Replies: 3
Views: 751

Re: Work on Layers on Php (User, Busines, Data)

Well .. I will share with you my way of working, I do not think it is in layers, but split in three parts, one with the functions mysql_fetch_assc, mysql_query, etc. another do the necessary operations, and elsewhere I show the user This is my Object Data mysql_connect(HOST,USER,PASS); mysql_select_...
by joseazr1987
Mon Sep 20, 2010 2:32 pm
Forum: PHP - Code
Topic: $code in Mysql
Replies: 2
Views: 130

Re: $code in Mysql

The purpose for this is that I'll make a customizable form, and use variables to store the data and is not erased when they give you refresh, and i'm using $sessions[] to do that look this is what I'm doing this is in the database <form name="frmCotizar" method="post" action=&quo...
by joseazr1987
Mon Sep 20, 2010 1:17 pm
Forum: PHP - Code
Topic: $code in Mysql
Replies: 2
Views: 130

$code in Mysql

Hello, I turned out a doubt, want to get php variables in mysql and then call them. this example will say more or less what I mean In MySql tableVars id value 1 $var1 2 $var2 in PHP <?php mysql_connect(DB_HOST, DB_USER, DB_PASS); mysql_select_db(DB_NAME); $var1 = 'hello'; $var2 = 'world'; $sql = 'SE...
by joseazr1987
Mon Sep 13, 2010 12:14 pm
Forum: General Discussion
Topic: Work on Layers on Php (User, Busines, Data)
Replies: 3
Views: 751

Work on Layers on Php (User, Busines, Data)

Hi, I'm new in this for the programing, I want learn about the Architecture Desing for programing, and I want to start to program on layers (User, Busines, Data)..
some one have a example for this??..
by joseazr1987
Fri Aug 27, 2010 12:40 pm
Forum: PHP - Code
Topic: Sql sintaxis
Replies: 4
Views: 221

Re: Sql sintaxis

Thank you very much.. I apreciate your help!!
by joseazr1987
Fri Aug 27, 2010 12:08 pm
Forum: PHP - Code
Topic: Sql sintaxis
Replies: 4
Views: 221

Re: Sql sintaxis

This is the code: $sql = sprintf("INSERT INTO %s (id, login, pw, real_name, phone, radio, professional, office, service, special, email, job_listing, access_level, active) VALUES (NULL, %s, %s, %s, %s, %s, %d, %d, %d, %s, %s, %d, %d, 'n')", $this->table_name, $this->ins_string($first_login...
by joseazr1987
Fri Aug 27, 2010 11:36 am
Forum: PHP - Code
Topic: Sql sintaxis
Replies: 4
Views: 221

Sql sintaxis

I need help.. i see this sintaxis of sql "INSERT INTO %s (id, login, pw, real_name, phone, radio, professional, office, service, special, email, job_listing, access_level, active) VALUES (NULL, %s, %s, %s, %s, %s, %d, %d, %d, %s, %s, %d, %d, 'n') but I can't understand what it mean %s,%d.. can ...