How would I go about implementing a signup form using the MVC pattern for a website (I'm using PHP)?
I think the controller should receive the POST data initially. Then probably some interation with the model might need to take place (if the user successfully signs up). Then I think the signup form view would be called, and a value woul...
Hi,
i'm buidling a very simple email based website that users can, when registering list out all the stocktickers they're intersted in following. The program then on a daily basis goes and fetches that information and sends it out to every user. i have the portion which fetchs the information from the stock websites, but i'm looking for...
Hello! First and foremost thank you for checking out my problem, and for any help you may give!
Okay, so like the title says I'm in need of calling a php function from my index page, which adds a new record in my database as a vote, using JQuery Ajax. This function will return one integer, which will then be printed inside the form but...
I receive many emails whose contents are of the same pattern, e.g.
Name: XXX
Phone: XXX
Bio: XXX
......
I want to write a PHP script to parse these emails and save the data into a database. I tried to use file_get_contents() to get the contents of these emails.
The problem is that, it requires authentication to access to my emails. E...
Hi,
Just wanted to know what could be the security cautions I should know about PHP Hosting?
Thanks
...
I'm pretty sure I've seen this done in a php script once, although I cant find the script. It was some script that would automatically check for updates to that script, and then replace itself if there was an update.
I don't actually need all that, I just want to be able to make my PHP script automatically run every 30 minutes to an hou...
I create a directory listing and came across this issue.
what value does mysql_query($query1) return if there is no value
My script received this message from $result, would it be alright to pass array(0)?
Warning: mysql_fetch_array($result) expects parameter 1 to be resource, array given in
...
Hey guys, I have the following HTML structure that I am trying to pull information from:
// Product 1
<div class="productName">
<span id="product-name-1">Product Name 1</span>
</div>
<div class="productDetail">
<span class="warehouse">Warehouse 1, ACT</span>
<span class="quantityInStock">25</span>
</div>
...
Is it possible to create a sql statement to do the following:
Table 1 lists all of the drug names, Table 2 contains all of the side effects.
Table 3 contains all the drug names by ID and all of the side effects separated by |.
Is there some kind of SQL query I can run to re-create Table 3 where the side effects separated by | are the ...
I don't know if its possible but I'd like to make it a Zend_Db_Select object and I don't know how
SELECT *
FROM MyTable MT1
WHERE MT1.date = (
SELECT MAX(MT2.date)
FROM MyTable MT2
)
...
hey guys
im trying to impelement a technique to delete stories with jquery animation exactly like wordpress
this is my script part :
$(function(){
$('#jqdelete').click(function() {
$(this).parents('tr.box').animate( { backgroundColor: '#cb5555' }, 500).animate( { height: 0, paddingTop: 0, paddingBottom: 0 }, 500, function() {
...
I want to use a graph database using php. Can you point out some resources on where to get started? Is there any example code / tutorial out there? Or are there any other methods of storing data that relate to each other in totally random/abstract situations?
-
Very abstract example of the relations needed: John relates to Mary, both ...
I have been developing websites in n-tier structure and so far my requirements are fulfilled. But as powerful frameworks like Zend Framework, symphony are getting popular, I wonder how to know if it is time to shift to a framework?
I am in a kind of dilemma? Can anyone suggest me the right option !
...
What is difference of developing a website in MVC and 3-Tier or N-tier architecture?
Which one is better? What are pros and cons?
...
I am working on a site which deals with a lot of texts in HTML, so recently I learned PHP and moved them into a MySQL database and echo the contents given a specific chapter and section. Now this works relatively fine, the HTML shows up properly. However, in some parts I have included PHP function calls, and these doesn't seem to be eval...
can I do something like that? to pass arguments to my function? I already studied add_action doc but did not figure out how to do it. What the exact syntax to pass two arguments would look like. In particular how to pass text & integer arguments.
function recent_post_by_author($author,$number_of_posts) {
some commands;
}
add_action('t...
I have a model which is referenced to a table registries extending Zend_Db and some methods which bascially uses fetchAll() all the time.
What happens is: my table has a DATE field and I'd like it to output already formated when I call $row->reg_date. Is it possible by doing something in the model or do I have to manually format?
...
It is possible to select last row selected by mysql_query in php without iterating using mysql_fetch_row from first row till last?
If so, what should I use?
...
Hi everyone,
I have recently heard a lot of people argue about using PHP testing features like PHPunit and SimpleTest together with their IDE of choice (Eclipse for me). After googling the subject, I have still a hard time understanding the pros and cons of using these testing frameworks to speed up development.
If anyone could explain...
Hello all,
Is anyone aware of a font reader class where I can pass in a font file (ttf or otf) and I can find out the font name, the model, artist etc. The meta data really.
Thanks all for any help
...