Well, what I've done personally in the past is run a regular expressions cleanup of the CSV sheet (surround strings with double quotes, strip hanging commas, etc). It really depends on the...
Type: Posts; User: JShor; Keyword(s):
Well, what I've done personally in the past is run a regular expressions cleanup of the CSV sheet (surround strings with double quotes, strip hanging commas, etc). It really depends on the...
Make sure the CSV is formatted correctly. If you made the CSV sheet in Excel (or even modified it in Excel, for that matter), chances are it's screwed up.
I would keep a record in the database of every file, and keep a record of which user ID(s) have access to the file.
Which parameter isn't working? I don't understand what you're trying to accomplish here.
<?php
include("include/db_conn.php");
$appid=$_REQUEST['appid'];
...
There are databases available which have nearly every ISP IP stored and which country they're in, and they have API's. So you can predict and store what country they're in for most places with these...
It's much simpler than you think. Sending mail in UTF-8 just requires modification of the headers. This should work for you:
$headers = "From: $from_user <$from_email>\r\n".
...
The semicolon at the end does not belong there, and neither does the < (that's the HTML entity for a less-than sign.
for($i=0;$i>$count;$i++) {
I see.
This should work:
if($delete){
for($i=0;$i<$count;$i++){
$del_id = $checkbox[$i];
// Get the image path.
It's not the script that needs to be encoded differently, it's your email.
You need to send a MIME header to tell the email to be encoded in UTF-8.
Then how do you display the uploaded image to your users?
With that said, there is no way to delete the image from a folder without knowing where it is first. Therefore, you need its exact path....
I don't get it, the code is working just fine. I tested it like so:
$dateFormat = str_split("15072012", 1);
echo $dateFormat[0]; echo $dateFormat[1]; echo "/"; echo $dateFormat[2];...
Ok, well the problem here is that all of the related form fields with an array in the name must match their respective checkbox. In lamens terms, everything related to a set checkbox must be set,...
The solution is as simple as changing the file name parameter in the imagejpeg() function to whatever the desired file name is.
It was:
imagejpeg($new, NULL, 90);
When it should be:
No matter what you do, the user will be able to download the video somehow. You can make the system very complicated, to the point where users would be discouraged from doing so, but you cannot make...
Be more specific. What do you mean by 'E-mail box'? The form field for email is the one where you would enter the 1000 email addresses.
The modified script I made sends the email to all of...
You can write it so that the user separates the emails by a comma (e.g., "you@yourdomain.com, me@mydomain.com, joe@doe.com" would send to all three of those addresses).
Accept the string, split it...
Update: Well, I figured out a solution. Since table cells are the grandchildren of the <table> tag in the DOM tree, it can be accessed by calling parent() twice. From there I can have the script...
I'm using this parser:
http://simplehtmldom.sourceforge.net/
I want to get all of the cells that are direct children of the parent table, not all of the cells within the table. This is because I...
phpDesigner.
http://www.mpsoftware.dk/phpdesigner.php
Whoops. I meant to change this line:
$_SESSION['username'] = $_POST['username'];
...to this:
$_SESSION['username'] = $r["username"];
Ah, I've solved the problem. xval was actually containing window.innerWidth + 200, but in IE, window.innerWidth was returning as undefined, resulting in the whole equation becoming NaN. I ended up...
Works fine in Firefox, Chrome, Opera and Safari. However, in IE, I get the warning "Invalid argument" for these two lines.
elem.style.left = (xval + 'px');
elem.style.top = (yval +...
<?php
session_start();
mysql_connect("localhost","root","") or die(mysql_error());
mysql_select_db("shopping") or die(mysql_error());
$result = mysql_query("SELECT * FROM login WHERE...
Your code is valid, but it seems like setting the username as a POST variable is a huge security issue. You should check whether the username:
1. Exists.
2. Matches a POSTed password.
You...
You're running a MySQL query on a MySQL query.
It's the equivalent of doing this:
$bobby =
if( mysql_num_rows( mysql_query( mysql_query("SELECT userid FROM online WHERE username =...