User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 370,569 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,980 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 17 of 17
Search took 0.01 seconds.
Posts Made By: justinm
Forum: PHP Jul 5th, 2007
Replies: 3
Views: 693
Posted By justinm
Re: reviews,news script

make your own?
look in the tutorials area...
Forum: PHP Jul 5th, 2007
Replies: 43
Views: 95,849
Posted By justinm
Re: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource

the problem with that query is his use of a class object in the query $this->user this should be at the very least sanitised to avoid query issues.

But then again...
Forum: PHP Jul 5th, 2007
Replies: 43
Views: 95,849
Posted By justinm
Re: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource

$query = "SELECT sub_id FROM raters
WHERE Name = '$tr_name'
AND Email = '$tr_email'
"
or die(mysql_error());
$result = mysql_query($query);
1.
your query should be
$query = "select sub_id from...
Forum: PHP May 7th, 2007
Replies: 3
Views: 1,419
Posted By justinm
Re: download & extract .tar.bz2 to w/s from a http

the files within the tar/gz are .csv files, with /t seperators.

I already have the script to read the files, and add them to the database, I want to know how to extract the .csv's from the archives...
Forum: PHP May 3rd, 2007
Replies: 3
Views: 1,419
Posted By justinm
download & extract .tar.bz2 to w/s from a http

Want to download a .tar.bz2 and extract, then run the file into the database.
Eventually I will be setting up some sort of a crontab job thingmebob, but for the moment, I want to be able to extract...
Forum: JavaScript / DHTML / AJAX Apr 24th, 2007
Replies: 35
Views: 5,318
Posted By justinm
Re: Opinions? javascript/php/etc and programming standards

<?php because you won't always know if the sever is using apache, and if it has short tags on.
Forum: PHP Apr 5th, 2007
Replies: 2
Views: 1,201
Posted By justinm
Re: Best news / article script ?

i found a good one to be a forum, and a script to pull data straight from the database :)
Forum: PHP Apr 3rd, 2007
Replies: 2
Views: 1,169
Posted By justinm
Re: PHP gaming site

make your own script, you will need a database, the proper fields, a select statement, and a 'while' statement to populate the table.


www.hotscripts.com has some good tutorials, same with...
Forum: HTML and CSS Mar 29th, 2007
Replies: 18
Views: 2,619
Posted By justinm
Re: Trying to use not tables, only CSS, but can I?

640x480 14" damn! that is plain awful!

haha yeah, first thing i do after setting up and installing network is straight away to firefox to get latest version, the MS updates.

Centred is the way to...
Forum: PHP Mar 28th, 2007
Replies: 2
Views: 1,912
Posted By justinm
Re: Parse error: parse error, unexpected $end

Either the error code and line with more detailed code, or the code from the page itself.

But, if you opened up a {, you must close it with another }, try putting that inbetween the <?php & ?>...
Forum: HTML and CSS Mar 28th, 2007
Replies: 18
Views: 2,619
Posted By justinm
Re: Trying to use not tables, only CSS, but can I?

I do also expect users to resize my pages, however I prefer it if the information does not get squashed or mangled/deformed. When I design something, I design it a specific way, and I dislike the...
Forum: JavaScript / DHTML / AJAX Mar 28th, 2007
Replies: 35
Views: 5,318
Posted By justinm
Re: Opinions? javascript/php/etc and programming standards

Yes that is true, it is easier to read and pickup on other coders style if they are clean and have good consistent naming convention, and at least some consistency throughout the project. My biggest...
Forum: JavaScript / DHTML / AJAX Mar 28th, 2007
Replies: 35
Views: 5,318
Posted By justinm
Re: Opinions? javascript/php/etc and programming standards

I absolutely agree with this.

I have worked in PHP now for several months, Java about a year, C++ a few months, and I have found that apart from the awful mess of HTML indenting (3 nested tables,...
Forum: HTML and CSS Mar 28th, 2007
Replies: 18
Views: 2,619
Posted By justinm
Re: Trying to use not tables, only CSS, but can I?

true, you can desgign fixed width websites without needing to be centered, just preferred left aligned, and at least 800wide.

best sizes these days are 800-1024 wide, and a lot of sites that are...
Forum: PHP Mar 27th, 2007
Replies: 3
Views: 582
Posted By justinm
Re: operations

in code...


if(empty($_POST['username'])){
echo "Sorry, you need to enter a username.";
//do focus here
exit();
if(empty($_POST['password'])){
echo "You need to enter a password.";
// do focus here
Forum: PHP Mar 27th, 2007
Replies: 9
Views: 1,811
Posted By justinm
Re: php + mysql

easiest way, and you don't need to refresh any part of the page either...

using javascript, you can use a div or iframe & set a timer to refresh that part of the screen at x amount of mins/hours.
Forum: PHP Mar 27th, 2007
Replies: 1
Views: 495
Posted By justinm
Re: PHP Help needed badly

the easiest way is to setup a database if you have access, create a form that sends the login information from the session

$ARG['userid'] = $_SESSION['userid']';
$ARG['write'] = $_SESSION['level'];...
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 4:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC