Search Results

Showing results 1 to 40 of 863
Search took 0.05 seconds.
Search: Posts Made By: ardav
Forum: PHP 5 Hours Ago
Replies: 6
Views: 194
Posted By ardav
It seems to me that you have a bit of an odd DB structure (sorry no offence intended).

Models
id (PK)
manufacturer (FK on manufacturer id)
name (e.g. Inspiron 1520)
description (blurb for...
Forum: PHP 19 Hours Ago
Replies: 1
Views: 119
Posted By ardav
Try Ustream for video streaming. There are some free Java apps on sourceforge, but they need to be compiled after changing the config files.
Forum: PHP 20 Hours Ago
Replies: 3
Views: 85
Posted By ardav
You have named $_SESSION correctly in the second file, but have named it $_Session (incorrect) in the first. Variables are case sensitive.
Forum: PHP 20 Hours Ago
Replies: 3
Views: 92
Posted By ardav
You use templates as a rule, with mysql data and include files. Surely, you know that if you're creating a forum?
Forum: PHP 20 Hours Ago
Replies: 2
Views: 78
Posted By ardav
print '<style type="text/"
media="screen>
.error { color: red; }
</style>';

This is wrong. You have a mess. If you delete this the form will show. You have an unclosed ". So everything...
Forum: PHP 1 Day Ago
Replies: 1
Views: 102
Posted By ardav
Here's a good example in a forum (you'll need to scroll to the bottom - it's a long thread!): http://www.codingforums.com/archive/index.php/t-71233.html
Forum: PHP 1 Day Ago
Replies: 6
Views: 194
Posted By ardav
I suggest that you use a relational model for your DB. The Type should have its own table, as should OnlineHighstreet (although this isn't essential). Your main table should then have integers...
Forum: PHP 1 Day Ago
Replies: 3
Views: 129
Posted By ardav
Change this line to hide the extras by default:
<div id = "extras" class="hide">
Also you need a selected="selected" attribute inside the first radiobutton to ensure that the first one (5 file) is...
Forum: PHP 2 Days Ago
Replies: 3
Views: 129
Posted By ardav
AM I correct in assuming you have:
2 radiobuttons - one to display 5 file upload fields and one to display 10 upload fields.

A quick and dirty solution would be to hide/show through javascript...
Forum: PHP 2 Days Ago
Replies: 8
Solved: Querystring
Views: 129
Posted By ardav
So it's solved?
Forum: PHP 2 Days Ago
Replies: 1
Views: 78
Posted By ardav
Have you checked the view-source?
They use the same name for all checkboxes and apply a numerical value to each based on the 'id' of the category in the DB.
So the $_POST['categories'] variable...
Forum: PHP 2 Days Ago
Replies: 8
Solved: Querystring
Views: 129
Posted By ardav
IS the 'page' parameter actually doing anything? You could just not set it in the first place. OR you could just ignore it, i.e. not have $_GET['page'] do anything. Once the 'page' has been passed to...
Forum: PHP 2 Days Ago
Replies: 2
Views: 113
Posted By ardav
Buy a service. You won't be able to do this for free
Forum: PHP 2 Days Ago
Replies: 1
Views: 82
Posted By ardav
You could save all the info in a blob field (no physical file - just some encoded info in a field, which can produce a file on demand), OR just store an url/path for a physical file stored in a...
Forum: PHP 3 Days Ago
Replies: 6
Views: 177
Posted By ardav
You don't actually need to explicitly define foreign keys. Purists may scoff at this as you may end up with invalid data in the friends table. However, if you take care not to delete users, the...
Forum: PHP 3 Days Ago
Replies: 4
Views: 115
Posted By ardav
I'd suggest that you only use one main folder for images anyway. This then obviates the need for conditional rename functions.

Use the public document root (html) as opposed to the virtual...
Forum: PHP 3 Days Ago
Replies: 2
Views: 83
Posted By ardav
I take it that your invoice field just contains the file's url and not the file itself.

$inv = $row['invoice'];
$base = basename($inv); //you don't want to display the full path in the link label...
Forum: PHP 3 Days Ago
Replies: 2
Views: 91
Posted By ardav
if you know which part of the website you need, you can use cURL to 'grab' the specific part. However, the page will need to be reasonably 'static' or at least have a consistent structure has it is...
Forum: PHP 3 Days Ago
Replies: 6
Views: 164
Posted By ardav
Why not?
You can use PHP to send emails/store messages from one user to another in a DB. This implementation can be as simple or as complex as you like.

If you're interested in making a simple...
Forum: PHP 3 Days Ago
Replies: 30
Views: 603
Posted By ardav
@rokape - it's SOLVED!!
Forum: PHP 3 Days Ago
Replies: 7
Solved: session in php
Views: 155
Posted By ardav
You don't need to check. session_start() will not start a new session overwriting the old one. It just propagates.
session_destroy wouldn't be used very often, unless in a logout page or similar....
Forum: PHP 4 Days Ago
Replies: 12
Views: 221
Posted By ardav
You should use the LIMIT keyword in the sql query.

SELECT ... FROM ... WHERE .... ORDER BY .... LIMIT(x,y)

The WHERE and ORDER BY clauses are optional
LIMIT has two parameters (both integers)...
Forum: PHP 4 Days Ago
Replies: 3
Views: 117
Posted By ardav
Can't see any documentation on the site, and I ain't gonna download the app.

How about:


if($_POST[{{howpay}}] == "paypal") ...


If so, I fail to see the use of the variable name swapping.
Forum: PHP 4 Days Ago
Replies: 3
Views: 117
Posted By ardav
Do you need to enclose paypal within quotes?
This is a templating engine I take it.


<?php
if({{howpay}} == "paypal"){
...
}
?>
Forum: PHP 4 Days Ago
Replies: 8
Views: 174
Posted By ardav
Like some mentioned, you'll need to decide on your options.
Also you'll need to ensure that punctuation marks are not included
in your words to check. It's possible that some words will have...
Forum: PHP 4 Days Ago
Replies: 30
Views: 603
Posted By ardav
Yep, sam023 did mention it.
Forum: PHP 4 Days Ago
Replies: 4
Solved: Age Calculation
Views: 144
Posted By ardav
Should be clear from the next row but if not:

b_day = strtotime("1/1/1970") //is also in m/d/Y (US) format

@EF - sorry for jumping in.
Forum: PHP 4 Days Ago
Replies: 7
Views: 196
Posted By ardav
Sounds like a stupid question, but are the contents of the different files actually different? Try the 'echo' code in my previous post to see which day is being passed.
Forum: PHP 5 Days Ago
Replies: 30
Views: 603
Posted By ardav
I shouldn't have thought it would make much difference, but have you included an

exit;
on the next line after the header() statement?

In addition, make sure there is no html output including...
Forum: PHP 5 Days Ago
Replies: 7
Views: 196
Posted By ardav
Your links don't work.

BTW: Atli's solution is much nicer than mine - I attempted to fix your code, whereas he's done a complete makeover. His code works as long as you synchronize the 'day...
Forum: PHP 5 Days Ago
Replies: 6
Views: 177
Posted By ardav
users2 is an alias for your 'users' table
reqs is another alias for your 'users' table

I have taken that your 'users' table has the following fields (amongst others):

id (an autoincrement...
Forum: PHP 5 Days Ago
Replies: 7
Views: 196
Posted By ardav
The querystring handling looks like just a shocking mess (sorry!). You've got short tags all over the place, multiple if/elseifs.

I really don't understand why you're using 'N' and 'w' - surely...
Forum: PHP 5 Days Ago
Replies: 6
Views: 177
Posted By ardav
OK

$rs = mysql_query("SELECT friends.*,users2.username,reqs.username AS requsername
from friends
LEFT JOIN users users2 ON friends.user = users2.id
LEFT JOIN users reqs ON friends.req = reqs.id...
Forum: PHP 5 Days Ago
Replies: 6
Views: 177
Posted By ardav
$rs = mysql_query("SELECT * FROM friends WHERE (reg = '$id' AND confirmed = '1') OR (user ='$id' AND confirmed = '1')");

while($data = mysql_fetch_array($rs)){
if($data['user'] != $id){
...
Forum: HTML and CSS 6 Days Ago
Replies: 9
Views: 216
Posted By ardav
This CSS3 technique (border-radius) works fine for Mozilla/webkit browsers, but not IE (not even IE8 - as far as I know). IE requires a 'fallback' method which probably includes extra markup - be it...
Forum: PHP 6 Days Ago
Replies: 30
Views: 603
Posted By ardav
Do any of your php pages show as "proper webpages" in FF? It's just possibel that the Apache webserver, although installed, is not on. I am not familiar with WAMP (I use XAMPP), but I assume it has a...
Forum: HTML and CSS 6 Days Ago
Replies: 9
Views: 216
Posted By ardav
Rounded corners can also be applied via JS, but you'd be better off looking at a pure css/html solution. Try, if possible, to keep the integrity of your html and not include too much 'design' markup....
Forum: PHP 6 Days Ago
Replies: 13
Views: 344
Posted By ardav
$data = mysqli_query($dbc, $query);

Should this be:

$data = mysqli_query($query, $dbc);

Having not used mysqli - I can't comment, but I think the first parameter should be the query, then...
Forum: PHP 6 Days Ago
Replies: 1
Views: 93
Posted By ardav
Try running this directly in the phpMyAdmin SQL box (replace variables with static values) and see what you get. It could be something as simple as misnaming a table.
BTW, when using aliases, use...
Forum: PHP 6 Days Ago
Replies: 4
Views: 126
Posted By ardav
Again, an API for these sites would be useful. cURL can give some functionality. You could even use an iframe to display a remote form on one of your pages - depending on your needs.

Failing all...
Showing results 1 to 40 of 863

 


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

©2003 - 2009 DaniWeb® LLC