No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
14 Posted Topics
Re: Hi there! I have a nice piece of code I use for queries like this, take a look. [code=php] function mysql_fetch_values($result, $numass=MYSQL_BOTH) { $i=0; $keys=array_keys(mysql_fetch_array($result, $numass)); mysql_data_seek($result, 0) ; while ($row = mysql_fetch_array($result, $numass)){ foreach ($keys as $speckey) $got[$i][$speckey]=$row[$speckey]; $i++; } return $got; } [/code] This enables you to fetch … ![]() | |
Hi everyone! Whenever I develop something on an online web server my htaccess files and php.ini files work as expected. If I place a php.ini into a directory and then call phpinfo(), I can see that it is parsed. However, when I use a locally installed web server working directory … | |
Re: Yes, the code above should work for you. In fact, even if you used a non-date format it should work. And also, please post the code you are using in php, since so many other things could go wrong. If I don't know if the query is wrong or the … | |
Hi Everyone! I am trying to use a $.post call in jQuery to check a user's credentials before submitting a form (so I can show errors without reloading the page), but I've run into a problem. I know why it is, because AJAX is not synchronous, but I just can't … | |
Hi Everyone! The title pretty much explains it all! I have a variable which holds the site's root url, but to make it work online and offline on my xampp, I need to make some differences. When the end variable is output, there are two "intermsediary" ones I used to … | |
Hi Everyone! I don't think this is a hard question for all of you well versed in javascript and jQuery, but I seem to be having some problems. I am building a forum and I am experienced in PHP, MySQL and even in jQuery now somewhat, but I have run … | |
Hi Everyone! I want to make a nice floating bar at the bottom of the screen, which hovers about 15px from the bottom. I am doing this to make a site look good in small and big resolutions. The minimum height for the bar to hover is 600px about, if … | |
Hello everyone! If you guys have a sec, can you help me out with some URL rewriting? I am transfering a site from typepad to wordpress for someone and the typepad links to post look like this: [url]http://www.domain.com/directory/year/month/post-title.html[/url] A wordpress link would look like this: [url]http://www.domain.com/year/month/post-title[/url] there is no extra … | |
Hi Everyone! I have a general database question, I'll try to keep it short :) I am building a social site where users can log in and add status messages (like twitter), share photos, keep a blog on site, and so on. I will refer to these as element types … | |
Re: Hello! First of all, I hope I can help, let me explain how I would do this, I think this is your setup, but I can't be sure. If you are doing a forum, then whenever someone ads a post, you should INSERT a new row into the posts row. … | |
Re: I know this is a bit basic, but for many fields, where the user inputs longer data (subject line, or textarea input), I always use the function trim() to delete all whitespaces and line breaks before and after the text. This isn't exactly mailicous, but useful to me nevertheless. I … | |
Hi everyone! I'm working on coding my own forum and I have no problem with this, I would like to ask those of you knowledgable about the inner workings of php and mysql about which method is faster. So far I have always been determining post counts, discussions started counts … | |
Hello Everyone! This is my first post, so please excuse me for any breaches of netiquette. I am building my own from validation script, which uses separate functions for each input box like so. [CODE=html]<input type="text" name="username" onchange="CheckUsername(this.value);">[/CODE] A bit of javascript sends this along to a php file using … | |
Hi everyone! I'd like to ask a simple question to which I can't really find a definitive answer. If I condense my code a lot, will this mean an increase in loading times which is significant enough? I like having my code spaced out, readable, but I would also like … |
The End.