Hey, well I'm having a problem and this weird symbol is showing up
–
it's suppose to be a " - " but for some reason it's not doing that,anyone got any ideas why.
Hi, say I have a string like so
Testing
How could I have it remove all spaces before the first letter, and all spaces after the last letter in the string.
Thanks!
Hi, I have a main directory like :
/import/
and in /import/ i have lots of sub directories, containing audio files.
I would like to create a php script to move all the audio files from the sub directories into the main directory.
Thanks guys :)
Hi, I'm just wondering how I can have javascript simulate a click on a element.
Currently I have
<script type="text/javascript">
function simulateClick(control)
{
if (document.all)
{
control.click();
}
else
{
var evObj = document.createEvent('MouseEvents');
evObj.initMouseEvent('click', true,…
Hey, well right now I have a script to send text messages, and I'm looking to modify the Mail() function to also send attachments.
Does anyone have any ideas?
right now this is the format I'm using :
mail ($to, $subject, $message, $headers);
I currently have a script that scrapes proxies off websites, but I'm just wondering what the best way to test them would be, I want to test and sort into different categories like
All
ALL HTTP
ALL SOCKS
Socks 4
Socks 5
HTTPS
HTTP Connect
Hi, right now I'm just trying to figure out how I could do the following :
I have this text right, and it says "report"
I'd like it, so when someone clicks on the report link, it simply executes some PHP code and then changes the text from "report" to "reported" and the font from red to green.
Thanks!
Hey, I'm just wondering how to convert a numerical date into text format in PHP
Example change
06.04.2010 to say April 6th 2010
Is there any function already made?
I have a directory like this :
/images/
and then I have another directory like this
/waiting/pack1/
but I have a bunch of packs, so I was wondering how I could make a script to dump all the contents of these /pack* directories into the /images/ one.
Hi, I'm currently creating a subscription membership for my website.
I'm storing the date their subscription started in my database using time() (not extra parameters)
If not, how can i find the number of days between the current time() and the time() stored in the database?
Thanks!
Hi, I'm just wondering how I can retrieve a specific value (only 1 thing will be returned) from a database using php.
My query is
mysql_query("SELECT balance FROM users WHERE username = '". $this->username . "'")
I'm just looking for it to retrieve the data from that row so I can save it directory into a variable.
Hi, I'm wondering how I can sort mysql data based on the number of entries.
I'm doing this so I can have a page of the top purchases, so it would have to retrieve all the product_id's from a table, and then sort them by the most times one shows up, limiting it to 10 or something.
Thanks!
$_GET['search'] = ucfirst(strtolower(str_replace("_"," ",urldecode($_GET['search']))));
For some reason it's adding slashes into the string similar to mysqL_escape_string, anyone got any ideas what would be causing it?
Some weird stuff is happening, I am converting an application that used to use javascript to open another web page in a tiny window for data input to use a ModalPopupExtender.
It seems to work fine, but in the OK event, when I do txtData.Text (the textbox in my modal popup), it comes back with a comma before the data, so if you type "Rabbit",…
I have a query:
Select n_portions, dish_name
from food_order, dish
where n_portions=
(select max (n_portions)
FROM food_order);
It's meant to return:
fish pie 3
steak and chips 1
pasta bake 2
stuffed peppers 1
But i get:
Pasta bake 35
Fish pie 35
Steak and chips 35
Stuffed peppers 35
Ham and rice 35
Lamb curry 35…
I have a dropdown menu in a GET form. When the user hits submit, they are directed to the same page and shown the form again. I would like to have the dropdown option the user displayed in the last page already selected. So for example:
@Html.DropDownList("Type", null, "Type", new { @class = "sbox-input" } )
website.com/Search?Type="Beef"…
There is 20px margin/padding below the catmenuconatiner (second navigation bar). This is only showing in firefox and chrome not in IE 6+
Here is the page: www.fish-and-web.blogspot.com
Another problem related to the same issue is between the comments. The comment boxes have 15px margin between them. Again, this is only showing in Firefox and…
I have a database table that essentially contains different types of things. I'll use animals as an example. I have a table called AnimalTypes:
AnimalTypes
{
ID:int,
Name:string
}
I then populate it with:
1:Dog,
2:Cat,
3:Fish
I would like to then have some sort of C# object created that functions similar to this enum be…
Consider the following set of classes/Interfaces:
class IFish{
public:
virtual void eat() = 0;
}
class IFriendly{
public:
virtual void protect() = 0;
}
class IAggresive{
public:
virtual void attack(Point inDest) = 0;
}
class CDolphin : public IFish, IFriendly{
eat...
protect....
}
class CShark : public IFish, IAggresive{
eat....…
i want to retrieve image from client (ipod) programmed in objective c i use the following code
$TARGET_PATH = "pics/";
$image = $_FILES['photo'];
$TARGET_PATH =$TARGET_PATH . basename( $_FILES['photo']['name']);
$TARGET_PATH =$TARGET_PATH.".jpg";
if(file_exists($TARGET_PATH))
{
$TARGET_PATH =$TARGET_PATH .uniqid() . ".jpg";
}
if…