Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums

14 Posted Topics

Member Avatar for twmprys

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 …

Member Avatar for diafol
0
590
Member Avatar for danielpataki

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 …

Member Avatar for manojsamtani
0
179
Member Avatar for Syntax12

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 …

Member Avatar for EvolutionFallen
0
153
Member Avatar for danielpataki

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 …

Member Avatar for Will Gresham
0
83
Member Avatar for danielpataki

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 …

Member Avatar for cwarn23
0
169
Member Avatar for danielpataki

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 …

Member Avatar for hengzhe
0
151
Member Avatar for danielpataki

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 …

Member Avatar for essential
0
89
Member Avatar for danielpataki

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 …

Member Avatar for danielpataki
0
97
Member Avatar for danielpataki

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 …

Member Avatar for digital-ether
0
109
Member Avatar for Andrieux

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. …

Member Avatar for Andrieux
0
168
Member Avatar for OmniX

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 …

Member Avatar for OmniX
0
113
Member Avatar for danielpataki

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 …

Member Avatar for danielpataki
0
136
Member Avatar for danielpataki

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 …

Member Avatar for danielpataki
0
166
Member Avatar for danielpataki

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 …

Member Avatar for danielpataki
0
213

The End.