Would like to get a consensus as to what the best practice is in this scenario:
Muliple submit buttons, is it better to handle this by having separate FORMS for each one of the submits, OR is it okay to have one form and check which button was pressed?
thank you for your input :D
...
One significant drawback of CSS is that one can't use variables. For example, I'd like to use variables to control the location of imported CSS, and it would be awesome to create variables for colors that are used repeatedly in a design.
One approach is to use a PHP file for the CSS stylesheet. In other words, create a "style.php" with....
Hi,
I have built an information portal in PHP [Something like a recipe book], where the first few recipes are free to access. The advanced recipes are available only to paid members.
I intend to use a simple subscribe now paypal button. When the user clicks on this button, he is directed to paypal website and upon payment redirected t...
Background
Users can pick dates as shown in the following screen shot:
Any starting month/day and ending month/day combinations are valid, such as:
Mar 22 to Jun 22
Dec 1 to Feb 28
The second combination is difficult (I call it the "tricky date scenario") because the year for the ending month/day should come after the year for th...
Can you show me an example of a very easy implementation in AS2 (action script 2.0) to bring a var from a php file. I have a php script who return a value into the var $result when it is executed, how can i use this var on flash? Thanks
...
Hello i want to send to a MySQL data base a date and time in a format compatible with the mysql DateTime format, wich is: 0000-00-00 00:00:00 ...
Im using this code who brings the date and time from a PHP command:
$insert = "INSERT INTO sms (ref, texto, fecha)
VALUES ('".$_POST['usuario']."', '".$_POST['sms']."', '".date(DATE_ATO...
Hi,
(my first post was not clear and confusing so I've edited the question)
I was studying string manipulation.
You can use strlen() or substr() but cannot rely on other functions that are predefined in libraries.
Given string $string = "This is a pen", remove "is" so that
return value is "Th a pen" (including 3 whitespaces).
Remo...
I hope I'm explaining this properly, my knowledge of MySQL is quite limited.
Let's say I have a table with rows that have a field called shape.
I'd like to select a bunch of rows from a table, but return all of the rows with unique shape field values first. If I have less than a certain number of rows, let's say 7, then I'd like to f...
Hi
I am sending email from my localhost There occurs a server error
Failed to connect to mailserver at "smtp.bizmail.yahoo.com" port 465, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
when i host my project to the server my function works
Now i need a solution such that the mail functionality must work ...
Hello
This is mycode
<?php
/**
* @author Joomlacoders
* @copyright 2010
*/
$url="http://urlchecker.net/html/demo.html";
$innerHtml=file_get_contents($url);
//echo $innerHtml;
preg_match_all("{\<div id='news-id-.*d'\>(.*)\</div\>}",$innerHtml,$matches);
//<div id='news-id-160346'>
var_dum...
IN joomla site ,
I made the replica of one joomla site.
Just took the data from ftp and put it onto another server,its working fine.
But the problem is when I click on mail or pdf icon images which are on every pages right top side ,its gives the mirror effect,
for eg:
subject:_____________________
but
result is
___________...
Hi everybody,
I've been searching about this topic on Magento forum and Google but can't find a definite answer for the question. Hope I find it here.
Is it possible to have a bundled configurable products in Magento?
Take for example I want to sell a set of t-shirt and short on a product page where the customer can choose the number o...
I am trying to get the src of all of the images in a page. But some pages use absolute paths and some do not. So I am wondering whats the best way to do this?
right now I am using this.
$imgsrc_regex = '#<\s*img [^\>]*src\s*=\s*(["\'])(.*?)\1#im';
preg_match_all($imgsrc_regex, $html, $matches);
For example webpage a might have the i...
I would like to show to user how many time a data has been accessed. I am using MySQL and PHP.
...
I would like to store daily data to Mysql and retrive it to show in a graph at the end of each month.
for example:
employee name is John: I would like to store his daily time sheets and work schedule to MySQL and then it should retrieve and displayed in graph format at end of each month.
I know the graph part but I don't know how to s...
I have two branches (or tags?) where I need to keep the same file structure with different versioned contents. One version contains everything, like development scripts, configuration files, etc. while the other contains only things that get redistributed.
How can I accomplish this using Bazaar?
...
Hello,
Am developing an admin center where I can edit configuration files (written in PHP). I do NOT want to store these values in a mySQL table (for various reasons). So say my config.php has contents like:
<?php
$option1 = 1;
$option2 = 2;
$option4 = 5;
$option7 = array('test','a','b',c');
?>
Now say in on...
Normally when an exception is thrown, Error controller takes command and displays error page with regular common header and footer.
This behavior is not wanted in Ajax request. Because in case of error, whole html page is sent over. And in cases where I'm directly loading the content of http response in a div, this is even more unwanted...
I am doing a school project where we need to create an android application which needs to connect to a database. the application needs to gain and store information for people's profiles on the database. But unfortunatly we are a little bit stuck at this point because there are numerous ways to link the application such as http request t...
Hey guys,
I have two scripts.
running an update and calling shell_exec('svn update') and shell_exec('svn st')
running a mysqldump shell_exec('mysqldump params')
The svn script is not running the update command, the svn st is printing results but not the svn update
I tried to declare parameters when calling svn update eg
'svn upda...