Search:
Type: Posts; User: theflyingminst
Search :
Search took 0.03 seconds.
Hi, I have the following .htaccess file:
RewriteRule ^album/(.*)\.html$ albums.php?album=$1 [L,NC]
RewriteRule ^album/(.*)/([0-9]*)$ albums.php?album=$1&page=$2 [L,NC]
RewriteRule...
Ok, cool great idea. Thanks!
Hi, thanks. The error is triggered by this line (73):
$data['first_name'] = $user_details[0]['first_name'];
Hi, I'm getting the error: "Cannot use string offset as an array" for this code, if someone has a minute to take a look at this.
$user_details =...
Hi, I know this works with:
var pair = sel.value.split("$");
..and the image/url split as the value, but how can I make this work with the id instead?
<html>
<head>
Oh wait, my mistake, I also changed another part of the code and that was hindering the add to db process altogether. Thanks!
Cool, thanks! I got 'er going, but the !empty or isset doesn't seem to be determining whether the array was populated or not for some reason..
Thanks. I changed the code to '!empty' with no changes. Basically I need to save an unknown amount of data per category to a mysql database.
Hi I am trying to store information in a mysql db based on an array. The user can add as many options per category as they want, so the form effectively looks like this:
<input type='textbox'...
Yes it seems convoluted but I ended up making them all hidden inputs just the same; I needed to gather info that applies to multiple objects on one page basically.
Thanks again!
Hi, is there a way, when one select is clicked, all change to the value of the one that was chosen? (ie: "b" is clicked and all change to b.)
<select>
<option>a</option>
<option>b</option>...
preg_match('#(\$[0-9,.]+[0-9]+)#', '\\\\1',$parsed_price);
Hi, this little number doesn't know how to handle prices over $999.00 (ex: $1,199.99).
if(preg_match('/^\d+$/',$string,$matches)){
$output_price = $matches[0];
}
Any ideas?
Thanks!
That was actually the first thing I tried but it didn't work. The problem is partly the way the file is being populated I think.
Thanks, yes I'm just gonna create the array with a file command line by line I guess then.
Hi, I have a file outputting an array as such:
$the_array = array("1" =>array('id'=>'1', 'name'=>'Name 1', 'var1'=>'0000', 'img'=>'images/img1.jpg'),
"2" =>array('id'=>'2',...
I found this.. saved the day. http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml
Thanks
Hi there, I'm having some trouble with rewriting a folder w/ another folder.
I'm trying to rewrite (ex) from: http://mydomain.com/mp3_fold/playlist.php?user=11&id=55 --> ...
I just ended up doing some IE conditions since after some more research I found that IE isn't very liberal with onchange & url's.
To be sure of it I tested the same function with an onclick button...
Hi I'm using this Jumpbox script (http://www.davesite.com/webstation/js/theory1jump.shtml) and when I try to get the items to open in a new window, IE's popup-blocker goes off.
...
Update:
This query I found on another forum accomplishes the task ok (I might not have had the proper MySql vers installed for your query to work Wolfshade):
$query1 = mysql_query("SELECT...
Hey thanks so much. I tried that but for some reason I got: Can't group on 'totalCount'