Search Results

Showing results 1 to 40 of 418
Search took 0.03 seconds.
Search: Posts Made By: ardav
Forum: PHP 19 Hours Ago
Replies: 2
Views: 78
Posted By ardav
http://www.elated.com/articles/understanding-permissions/

Different files should have different permissions, depending on location/purpose.
Forum: PHP 19 Hours Ago
Replies: 5
Views: 118
Posted By ardav
You'll stay on the same page man. Did you try it?

Like I said, you could try $_SERVER['PHP_SELF'] or include the full url:

<a href="<?php echo $_SERVER['PHP_SELF'];?>?s=5#Next">Next Value</a>
Forum: PHP 22 Hours Ago
Replies: 2
Views: 102
Posted By ardav
enrolldis[][][] looks suspect. What are you trying to do with this?

enrolldis[] will work to place your checked checkboxes into an array.
Forum: PHP 22 Hours Ago
Replies: 5
Views: 118
Posted By ardav
<a href="?s=5#Next">Next Value</a>

Try that, although, I'd put a PHP_SELF in there as opposed to a raw querystring.
Forum: Geeks' Lounge 1 Day Ago
Replies: 1,391
Views: 149,593
Posted By ardav
You must be a nuclear physicist from all that fusion!
Forum: PHP 1 Day Ago
Replies: 4
Views: 161
Posted By ardav
I wasn't aware of N18's method, but as for Raj's method - the explode function places the data into an array.

$nums = explode(" ,",$str);
foreach ($nums as $num) {
echo $num . "<br />";
}...
Forum: PHP 2 Days Ago
Replies: 4
Views: 202
Posted By ardav
If localhost - why bother with encryption? Just in case somebody looks at the db? In general, you'd want to 'salt' the password and possibly double hash it, e.g.

md5(md5("mysaltysalt" . $pw ....
Forum: PHP 2 Days Ago
Replies: 6
Views: 3,742
Posted By ardav
Seeing as you're a newbie, I won't downvote you, but get a grip. This thread is over 4 years old. If you want to contribute, pick a current-ish thread or start your own.
Forum: PHP 3 Days Ago
Replies: 1
Views: 123
Posted By ardav
You need to create a page in (x)html. And have your "placeholders" (variables) output data from a file or DB. E.g.

<p>Name: <?php echo $dbdata['username'];?></p>

There are a few ways to do...
Forum: PHP 4 Days Ago
Replies: 8
Views: 285
Posted By ardav
Hi Airshow, "long time..." and all that. Yep agree, a full description of the problem would have been useful.

Spotted a mistake in my code:

$output .="</body></table>"

Should be:

$output...
Forum: PHP 4 Days Ago
Replies: 10
Views: 267
Posted By ardav
public function getswachapter($book, $chapter){
//you still need to clean inputs!
$query = "SELECT kiswahili.Chapter, kiswahili.Verse, kiswahili.Scripture, vitabu.Name FROM kiswahili INNER...
Forum: PHP 4 Days Ago
Replies: 10
Views: 267
Posted By ardav
Do you really need to run 2 queries? I don't know your table structures, but the first query looks redundant.
Forum: PHP 4 Days Ago
Replies: 8
Views: 285
Posted By ardav
Do you want the array to output to a table?


$big_array = array(array('first_one','second_one', 'third_one'),array('first_two','second_two', 'third_two'),array('first_three','second_three',...
Forum: PHP 5 Days Ago
Replies: 7
Views: 225
Posted By ardav
OK, I've just noticed - you're sending the form to the include file (or trying to). This won't work. You actually have to send the request, usually via submit button to a new page (products.php). An...
Forum: Geeks' Lounge 5 Days Ago
Replies: 162
Views: 9,794
Posted By ardav
Anything by Voltaire, but my fave:



Also:



Richard Davis, Port Talbot, on the subject of being bi-curious.
Forum: Geeks' Lounge 5 Days Ago
Replies: 9
Views: 238
Posted By ardav
Nah, the chance to dress up as an obese sherry-sozzled paedophile with a penchant for tight spaces.

If not that, falling asleep immediately after lunch to wake up with a stinking headache and...
Forum: Geeks' Lounge 5 Days Ago
Replies: 25
Views: 671
Posted By ardav
Really? Would we even 'see' it if it happened in our living rooms?

I always thought the opp of BB was the Big Crunch, although I'm more akin to believe in Heat Death. Thermodynamics is a bitch.
Forum: DaniWeb Community Feedback 5 Days Ago
Replies: 11
Views: 801
Posted By ardav
I thought it was just my setup. Did the same to me as well - real pain on my Blackberry. As mentioned, the 'remember me' sorts it.
Forum: PHP 5 Days Ago
Replies: 7
Views: 225
Posted By ardav
IN addition to name="inventorid", add id="inventorid". I'm not sure if it will work, but I can't see anything wrong with your code - mind you - my head's like a rotten apple at the moment.

In your...
Forum: PHP 5 Days Ago
Replies: 7
Views: 225
Posted By ardav
I'm confused - you seem to have a circular reference - although it may just be my slow brain after my science club capers! I can't see where some variables are set. Please post the relevant bits from...
Forum: PHP 6 Days Ago
Replies: 7
Views: 225
Posted By ardav
Don't do that!!!

You have a choice of client-side scripts or server-side. If you want something to happen before you send the form - use JS (but this isn't foolproof - JS is not secure), or if you...
Forum: PHP 6 Days Ago
Replies: 5
Views: 309
Posted By ardav
Is this a question? What do you want? Have you contacted the host? If you see php code you've probably not enclosed the code inside php tags or perhaps your hosting account does not support php.
Forum: PHP 7 Days Ago
Replies: 7
Views: 206
Posted By ardav
I can't check it - I don't have your DB. Guess you'll have to wait.
Forum: PHP 7 Days Ago
Replies: 7
Views: 206
Posted By ardav
Did you try it?
Forum: PHP 7 Days Ago
Replies: 7
Views: 206
Posted By ardav
get rid of the comma
Forum: PHP 7 Days Ago
Replies: 8
Views: 259
Posted By ardav
This is probably the wrong forum for you. Find a nice games site and do some grovelling there. Make sure that you have something to offer. Just wanting to be an admin/mod won't make it happen. You...
Forum: PHP 8 Days Ago
Replies: 3
Views: 236
Posted By ardav
JS will need to ask permission from the user. This is a security feature. php can't know anything about the client unless client side (e.g. js) tells it.
Forum: PHP 8 Days Ago
Replies: 4
Views: 212
Posted By ardav
Why did you start another thread when you posted a similar one and didn't bother replying to it?
Forum: PHP 8 Days Ago
Replies: 8
Views: 259
Posted By ardav
You canta do da code no? You wanna pay duh wiseguys onna dis nice site? Don Atli isa da good guy, anna dis Cwarn fella, he's a good for duh wetwork - bat he's notta patsy minda you. Pay youra...
Forum: PHP 8 Days Ago
Replies: 8
Views: 259
Posted By ardav
You wanna maika me an offer I canna refuse?
Forum: Geeks' Lounge 8 Days Ago
Replies: 17
Views: 572
Posted By ardav
Damn, I forgot about Shawshank. That's one big film I loved. It was one of the few films I've seen that lives up to the original story. In fact I saw the stage show recently and that was amazing....
Forum: PHP 9 Days Ago
Replies: 14
Views: 520
Posted By ardav
This is a situation where ajax could help. You really don't need to have two pages. You could have just the one with a DIV that is updated to show different forms. This means you could have a number...
Forum: PHP 9 Days Ago
Replies: 6
Views: 298
Posted By ardav
127.0.0.1 is the same as 'localhost'

The fact that you're using Windows as Apache local server and Linux as Apache remote server makes absolutely no difference. It's the same as my setup.

My...
Forum: Geeks' Lounge 9 Days Ago
Replies: 17
Views: 572
Posted By ardav
Les Patterson Saves The World must rank with one of the worst movies ever, but I love it. I love it because it offends everybody, there's no sickening schmalz, buddy-buddy nonsense, emotional hacks...
Forum: Geeks' Lounge 9 Days Ago
Replies: 25
Views: 671
Posted By ardav
I don't think we'll ever know how the BB came about. We'll get within a fraction of a second of the 'event' but won't be able to go further. From what I remember of my basic physics, time did not...
Forum: PHP 9 Days Ago
Replies: 6
Views: 298
Posted By ardav
Have you thought of accessing the hosts and v-hosts files on Windows?

HOSTS file:
C:\Windows\System32\drivers\etc\hosts

You should see something like:

# For example:
#
# 102.54.94.97...
Forum: PHP 9 Days Ago
Replies: 6
Views: 302
Posted By ardav
SOrry to butt in. The prototype library can ease the use of ajax objects and allow straightforward updating:

Get the prototype library from prototypejs.org and keep it in "scripts" folder.
Create...
Forum: PHP 9 Days Ago
Replies: 5
Views: 293
Posted By ardav
Yes, good point Atli. Didn't mess with the code too much, just rearranged it.

@Mrjoli: if you don't follow what Atli's referring to - it's the $_POST variables - they need to be cleaned or...
Forum: PHP 9 Days Ago
Replies: 10
Views: 502
Posted By ardav
I won't disagree with previous posters, but I can't imagine portals allowing limitless free sms. Most offer a trial 10 free sms service. I've seen rates of £33/1000 messages - don't know how good...
Forum: DaniWeb Community Feedback 9 Days Ago
Replies: 36
Views: 2,670
Posted By ardav
I would expect mods/admins to be exempt from such impositions, as they are pillars of the community who would use their voting abilities appropriately. Non-mods/non-admins (who act as if they are...
Showing results 1 to 40 of 418

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC