Hi,
i have a similar issue as espoused in http://stackoverflow.com/questions/695752/product-table-many-kinds-of-product-each-product-has-many-parameters
i am convinced to use RDF now. only because of one of the comments made by Bill Karwin in the answer to the above issue
but i already have a database in mysql and the code is in php....
I'm about to start on a small, static website project: no database or CMS required. Basically, a brochure website.
I used the CodeIgniter framework recently to develop a full-blown web application, and I'm wondering if it appropriate to also use CI for smaller, simpler sites.
Typically for a static brochure site I would write regular P...
I have a bit of an issue with a site I maintain. I have been asked to add a report to a page that sits in a jsp page. The reporting information comes from a MySQL database. The problem is to connect the jsp to the database would require added functions to code that I do not have the original source of. I thought about redoing all the db ...
I have a Zend_Framework application, which has a whole bunch of model classes.
I need these model classes to be able to access the application's database (naturally).
Currently I've put this in my index.php:
Zend_Registry::set('db',
$application->bootstrap()->getBootstrap()
->getPluginResource('db')->getDbAdapter());
...
are there times you might want to use multiple controllers in mvc?
eg.
/controllers/foo.php
/controllers/bar.php
or
/controllers/foo/baz1.php
/controllers/foo/baz2.php
/controllers/bar/baz1.php
/controllers/bar/baz2.php
could someone give some examples WHEN i might want to do that and some example controller names.
one occasion...
Have created simple Ajax enabled contact forms before that have around 12 fields - worked fine....
Now working on a PHP enabled web page for job applications that has around 100 fields.
The ajax technique I was using was to send request via querystrings (&val1=test;&val2=test2 and etc ...)
That is not going to scale very well with lar...
hello again,
following code is my php file that will list the people in my text file.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>viewlist php</title>
</head>
<body>
<h1>List</h1>
<?php
$file = file("peoplel...
I'm trying to add suggestions to product pages along the lines of : "Customers who purchased this item also purchased x and y".
The way the data is compiled right now is a mysql table with 3 rows.
PRODUCT | CUSTOMER |QUANTITY
Product is the product ID. Customer is the customer ID. Quantity is the number of time that product was bou...
hello
how we could create translate validate error messages on zend framework?
someone could give a example ?
thanks
...
Here is the function description
test($argv)
$argv is an array, for example $argv=array($from1,$to1,$from2,$to2.....);
array items must be even.
$argv=array(1,3,4,5) : this will output values like below:
1_4
1_5
2_4
2_5
3_4
3_5
pseudocode is like
while($from1<=$to1){
while($from2<=$to2){
echo $from1."_".$from2."<br/>"...
Hi ...
I'm looking for logger for PHP like log4j. can you suggest me witch logger that I can use ?
Thanks,
...
What I want to do is get the data from two different tables (table1 and table2) where row1 = 'test' in both of the tables
...
Php novice.
1.Is there anything wrong with this PHP & MySQL code?
include_once "db_login.php" ;
$sql = "DROP TEMPORARY TABLE IF EXISTS temp_sap_id_select" ;
mysql_query ( $sql ) or ( "Error " . mysql_error () ) ;
$sql = " CREATE TEMPORARY TABLE temp_sap_id_select
(
`current_page` INT NOT NULL,
...
This is more a question of pros/cons between PHP and JAVA.
Iv been doing research, and iv narrowed it down to those two.
And in consideration, id like to go into mobile app dev...So thats +1 for Java.
Time taken to learn the language is not an issue...Just would like to know which is the most effective between the two languages mentio...
My two tables look like this:
TABLE1 TABLE2
+--------------------+ +--------------------+
|field1|field2|field3| and |field2|field4|field5|
+--------------------+ +--------------------+
I am already running a SELECT query for TABLE1, and assorting all of the data into variables:
$query = "SELECT...
From below array i want the value of "_sql" to be displayed or we can I want to echo the "_sql" value, so what should be the syntax to display it in PHP code?
JTableMenu Object
(
[lft] =>
[rgt] =>
[home] =>
[_tbl] => #__menu
[_tbl_key] => id
[_db] => JDatabaseMySQL Object
(
[name] => mysql
...
I have a page called send.email.php which sends an email - pretty simple stuff - I pass an order id, it creates job request and sends it out. This works fine when used in the context I developed it (Use javascript to make an AJAX call to the URL and pass the order_id as a query parameter)
I am now trying to reuse the exact same page in...
i have a form and want to submit it with a script.
i'm going to use curl function in php to do it.
but the form is not submit directly.
it have 3 steps and at the end of each step it store entered value in session variables and at the final steps it insert record to database with the values are read from sessions.
it is possible to do...
For example, i want to search a word 'marple', this should return row with near or exact word like 'marble','maple','marple', etc...
How to do it in mysql query? or better give word suggestion if any?
Thanks,
...