User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 374,501 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 2,896 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 40 of 51
Search took 0.01 seconds.
Posts Made By: xan
Forum: *nix Software Jun 1st, 2008
Replies: 0
Views: 384
Posted By xan
Firefox/Java on openSuse

I have upgraded to Firefox 2.0.0.14 on openSuse 10.3 and then downloaded Java 6u6 and installed that, created a symbolic link to java plugin for firefox but whenever I try to load a Java applet it...
Forum: PHP Jun 1st, 2008
Replies: 2
Views: 383
Posted By xan
Re: localhost Apache 2.2/PHP5 won't execute index.php

In the httpd.conf file you should have a line similar to DirectoryIndex index.html

Change this to DirectoryIndex index.php
Forum: PHP May 9th, 2008
Replies: 8
Views: 370
Posted By xan
Re: Variables in Variables

Not sure exactly how variable variables work, but the PHP manual about them is here (http://uk3.php.net/language.variables.variable)
Forum: PHP May 9th, 2008
Replies: 8
Views: 370
Posted By xan
Re: Variables in Variables

The best way to do this would probably be an array:

$abc=array("value1","value2");

for($i = 0; $i < 2; $i++) {
echo $abc[$i];
}
Forum: PHP May 9th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

ah ok, didn't even think about that being turned off as it is usually on by default. :)
Forum: PHP May 9th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

<?php
error_reporting(E_ALL);
// Show simple format of the records so person can choose the reference name/number
// this is then passed to the next page, for all details

$host = "localhost";
$user...
Forum: PHP May 9th, 2008
Replies: 1
Views: 220
Posted By xan
Re: what's the code of changing password...?

We need a little more information on what you want to do;
Do you have passwords in a database, htpasswd file, or other means?
Do you have any code at the moment and what does it do?
are the passwords...
Forum: PHP May 9th, 2008
Replies: 2
Views: 364
Posted By xan
Re: $_COOKIES

Before the form you will need to generate the random number, also you have specified no value for the hidden field, change method= to value=.

To generate the random number do something like...
Forum: PHP May 9th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

I have it working here: http://www.elvenblade.com/test/ with the code I posted in post 29 (http://www.daniweb.com/forums/post603073-29.html)
Forum: PHP May 9th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

try changeing these <? echo $row[number]; ?> to these <?=$row[number]?> in the HTML form.
Forum: PHP May 9th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

No, that is right, $row[0] refers to the column id in the database, the easy way to check, click it and see if the correct number shows up in the URL on the next page...
Forum: PHP May 9th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

make sure that the location in the header() redirect is correct.
Forum: PHP May 9th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

what error do you get on submitting?
Forum: PHP May 8th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

Right, I think this will sort it, I have run the script on my pc with no errors.

I have made a couple of changes to the script, these are in bold.


<?php
error_reporting(E_ALL);

$host =...
Forum: PHP May 8th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

change

mysql_query("update phonebook set First Name='$fname', Last Name='$lname', Phone Number='$phone_num', Extension='$ext', Title='$title', Department='$dept', Fax='$fax' where...
Forum: PHP May 8th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

this part of your code is incorrect, you don't have any POST data from the previous page so $_POST['id'] will return a null value, remove this:

// *** Select data to show on text fields in form....
Forum: PHP May 8th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

Whats the code you are actually using at the moment.
Forum: PHP May 8th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

sorry, spotted another problem with my code, change

if(is_numeric($_REQUEST['id'])) {
mysql_query("SELECT * FROM people WHERE id = `$id`") or...
Forum: PHP May 8th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

In the SQL update query, put the field names in ``, also the names such as First Name and Last Name do not look correct, make sure that the names you use in the query are exactly what shows on the...
Forum: PHP May 8th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

Above post edited, I missed the ; on the end on the mysql_fetch_row line which may be causing the problem
Forum: PHP May 8th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

Your second page should look similar to this: I have highlighted the changes on bold text, also changed the form output details.

<?php
$record = $_POST['record'];
echo "Reference:...
Forum: PHP May 8th, 2008
Replies: 3
Views: 191
Posted By xan
Re: To define() or not to define() that is the question..

If you make a single page (for example index.php) and include the language file depending on which language is wanted, this is a perfectly acceptable use of the define() function. as it will...
Forum: PHP May 8th, 2008
Replies: 4
Views: 407
Posted By xan
Re: php form submitting empty variables

If register globals is on, turn it off, this is possibly the worst function ever, it encourages slack programming and security problems.
Forum: PHP May 8th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

On the phoneupdate1.php page, update it to something similar to the following:


//Connecting to MYSQL
MySQL_connect("$host","$user","$pass");

//Select the database we want to...
Forum: PHP May 8th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

The problem there is that you have gone to a new page, all data in $row will have been lost. You either need to send the data between the pages in the URL query string or re-query the database on...
Forum: PHP May 8th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

A couple of problems with your current code:

mysql_fetch_row returns a row in a numerical array, you would need to use $row[0], $row[1] for displaying the data, to use what you are, you will need to...
Forum: PHP May 7th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

Do other PHP pages work?
Forum: PHP May 7th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

add error_reporting(E_ALL); to the top of the page to override any php.ini config which may be blocking errors from displaying.
Forum: PHP May 7th, 2008
Replies: 2
Views: 160
Posted By xan
Re: PHP problem...

comment the $set and $row_set lines and add this: echo($setSQL); and post the result here.
Forum: PHP May 7th, 2008
Replies: 48
Views: 1,091
Posted By xan
Re: a little help

add this before the while():

if(mysql_num_rows($result)<1) {
echo 'No Results';
} else {
// while statement here
}


This will determine if the query is returning a result
Forum: PHP May 7th, 2008
Replies: 3
Views: 201
Posted By xan
Re: modify headers

The only way to do this would be to have the header() at the top, before any output on the page.

What exactly are you trying to do?
Forum: JavaScript / DHTML / AJAX May 7th, 2008
Replies: 7
Views: 813
Posted By xan
Re: HTML

Look at the links on the left, there is one for 'Learn Javascript' and another for 'Learn PHP'

If there is a specific function you want to know about that isn't covered there, put it into google and...
Forum: JavaScript / DHTML / AJAX May 6th, 2008
Replies: 4
Views: 852
Posted By xan
Re: Login window?

If you mean the popup window that appears in your browser asking for a username and password, this relies on the htaccess and htpasswd files, was it this you are looking for or another type of login...
Forum: PHP May 6th, 2008
Replies: 4
Views: 231
Posted By xan
Re: Help: Multiple user levels code

You can pass data between pages either using sessions or cookies,

In the database you would need to have another column along with the username and password for the user level or status.

The...
Forum: PHP May 6th, 2008
Replies: 10
Views: 448
Posted By xan
Re: PHP Custom CMS; Need Help With Multiple Paragraph Tags

I can't say I have heard of that function before, may be worth looking into for future projects :)
Forum: JavaScript / DHTML / AJAX May 6th, 2008
Replies: 1
Views: 1,131
Posted By xan
Re: open a new window in same window

There are alot of artices on this subject from a quick google search for' javascript popup reload parent' (remember, Google is a friend)

What you need to do is on the popup have a function to close...
Forum: JavaScript / DHTML / AJAX May 6th, 2008
Replies: 7
Views: 813
Posted By xan
Re: HTML

Using just PHP and JavaScript, you would be limited on what you can do, your pages would be unformatted, lines of text. HTML is essentially a prerequisite to PHP and Javascript. PHP is a server-side...
Forum: PHP May 6th, 2008
Replies: 10
Views: 448
Posted By xan
Re: PHP Custom CMS; Need Help With Multiple Paragraph Tags

In response to the point about add/strip slashes, here is an example:

You have HTML tags and attributes you want to add to the db, such as <a href='somelink' title='sometitle'> Using the query to...
Forum: PHP May 6th, 2008
Replies: 10
Views: 448
Posted By xan
Re: PHP Custom CMS; Need Help With Multiple Paragraph Tags

If you type this into a text editor with a line break and then copy/paste it into the database, this will also be moved into the SQL field and PHP will echo a new line as well as the code.

Another...
Forum: PHP May 5th, 2008
Replies: 13
Views: 452
Posted By xan
Re: PHP / CSS incompatibility?

You should change
if($_POST['submit'])

to

if(isset($_POST['usern']))

OR
Showing results 1 to 40 of 51

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