DanceInstructor 19 Posting Whiz

You can also try: http://www.ajaxlessons.com/

DanceInstructor 19 Posting Whiz

It means the webserver doesn't have permission to write to the "Uploads" folder that you created. The webserver runs as a different user, so you will need to change permissions on the folder or chown (change ownership) of the folder to the webserver.

Yay me 200 posts :lol:

DanceInstructor 19 Posting Whiz

Are you sure it is returning a result? I don't think an empty result will cause it to die. So what I mean is that for some reason there is no result for either query, therefore they are the same result...

Dance

DanceInstructor 19 Posting Whiz

You will want to add:

DirectoryIndex

to the .htaccess file for each directory. There may be another way to do this, but this should work.

So for example:

In the directory: phd/
add this line to your .htaccess: DirectoryIndex phd.html

DanceInstructor 19 Posting Whiz

What type of degree/class is this for?

DanceInstructor 19 Posting Whiz

I don't know if it will work or not :-| Its just a guess.

DanceInstructor 19 Posting Whiz

I think he is saying he is using other peoples accounts to advertise so he doesn't have to pay. Sounds illegal to me...

DanceInstructor 19 Posting Whiz

So mod_rewrite is enabled...

Then I would like to see if my server allow .htaccess override...
so to check this... I've written a simple command in .htaccess
Redirect /google.html http://www.google.com

But if I browse over it... http://localhost/Rewrite_Tester/google.html
I get a 404 error page...

Where you used Redirect /google.html http://www.google.com. Redirect is an apache directive. If you go here you will see that it clearly states Module: mod_alias.

I don't see any spot in your origional post where you actually used mod_rewrite. At any rate I am glad you have had some success :)

DanceInstructor 19 Posting Whiz

From everything I have read you have to have a copy of the MS-SQL server to get that file...

DanceInstructor 19 Posting Whiz

There is a little bit of delay from when you make your 10th post to when you can actually add the signature (not sure why). So if you view your control panel now you should able to see where to add your sig. If not today then definitley by tomorrow

DanceInstructor 19 Posting Whiz
$stuff=ocifetchstatement ($Statement, &$arr, 0, 20, OCI_FETCHSTATEMENT_BY_ROW);

     foreach($arr as $key => $row)
      {
        $optionlist.= "<option value=\"{$row['PASSENGERID']}\">{$row['PASSENGERID']}/{$row['FIRSTNAME']} {$row['SURNAME']}";
      }

Silly me. Try this instead.

DanceInstructor 19 Posting Whiz

Just for kicks try searching yahoo or msn. Their results are not so geared towards backlinks and since the 2.0 modrewrite version (if it exists) is newer it won't have as many backlinks.

DanceInstructor 19 Posting Whiz
$stuff=ocifetchstatement ($Statement, &$arr, 0, 20, OCI_FETCHSTATEMENT_BY_ROW);

     foreach($arr as $key => $row)
      {
        $optionlist.= "<option value=\"$row['PASSENGERID']\">$row['PASSENGERID']/$row['FIRSTNAME'] $row['SURNAME']";
      }

That should do the trick.

DanceInstructor 19 Posting Whiz

Your question is very vague. Are you talking about styling or about data retrieval?

If styling then yes. For data retrieval you will need some kind of scripting language involved.

DanceInstructor 19 Posting Whiz

Why don't you go to the site of the creators of the software? You can try the tutorial.

DanceInstructor 19 Posting Whiz

Try it this way. Added / on very last line.

<!ENTITY % ft7777 SYSTEM "http://www.alcides.net/newsite/dtd/ft7777.dtd">
    %ft7777;
] />
DanceInstructor 19 Posting Whiz

Change:

Redirect /google.html http://www.google.com

to:

Redirect /Rewrite_Tester http://www.google.com

or it may need to be:

Redirect /Rewrite_Tester/ http://www.google.com

depending on your apache installation. It looks like Redirect only accepts paths and not file names. You also realize that Redirect is mod_alias yes?

DanceInstructor 19 Posting Whiz

Do you have the GUI MySQL Administrator? If not download it.

Log in to the Administrator. On the left side choose startup variables. Then on the right side at the top choose the security tab. Click on 'Use old qasswords'. Then restart your MySQL Instance. You may also need to create another database...

Hope this helps.

DanceInstructor 19 Posting Whiz

I have not seen one. What do you envision such a script doing exactly?

DanceInstructor 19 Posting Whiz

Change this:

$stuff=ocifetchstatement ($Statement, &$arr, 0, 20, OCI_FETCHSTATEMENT_BY_ROW);

     foreach($arr as $key => $row)
      {
        $optionlist.= "<option value=\"$row[0]\">$row[0]/$row[1]";
      }

to look like this:

$stuff=ocifetchstatement ($Statement, &$arr, 0, 20, OCI_FETCHSTATEMENT_BY_ROW);
    echo('<pre>');
    print_r($arr);
    echo('</pre>');
     foreach($arr as $key => $row)
      {
        $optionlist.= "<option value=\"$row[0]\">$row[0]/$row[1]";
      }

It will allow you to see what $arr looks like.

DanceInstructor 19 Posting Whiz

You can only edit your post for an hour (i think) after you post it origionally. So to get it changed he will need to seek help from an mod or admin.

DanceInstructor 19 Posting Whiz

I'm assuming you want this in insertbooking.html, but you will need to make it a php file as well so you will have to change the name. I'm also assuming that you have only 2 columns in your passenger table, so if you have more you will have to change $row[0] or $row[1] to the appropriate $row, also make sure passengertable is changed to the name of the table holding your passenger data. Don't expect this to work straight out as I don't have an oracle db to test on and I can never write code the first time without errors :p , but you should be able to see how to do it with some slight modification.

GL

<?php
// connect to database
putenv("ORACLE_SID=area");
if ($Connection = ocilogon("u2o30", "u2o30"))
{
// assemble query
$Sql = "SELECT * FROM passengertable";  // passengertable should be changed to
//the table that holds your passenger data
// parse it
$Statement = ociparse($Connection, $Sql);
if ($Statement)
{
   if (ociexecute($Statement))
  {
    $stuff=ocifetchstatement ($Statement, &$arr, 0, 20, OCI_FETCHSTATEMENT_BY_ROW);

     foreach($arr as $key => $row)
      {
        $optionlist.= "<option value=\"$row[0]\">$row[0]/$row[1]";
      }
  }
}
?>

<body>
<u>Book A Flight</u><br>
<form action="insertbooking.php" method="post">

<table width="80%" border="0" cellspacing="2">

<tr>
<td>Booking ID (B000):</td>
<td><input name="BookingID" type="text" size="30" maxlength="30" /></td>
</tr>
<tr>
<td>Passenger ID (0000):</td>
<td>
<select name="RouteID">
<?php echo($optionlist); ?>
</select>
</td>
</tr>
<tr>
<td>Flight ID (F000):</td>
<td><input name="FlightID" type="text" size="30" maxlength="30" /></td>
</tr>
<tr>
<td>Route ID:</td>
<td><select name="RouteID">
<option value="01">East Midlands to London Heathrow</option>
<option value="02">East Midlands to London Gatwick</option>
<option …
DanceInstructor 19 Posting Whiz

Have you been able to make a connection to the oracle database with php. That is the first hurdle you must pass. If not, try adapting the script on this page to work on your server.

<?php
// script from http://us3.php.net/manual/en/function.ocilogon.php
echo "<pre>";
$db = "";

$c1 = ocilogon("scott", "tiger", $db);
$c2 = ocilogon("scott", "tiger", $db);

function create_table($conn)
{
  $stmt = ociparse($conn, "create table scott.hallo (test varchar2(64))");
  ociexecute($stmt);
  echo $conn . " created table\n\n";
}

function drop_table($conn)
{
  $stmt = ociparse($conn, "drop table scott.hallo");
  ociexecute($stmt);
  echo $conn . " dropped table\n\n";
}

function insert_data($conn)
{
  $stmt = ociparse($conn, "insert into scott.hallo
           values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))");
  ociexecute($stmt, OCI_DEFAULT);
  echo $conn . " inserted hallo\n\n";
}

function delete_data($conn)
{
  $stmt = ociparse($conn, "delete from scott.hallo");
  ociexecute($stmt, OCI_DEFAULT);
  echo $conn . " deleted hallo\n\n";
}

function commit($conn)
{
  ocicommit($conn);
  echo $conn . " committed\n\n";
}

function rollback($conn)
{
  ocirollback($conn);
  echo $conn . " rollback\n\n";
}

function select_data($conn)
{
  $stmt = ociparse($conn, "select * from scott.hallo");
  ociexecute($stmt, OCI_DEFAULT);
  echo $conn."----selecting\n\n";
  while (ocifetch($stmt)) {
   echo $conn . " [" . ociresult($stmt, "TEST") . "]\n\n";
  }
  echo $conn . "----done\n\n";
}

create_table($c1);
insert_data($c1);  // Insert a row using c1
insert_data($c2);  // Insert a row using c2

select_data($c1);  // Results of both inserts are returned
select_data($c2); 

rollback($c1);      // Rollback using c1

select_data($c1);  // Both inserts have been rolled back
select_data($c2); 

insert_data($c2);  // Insert a row using c2
commit($c2);        // Commit using c2

select_data($c1);  // Result of c2 insert is returned …
DanceInstructor 19 Posting Whiz

Please don't double post.

DanceInstructor 19 Posting Whiz

If you have code you should post it...

DanceInstructor 19 Posting Whiz

Have you seen this page or this page??

DanceInstructor 19 Posting Whiz

Glad you got it working.

DanceInstructor 19 Posting Whiz

You mean that you want to create a web page to do this? You can see how to create a dropdown box here

DanceInstructor 19 Posting Whiz

Have you tried:

header("Content-type: application/x-zip");

Also, you open the file and put the data into $data. Then you use the class and use the variable $filedata. Should they be the same??

DanceInstructor 19 Posting Whiz

Hmm never used this so..... (im not sure)

go to Slide Show
choose Online Broadcast
choose Record and Save a Broadcast

Like I said I've never used Powerpoint so I'm not sure.

DanceInstructor 19 Posting Whiz

You will be happy to know that this works in Firefox, but not in Internet Explorer. I'm not sure what the exact problem is, but it has something to do with the DOM and browser compatibility. If I figure it out I will let you know.

DanceInstructor 19 Posting Whiz

Is it required that you use access?

DanceInstructor 19 Posting Whiz

Are you using a scripting language to send the query? Like php or asp? If so you will need to post the code you are using to submit the query.

DanceInstructor 19 Posting Whiz

If you really want help you should post your code, or at least the portion you feel is causing the problem. Offhand it sounds like the zip file on the server has gotten corrupted somehow.

DanceInstructor 19 Posting Whiz

Try wrapping your code in code tags....

DanceInstructor 19 Posting Whiz

There is a pretty good tutorial here. There is also a tutorial here on Daniweb at this link that deals with rewriting for vbulletin. I haven't read the tutorial here on Daniweb, but I'm sure there are lots of questions and answers that may be helpful as it is a huge thread. I also assume you have had a look at the Apache URL Rewriting Guide, I found it very hard to follow :o Understand that you really aren't doing anything in PHP, you will be creating commands that the apache server interprets and executes itself.

Good luck.

DanceInstructor 19 Posting Whiz

The founder coded most of the backend herself. I'm sure she would sell you a version of it for the right price.

DanceInstructor 19 Posting Whiz

Well this line will definitly cause you some problems:

$newcount = mysql_query ("SELECT

DanceInstructor 19 Posting Whiz

Na never learned to clog.

DanceInstructor 19 Posting Whiz

Put it in the body tag:

body {
text-align: center; 
margin: 0px;
background: transparent url(http://www.thadallender.com/blog/images/bg_slim.gif) repeat-y 100%;
}
DanceInstructor 19 Posting Whiz

Yes Internet Explorer supports Javascript. What type of application are you trying to develop?

DanceInstructor 19 Posting Whiz

Codepunk's site isn't fancy or anything, but I find his tutorials very easy to follow and understand. Sorry for the slightly offtopic post :)

DanceInstructor 19 Posting Whiz

Thanks Dave. I guess I'll have to deal with it in php then :(

DanceInstructor 19 Posting Whiz

Nothing in Firefox. Works ok in IE. Let me post an ex:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"/>
<title>Variables</title>
<style>
.var_name
{
      width: 250px;
      overflow: hidden;
}

.var_value
{
      width: 500px;
      overflow: hidden;
}

table
{
      width: 750px;
}
</style>
</head>
<body>
<table border="1" >
<tr>
      <td class="var_name">stuff</td>
      <td class="var_value">01234567891123456789212345678931234567894123456789512345678912345678971234567898123456789912345678901234567891123456789212345678931234567898</td>
</tr>
</table>
DanceInstructor 19 Posting Whiz

If I have a long string of text in say a table cell, how can I make it break so it doesn't cause horizontal scrolling? Thanks :)

DanceInstructor 19 Posting Whiz

I wouldn't use frames at all if possible.

You can use PHP or Javascript to do this.

Javascript:
+you don't have to reload the page
+probably faster
-must upload all pics at once (i think..)
-possible browser support issues(not likely tho)

PHP:
+better browser support (browser sees nothing but html)
+easier to code (IMO-no DOM issues)
-must reload page to modify design
-slower...

If you decide to use PHP I will be glad to sketch out what you need to do, but I don't know much Javascript. My opinion tho is the user would have a better experience if Javascript is used.

DanceInstructor 19 Posting Whiz

Ok. The problem comes when you use ' inside your statement with ' on the outside. So something like this is not good:

echo 'some text 'more text' and more text';

PHP expects 'more text' to be some kind of variable or operator. I think you will need to use " on the outside and \" any " inside of the statement. Something like this:

echo "<a href=\"?pageState=Database\" onMouseOut=\"MM_swapImgRestore()\"
onMouseOver=\"MM_swapImage('database','','Images/databasebuttonpushed.gif',1)\">
<img src=\"Images/databasebutton.gif\" name=\"database\" 
width=\"200\" height=\"30\" border=\"0\"></a>";

Its a pain, but I don't know of any way around it.

DanceInstructor 19 Posting Whiz

:(

You should contact your host about it then....

DanceInstructor 19 Posting Whiz

You may have to delete the file and let the server create it (if it will), then the server will have ownership and the file won't have to be 0777.

DanceInstructor 19 Posting Whiz

You may have to change the ownership of the dir or file or just make it 0777.