Search Results

Showing results 1 to 40 of 68
Search took 0.01 seconds.
Search: Posts Made By: johny_d
Forum: MySQL Jan 19th, 2009
Replies: 3
Views: 609
Posted By johny_d
You can do it like that, but that's not the optimised way to do it.
You have what is called multiple-to-multiple relationship (many users with many hobbies).
So the principle to connect one to the...
Forum: PHP Jan 2nd, 2008
Replies: 8
Views: 1,243
Posted By johny_d
Try this:
<a>a href="results.php?fl=A">A</a>
<a>a href="results.php?fl=B">B</a>

$fl =$_GET['fl']; // fl - First Letter
if (preg_match('#^[a-z]{1}$#i',$fl)) { // check if it is an allowed value...
Forum: PHP Oct 18th, 2007
Replies: 9
Views: 991
Posted By johny_d
You have a problem in the way your query string is written (because of the way you wrote it, you missed some spaces, between auth and where and between '$userid' and and:
$query="select * from auth"...
Forum: PHP Oct 8th, 2007
Replies: 3
Views: 710
Posted By johny_d
means $item is an array an you cannot put an array in an echo statement; this is why you get nothing.
You need to use $item['name_of_mysql_column'] in your "echo...."
You also have a sintax error:...
Forum: PHP Oct 7th, 2007
Replies: 2
Views: 2,597
Posted By johny_d
First of all, why do you require the "Wordsarray.php" file in each cycle of the while loop?
You should include (require) that file only once, before the loop and than do the while loop.
Than, about...
Forum: PHP Sep 30th, 2007
Replies: 5
Views: 990
Posted By johny_d
Forum: PHP Sep 29th, 2007
Replies: 9
Views: 1,475
Posted By johny_d
Well I think it kind of make no sense of using both methods in the same url:
if you like query strings, stick to them - index.php?act=games&task=play&game=534

otherwise, if you like or want to...
Forum: PHP Sep 29th, 2007
Replies: 5
Views: 990
Posted By johny_d
You should use:
for ($i = 0; $i <= 28; $i++) ......
since the keys of your $random_array are from 0 to 28
Forum: PHP Sep 29th, 2007
Replies: 8
Views: 2,124
Posted By johny_d
Forum: PHP Sep 28th, 2007
Replies: 5
Views: 990
Posted By johny_d
$random_array = array_rand($sAdText, 3);
Forum: PHP Sep 28th, 2007
Replies: 1
Views: 665
Posted By johny_d
<title><?php echo $title; ?></title>
where $title has a value returned by your php script; for instance: the title of an article from the database, the name of the current category, the name of the...
Forum: PHP Sep 28th, 2007
Replies: 8
Views: 2,124
Posted By johny_d
Here's a statistic from one of my sites, but I can tell you that is about the same from all my other sites:
1024x768 (45.9%)
1280x800 (12.3%)
800x600 (10.4%)
1280x1024 (9.7%)
1152x864 (3.2%)...
Forum: PHP Sep 28th, 2007
Replies: 9
Views: 1,475
Posted By johny_d
If you use mod_rewrite, why don't you use it all the way???

RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([0-9]+)/$ index.php?act=$1&task=$2&game=$3

or

RewriteRule...
Forum: PHP Sep 26th, 2007
Replies: 7
Views: 1,882
Posted By johny_d
Forum: PHP Sep 24th, 2007
Replies: 22
Views: 2,953
Posted By johny_d
Here's your code:

This is 'show.php'

<p>header</p>
<hr />
<?php
if (isset($_GET['show']) && $_GET['show'] == 'warning') {
echo '<p><a href="show.php">Close warning</a></p>';
include...
Forum: PHP Sep 24th, 2007
Replies: 7
Views: 1,882
Posted By johny_d
to the header file;
if you don't know exactly what the path is, wright here the path to both your 'header.php' file and the main file (the one that tries to include the header), starting from the...
Forum: PHP Sep 23rd, 2007
Replies: 22
Views: 2,953
Posted By johny_d
Hey, kkeith29, don't take it so personally; I didn't meant you were stupid; I wasn't even replying to you, but to Syakoban; your solution is very good if you want to reload the page; I just...
Forum: PHP Sep 23rd, 2007
Replies: 7
Views: 1,882
Posted By johny_d
That's exactly what I said: the path to the file is wrong.
Try to use a relative path, instead of an absolute path and make sure it is correct.
Forum: PHP Sep 23rd, 2007
Replies: 22
Views: 2,953
Posted By johny_d
Actually, kkeith29 example doesn't load new content in the original page; it just reloads the page with a parameter passed through the $_GET variable, and shows some text as a response of that...
Forum: PHP Sep 23rd, 2007
Replies: 7
Views: 1,882
Posted By johny_d
You pobably have a sintax (writing) error in your 'header.php' file; check that you have closed all the brackets and parenthesis and also that you have sthe ';" at the end of every line of code etc....
Forum: Search Engine Optimization Sep 10th, 2007
Replies: 10
Views: 3,820
Posted By johny_d
Whatever you say :)
Forum: Search Engine Optimization Sep 10th, 2007
Replies: 10
Views: 3,820
Posted By johny_d
stymiee, if you weren't so full of what you know and so convinced that everybody else is a newbie, you would understand that I wasn't talking about the code of page as the "html tags" but rather...
Forum: Search Engine Optimization Sep 9th, 2007
Replies: 10
Views: 3,820
Posted By johny_d
Of course the links are inportant for ones site, but more important than them is the UNIQUE content of your pages; if you know the basics about SEO, you must know that; also, it's a well known thing...
Forum: PHP Sep 7th, 2007
Replies: 2
Views: 932
Posted By johny_d
MitkOK is right with his code; but you have bigger problems before that:
- first of all, don't mix javascript function calls with php defined functions; get rid of those onClick="<? ....; those are...
Forum: ASP.NET Sep 7th, 2007
Replies: 5
Views: 5,465
Posted By johny_d
Can't you see this is spam???
This guy has two posts that advertise his template directory; hey, admin, you should do something about it, before he starts 100 posts advertising his site.
Forum: Search Engine Optimization Sep 7th, 2007
Replies: 10
Views: 3,820
Posted By johny_d
You're welcome ;)
Forum: Search Engine Optimization Sep 4th, 2007
Replies: 10
Views: 3,820
Posted By johny_d
It matters very much; as a principle, try to have the main content as close to the top of the code of page as you can; on the other hand, the repetitive content - that search engines tend to...
Forum: PHP Jul 17th, 2007
Replies: 2
Views: 2,639
Posted By johny_d
Let's think about the logic of things:
First step, we check if the user already voted - we check if the cookie is already set (beware that this is not very secure way to check that a user already...
Forum: PHP Jul 16th, 2007
Replies: 18
Views: 3,986
Posted By johny_d
Forum: PHP Jul 15th, 2007
Replies: 18
Views: 3,986
Posted By johny_d
Regarding the check for cookies enabled or not, I use a different method:
I check for the SID constant - if cookies are enabled, than SID is an empty string, if cookies are disabled, SID is a string...
Forum: PHP Jul 15th, 2007
Replies: 1
Views: 1,900
Posted By johny_d
First, if you have Register Globals = Off in your php.ini (which is recommended), than you have to extract your $status variable from your post data, with a line like:
$status = $_POST['status'];...
Forum: PHP Jun 1st, 2007
Replies: 13
Views: 3,513
Posted By johny_d
I'm on Windows, and I have:
# configure the path to php.ini
PHPIniDir "C:/php"
I don't know how it is on Linux; maybe you figure it out from here:...
Forum: PHP May 31st, 2007
Replies: 13
Views: 3,513
Posted By johny_d
If I'm not mistaking, you should also define the absolute path to your php.ini in your apache httpd.conf. Try this too, who knows...
Forum: PHP May 27th, 2007
Replies: 9
Views: 1,518
Posted By johny_d
That is an array of arrays.
That means that each key of the top level array point to an array instead of a string value.
You can write that expression in another way:

$step[$d['pid']] = array...
Forum: PHP May 27th, 2007
Replies: 5
Views: 1,556
Posted By johny_d
I'm glad you found a solution to your problem; see you arround.
Forum: PHP May 25th, 2007
Replies: 5
Views: 1,556
Posted By johny_d
Try this

$query_1 = "SELECT billingStatementNo, transactionDate, transactionType, subjectCode, clientID, attorneyID, rateHour, consumedHour, currency, legalFees, checkInvoice FROM...
Forum: PHP May 25th, 2007
Replies: 9
Views: 1,518
Posted By johny_d
Well, all that's there are basic tables that you can find in php manual.
The way you structure the tables is another thing and that you don't find in books. First, you have to understand what you...
Forum: Search Engine Optimization May 24th, 2007
Replies: 3
Views: 1,019
Posted By johny_d
As long as the content is unique and comes up naturally (not 1000 pages over-night), than you'll be ok, no matter how many sites you have on one server.
Forum: PHP May 24th, 2007
Replies: 9
Views: 1,518
Posted By johny_d
I'm glad to be of help ;)
Forum: Search Engine Optimization May 24th, 2007
Replies: 4
Views: 1,763
Posted By johny_d
There would be something to say:
1. You don't have a DOCTYPE declaration, whitch I think is very important; you must correct that. Check...
Showing results 1 to 40 of 68

 


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

©2003 - 2009 DaniWeb® LLC