Questions tagged as 'php'

1
answer

Table / Field for price of products in Magento

In which table / field are the prices of products registered in Magento 1.9 stored? I have seen in some sites the catalog_product_entity_decimal table, but I have not seen the price or any other field that looks like a value in...
asked by 19.11.2015 / 05:39
2
answers

How to reference foreign keys in registration forms?

I am making a website from a library as a college work, which has the following table in the database: MyproblemisthatIdonotknowhowtohandlethephpcodeandtheformoffieldsthatreceiveforeignkeys.Forexample,intheloanfileIneedtoreferencethebookthati...
asked by 17.11.2015 / 01:41
1
answer

What errors trigger the catch? [duplicate]

In a test similar to this , I stayed in doubts what the errors that generate Exception . Finding I only found explanations of using try , catch , and some references that this would depend on the php_ini setting....
asked by 16.04.2015 / 15:30
2
answers

Get values from selected checkboxes and their respective prices

Well, I'm developing an online ordering system, initially just for learning purposes, but I came across something that I have no idea how to do and would greatly appreciate any kind of help. In the products.php page I establish two connection...
asked by 10.04.2015 / 13:17
2
answers

How to pass controller variable to view [closed]

Hello, I did an mvc application but I'm having trouble passing a controller variable to the view. My codes: class Home extends Controller { public function index() { $user = $this->loadModel('usersModel'); $row = $user-&...
asked by 20.12.2015 / 00:43
1
answer

Assemble news by grouping results by user class

I'm developing a news system where a certain class of user will be able to post one or more news for everyone to see it works perfect, but for a better view I would like these messages to be grouped by the class of the user that posted it. I wil...
asked by 21.12.2015 / 22:25
1
answer

Change Dynamically Bar Percentage

I have this bar percentage and wanted to dynamically change the value of it just that I am not getting it. Barcode<script>$('.bar-percentage[data-percentage]').each(function(){varprogress=$(this);varpercentage=Math.ceil($(this).attr('d...
asked by 28.12.2015 / 13:35
3
answers

Error installing PHP - "The program can not start because MSVCR110.dll is missing"

I want to learn PHP, but I can not even install it. I'm using
asked by 19.12.2015 / 03:49
1
answer

Validation configuration in dynamic fields with groups

Scenario: The client today has a place in the system, specific to register fields for a process that will be automated, these fields that are registered can be (selects, checkbox, radio, textarea and text) fields linked to an activity of this pr...
asked by 18.12.2015 / 13:40
1
answer

preg_replace PHP - / or @, why put?

Using preg_replace () in PHP, I came across the following situation: echo preg_replace('/:([\w]+)/', 'batata', ':quiabo/isso/:nada'); echo preg_replace('@:([\w]+)@', 'batata', ':quiabo/isso/:nada'); Both expressions print the same thing: p...
asked by 22.04.2015 / 22:36