Forum: *nix Software Jun 1st, 2008 |
| Replies: 0 Views: 384 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 |
Forum: PHP May 9th, 2008 |
| Replies: 8 Views: 370 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 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 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 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 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 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 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 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 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 |
Forum: PHP May 9th, 2008 |
| Replies: 48 Views: 1,091 |
Forum: PHP May 8th, 2008 |
| Replies: 48 Views: 1,091 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 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 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 |
Forum: PHP May 8th, 2008 |
| Replies: 48 Views: 1,091 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 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 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 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 |
Forum: PHP May 8th, 2008 |
| Replies: 4 Views: 407 |
Forum: PHP May 8th, 2008 |
| Replies: 48 Views: 1,091 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 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 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 |
Forum: PHP May 7th, 2008 |
| Replies: 48 Views: 1,091 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 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 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 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 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 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 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 |
Forum: JavaScript / DHTML / AJAX May 6th, 2008 |
| Replies: 1 Views: 1,131 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 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 |
Forum: PHP May 6th, 2008 |
| Replies: 10 Views: 448 |
Forum: PHP May 5th, 2008 |
| Replies: 13 Views: 452 |