User Profile
Collapse
-
Thanks for the reply, this clarified a lot for me. -
separate user table with user settings?
I'm wondering if its a good idea to separate the user information (name, pass, age ...) and the users settings (notifications, themes ...)?
I guess the real question is if its bad practice to have a lot of columns in one table or if its actually faster? One obvious reason not to have them in the same table is if you want to have dynamic settings which require one insert for each setting but I'm not gonna do that right now. -
The only thing I noticed as a solution was that I looped through all the POST variables however this will create a lot of variables to pass on with ajax, for example a person can post 20 names, 100 names or even 1000 names if he would like too.
Im not sure if this will slow down the call or if its even possible, do you know if theres some limits to how many variables you can post in php 5?Leave a comment:
-
pass javascript arrays in php POST method
Is there some smart way I can pass arrays in POST variables without exceeding some kind of POST limit? Let's say Im going to pass around 100 names from one page to another using javascript, I've heard that serialize works in php but im not sure why this would be better then just to use some kind of separator like this:
Dennis;Daniel;J ohan;
and then use explode($_POST['name'],";").
also is there... -
But isn't there a way to redirect them from the .htaccess file at once?Leave a comment:
-
htaccess redirect + rewrite
hello,
I have been looking for a solution to redirect the users to the correct urlrewrite page but I cant come up with anything thats working.
This is how I rewrite it now:[code=mod_rewrit e]
RewriteRule ^(search)/(.*)$ search.php?id=$ 2 [L][/code]
so basically the user could search like this:
search/something
the problem is that I need to redirect them from search.php?id=s omething to... -
I also checked the source and found that script but I thought It was very slow for bigger images, I will see if I can find something thats more suitable for my project.
btw here is the script:
http://www.cabel.name/2008/02/fancyzoom-10.htmlLeave a comment:
-
yes thats correct, I was was looking for something like clear: left.
thanks for helping!
PS:
I thought my image was quite informative :)Leave a comment:
-
css float left and linebreak
Hey,
Is it possible to change line on a float object?
For example let say I have one <b> tag, one <p> tag and one <img> tag:
I want the <img> to have float right and the <b> to have float left then I want the <p> to have float none so it will go around the image.
However if I have float left on the <b> tag the <p> will stay on the same line as <b> and the only way I... -
tween image to the middle with glow
Hey,
Is there some javascript framwork that will let me center an image (with a tween) and at the same time give me a glow effect?
Examples:
http://www.apple.com/trailers/sony_p.../angelsdemons/ (click the image at the left)
http://www.sbliss.com/ (click the images at the bottom left)
http://www.insideria.com/2008/11/gre...aining-at.html (click on the image in the post)
any advice would be... -
luckily actionscript 3 is able to enable "test upload" so instead of actually uploading it you just simulate the upload.
If someone else is looking for a solution you can read this.Leave a comment:
-
So if I want to play around with uploading scripts I have to do it on the web?Leave a comment:
-
localhost and CHMOD
Hello,
Im working on vista on both my home computer and at work and I got a localhost om both machines, the problem with this is that I can't CHMOD my folders for file uploading. Is there some trick to be able to upload the files on your local machine? I tried to change permission on "everyone" but that didn't solve anything.
I also tried to search on google for a solution but couldn't find anything useful. -
Thanks a lot Atli, your example worked good :)
Although Is it possible to get the comments in the comment array, let me show you what I mean:
$arr['comments'][0] // this will output "array" right now, to get the comment I have to type:
$arr['comments'][0][0] // heres the comment.
This would somehow be easier to work with for this purpose:
$arr['comments'][0] // output comment.
...Leave a comment:
-
Thanks for the reply Atli, I will remove the single quotes around the int value.
However this is the part thats a bit messed up:
[PHP]
$arr[] = $row;
....
while($innerRow = $innerResult->fetch_assoc( )) {
$arr[]['comment'][] = $innerRow;
}[/PHP]
I want to select the latest array value and insert an array called "comment".
Im unsure if $arr[]...Leave a comment:
-
mysql and php, multidimensional result
Hello everyone,
I have a bit of a problem here, lets me explain the database part first:
I want to select pictures from the database and each picture is connected to multi comments.
normally I would do this with a foreach loop and then a foreach loop for each comment in each picture like this:
[PHP]$pic = new pictureClass();
foreach($pic->getPictures( ) as $row) {
echo $row['name'];
... -
-
Wont multiple queries slow down the process of getting the data or is it the only way to do it?...Leave a comment:
-
Yeah thats the way Im working right now but I thought I could do it all in one query and still get all the comments for each topic in a sub object so I could loop them inside the topic loop.Leave a comment:
-
table relations and join
Hi,
I got two questions thats been bugging me but I start with the first one as its quite much to explain.
I'm trying to create a LEFT JOIN on two tables and then output everything, I have no problems getting the information but once I want to output it I get a problem.
Lets say I select a topic and then do a LEFT JOIN on comments I now output it in php like this:
[PHP]$topics = new topicBinding();
foreach($topics->getTopics()...
No activity results to display
Show More
Leave a comment: