Hello all,
I have a simple form, lets say it takes an email address. Once the form is submitted a message stack notifies the user that their address has been submitted successfully. The issue is that after submitting the address the form field with the email still contains the email address that the user typed in, how would I reset th...
I have an image that I want to be watermarked to the bottom right section of other images.
The dimensions of the watermark image are 179 width, 39 height.
Now what if I have another image whose dimensions are 150 width, 20 height? If we tried to watermark it using the original image, it would obviously be too large and the image itself...
My question is an elaboration of this one:
http://stackoverflow.com/questions/1093251/php-mysql-ajax-chat
I have a 100 chat rooms which I need to make. Is there a php/mysql based chat system that would do something like this?
phpFreeChat is mentioned, but from what I understand, I have to (manually) download and install the applicatio...
This question has been asked before mentioning the lib or includes that provides a functional gallery, But i want to create one from scratch. So any ideas on the following
Galleries need to be uploaded using Form and Browse(This i can find no Problem, just need it to be there to outline the steps)
Need to have a thumbnail image created...
Okay, so I'm relatively new to coding but I have a table w/ over 1000 codes in it.
Well, when people submit new information to it (via submit form) I want to be able to add the date/time to the table so that when I can print the 'latest 25'.
My questions are:
How do I add a column for the time? How do I add the time function to m...
Ok, so basically I am using the fckeditor as a way for my user to enter some information. When it is stored in the DB it is stored like so,
<p> </p>
<div style=\"margin: 0in 0in 10pt\"><b><span style=\"color: #666666\">Test Title</span></b><span style=\"color: #666666\"> <br />
Address goes here <br />
This is some lengthy text about ...
I'm creating a calendar application in PHP with CodeIgniter. In the main calendar page, My model currently creates an array with each index being one day on the current month. That day is an array containing any events the user may have on that day. Now, should I construct the calendar array in the controller FIRST, then pass it to the ...
I'm trying to pull in HTML/Javascript from an external PHP page using Prototype/AJAX, and the HTML renders fine, but the Javascript doesn't work after the AJAX request.
I'm also showing a loading bar while the page loads the data, and this part works fine. My Symfony PHP + Prototype code is below. Any advice that might put me in the rig...
I have the following code:
$sql = "update tbl_test set category = N'resumé';
echo $sql;
$rs=odbc_exec($conn,$sql);
Where $conn is a DSN ODBC connection to an MSSQL Server. The problem seems to be that somewhere between PHP and MySQL (Maybe ODBC?) unicode characters are converted to junk. If I copy paste exactly what the echo says ...
I made an application to take the now playing title and artist from an internet radio stream, and I have it displaying in plain text on this page:
http://thelisthq.net/z1035.php
The output is simply a php 'echo $variable' command, but $variable is constantly changing, so how do I store each different value of $variable into a database....
Or color for you American fools! ;)
How can I use PHP to find the most common colour in an image?
...
I have some data of balances ($), dates, and memos. I want to plot this as a line graph. I was happily plotting away with http://www.maani.us/xml_charts/ until I realized that my x-axis was off: there aren't balances for every day, and sometimes there are multiple balances on a single day. How can I compensate for this (space out the dat...
Hi
Im pretty new to this with
Here goes the original code with one value i get working:
$description = get_post_meta($post->ID, "description", false);
if ($description[0]=="") {
} else {
Products
foreach($description as $description) {
echo ''.$description.'';
}
}
`
I have difficulties to modify this ...
Hello,
In the code below, I am trying to print out a 1-column, 25-row table, with each row being a hyperlink to "booksearch.php?find=urlencode('TABLE_NAME')&searching=yes&search=search".
The hyperlink part is not working. For the line below with the hyperlink, I get this error message: "Parse error: syntax error, unexpected T_STRING, ...
lets say I have an html document
how can I remove every thing from the document
I want to remove the HTML tags
I want to remove any special character
I want to remove everything except letters
and extract the text
Thanks
...
I want to set up my Drupal site to embed private videos from YouTube. I am the owner of these videos, and I have marked them as private to protect them from the general public.
From the documentation, I have seen how to do an authentication where the user is taken to youtube, has to log in to his account, and consent to give my web app...
I want to find a range of colours from the value of one RGB value
If I was given rgb(0,100,200) for example it would give me everything between rgb(0,0,255) and rgb(0,255,255). However not rgb(255,0,255).
Similarly rgb(150,50,0). Return: rgb(255,0,0) and rgb(255,255,0). Not rgb(255,0,255).
Making sense?
Im using PHP
...
How to remove duplicate values from an array in PHP and count the occurrence of every element?
I have this array
foo
bar
foo
I want the result to be in array like this
value freq
---- ----
foo 2
bar 1
Thanks
...
I have two models and a join table, User, Post and posts_users.
The posts_users table contains a few extra fields, one of which is is_active. I want to set all of a users posts to active providing the user is active themselves.
I have the following
$this->Post->PostsUser->updateAll(array('PostsUser.is_active' => 1), array('PostsUser.u...
Hi,
I'm sometimes using Selenium (mostly IDE to write tests, and Core / RC to run them) from PHP, using PHPUnit, and I was wondering : do you know any "big" project that uses Selenium for automated functional / non-regression testing ?
I would most be interested in
Open Source
Ideally, PHP ; but JAVA and/or .NET would do too
Well-kn...