Squidge 101 Newbie Poster

looking over a google search states HTACCESS cannot be used to alter global text in the manner you are trying to do

Squidge 101 Newbie Poster

You are ending your message line and not actually including the returns:

$MESSAGE_BODY = "Name is contacting you from Mas Des Filles Contact Page" .""; 
 "------------------------------------------------------------\r\n" . 
    $MESSAGE_BODY = "Name: ".nl2br($_POST["contact_name"]).""; 
 "------------------------------------------------------------\r\n" . 
    $MESSAGE_BODY .= "Email: ".nl2br($_POST["contact_email"]).""; 
 "------------------------------------------------------------\r\n" . 
    $MESSAGE_BODY .= "Contact: ".nl2br($_POST["contact_tel"]).""; 
 "------------------------------------------------------------\r\n" . 
    $MESSAGE_BODY .= "Message: ".nl2br($_POST["contact_query"]).""; 
 "------------------------------------------------------------\n" . 
    mail($ToEmail, $EmailSubject, $MESSAGE_BODY) or die ("Failure"); 

Try:

$MESSAGE_BODY = "Name is contacting you from Mas Des Filles Contact Page" ."\r\n"; 
 "------------------------------------------------------------\r\n" . 
    $MESSAGE_BODY = "Name: ".nl2br($_POST["contact_name"])."\r\n"; 
 "------------------------------------------------------------\r\n" . 
    $MESSAGE_BODY .= "Email: ".nl2br($_POST["contact_email"])."\r\n"; 
 "------------------------------------------------------------\r\n" . 
    $MESSAGE_BODY .= "Contact: ".nl2br($_POST["contact_tel"])."\r\n"; 
 "------------------------------------------------------------\r\n" . 
    $MESSAGE_BODY .= "Message: ".nl2br($_POST["contact_query"])."\r\n"; 
 "------------------------------------------------------------\n" . 
    mail($ToEmail, $EmailSubject, $MESSAGE_BODY) or die ("Failure"); 
Squidge 101 Newbie Poster

Can you advise what u did so it can be searched for other users?

Squidge 101 Newbie Poster

@Deepak,

Once you have confirmed re write is enabled, you also need to set your base:

RewriteBase / = these makes "/" the return for where all rewrites will start from. Looking at what you have posted this is a key item that is missing.

Also for the rule itself:

RewriteEngine On
RewriteRule ^([^/]*)$ /index.php?rt=$1 [L]

I hope that helps

Squidge 101 Newbie Poster

No ducati????????;-)

Squidge 101 Newbie Poster

can you advise this part of code:
Notice: Undefined index: ItemID in /u/students/j/j.d.dancks/public_html/onestopshop/newsearchresults.php on line 234

Squidge 101 Newbie Poster

have you tried dumping the information to make sure your variable is being populated?

var_dump($match);

Squidge 101 Newbie Poster

evening.

Line 16 and Line 17 you are using variables but no info to them.

Look here on how to use func_num_args()

http://php.net/manual/en/function.func-num-args.php

Looking at the code, have you tried breaking this down to single functions and testing them individualy?

Squidge 101 Newbie Poster

have you tried setting max-height?

Squidge 101 Newbie Poster

which one?

Each one.

lets take this on for example:

function check($arr,$name)
{
$found = false;
$c=0;
while(isset($arr[$c])&&!$found)
{
$found = $arr[$c]['item_name'] == $name;
$c++;
}
echo "Check: ".$found.", search for: ".$name.", Count: ".$c;
return $found;
}

the while loop is executing and will echo only once, when the while loop has finished and will use the last result.

function check($arr,$name)
{
    $found = false;
    $c=0;
    while(isset($arr[$c])&&!$found)
        {
        $found = $arr[$c]['item_name'] == $name;
        echo "Check: ".$found.", search for: ".$name.", Count: ".$c;
        $c++;
        }
    return $found;
}

Now it will echo during the loop as it executes. This is common logic.

Look here for explaination:

http://php.net/manual/en/control-structures.while.php

Zagga commented: Nicely explained +4
Squidge 101 Newbie Poster

you need to echo inside your while loop

Squidge 101 Newbie Poster

Can you show your form?

Also have tried var_dump($_POST); to see if the varible is being populated?

Squidge 101 Newbie Poster

looks to be a good way of doing it.

Scanning the documentation it seems this is a popular request for v2

Squidge 101 Newbie Poster

@dalilice

Have you looked over the rather extensive FAQ, Knowledge Base, API documentation that is available at the creators website?

http://simplepie.org/

Squidge 101 Newbie Poster

Yes

<?php

$age = "really really really old :)";

?>

<h1>You are <?php echo $age; ?></h1>

NOTE
The cuse of age in this post is no idictaion of being agest

Squidge 101 Newbie Poster

Are u runing cmd with admin privs? Try rerunning te pear upgrade pear but make sure you are in the php directory

Squidge 101 Newbie Poster

looks like the PEAR install is all over the place.

I would suggest following http://pear.php.net/manual/en/installation.getting.php

This makes updating your pear easier, especially as it looks like the config is screwed

Squidge 101 Newbie Poster

Would it not make more sense to get a single upload functioning first, then you can modify the coding for multi upload

Squidge 101 Newbie Poster

Class and HTML should be seperate. Look here for a class on how to resize http://net.tutsplus.com/tutorials/php/image-resizing-made-easy-with-php/

Squidge 101 Newbie Poster

Because ur include is firing the function straight away. That line shouldnt be there. Have a looked on php.net on how functions work? I would suggest u have a look

Squidge 101 Newbie Poster

Shazaammm

remove this line

if(!function_exists("makethumbnail"))

Squidge 101 Newbie Poster

Ok, your not passing the required variables that you have set for the function:

if(!function_exists("makethumbnail"))
{
//die("right before function definition");
function makethumbnail($src,$new_name,$new_width,$new_height)
Squidge 101 Newbie Poster

Does this file exist: shopsite/thumbnail.php

Is it (from the file calling this), in the folder shopsite?

Squidge 101 Newbie Poster

remove line 4 from the index.php

Squidge 101 Newbie Poster

to connect to a database you need the following information:

HOST => Generally is localhost
USER => What ever it is set as (would suggest not using root unless it is development)
PASSWORD => The password that is linked with the user
DATABASE TABLE => The table from which you wish to obtain information from.

If you have no password in the connection, your connection will fail. Think of it as logging in to an email account without a password (:))

http://php.net/manual/en/function.mysql-connect.php

Squidge 101 Newbie Poster

your db connection doesnt contain a password

Squidge 101 Newbie Poster

JayJ, have you tried using return on the variable you want to pass out?

Squidge 101 Newbie Poster
// get simple_html_dom from http://simplehtmldom.sourceforge.net/
include_once('simple_html_dom.php'); 

// Add url in place of "URL"
$result = file_get_html(URL);

// Searchs for 'a' tags
$result_a = $result->find('a');

// Replace 'http://'
foreach($result_a as $resultA){
    echo str_replace('http://','',$resultA);
}

// Show untouched
foreach($result_a as $resultA){
    echo $resultA . "<br/>";
}

Should do it for you

Squidge 101 Newbie Poster

sorry i dont want to say form it is from :)

Lol, no probs.

This is one that i have done.
http://www.daniweb.com/web-development/php/threads/434041/scrap-which-removes

Which should help.

Squidge 101 Newbie Poster
$result = file_get_html('http://www.example.com/');

foreach($result->find('a') as $element){
    $result = str_replace('http://', '', $result);
}

foreach($result->find('a') as $elementa){
    echo $element->href;
    echo $elementa->href;
}

As i edited in (may have been as you were replying), str_get_html is used for loading in strings.

Try the above.

Also this is not a form

it is form

$html = file_get_html('http://www.example.com');
$result = $html;

Squidge 101 Newbie Poster

From where are you populating $result from?

As per the documentation around Simple HTML DOM, str_get_html is for loading a string.

http://simplehtmldom.sourceforge.net/manual.htm

Squidge 101 Newbie Poster

Put your foreach loops in {}

    $result = str_get_html($result);
    foreach($result->find('a') as $element){
    $result = str_get_html($result);
    $result = str_replace('http://', '', $result);
    }
    foreach($result->find('a') as $elementa){
    echo $element->href;
    echo $elementa->href;
    }
Squidge 101 Newbie Poster

But it still isn't saving the question. Any ideas what I may be doing wrong. Any help would be appreciated.

Are you getting an error?

Have you dumped the POST data to make sure this is populated as you expect?

Have you tested your SQL strings?

Squidge 101 Newbie Poster
 if($row['banned'] == '1') {
header( 'http://www.awsomechat.comuv.com/ban/userbanned.php' );
} elseif ($row['banned'] == '2'){
header( 'http://www.awsomechat.comuv.com/ban/userbanned.php' );
}

Should these not read

header('location : http://www.awsomechat.comuv.com/ban/userbanned.php' );

&& ( :) )

header('location : http://www.awsomechat.comuv.com/ban/userbanned.php' );
Squidge 101 Newbie Poster

they have different precedence.

True. && is before and - || is before or

:)

Squidge 101 Newbie Poster

I thought session_start() had to be the first line before any output?

**Note:

To use cookie-based sessions, session_start() must be called before outputing anything to the browser. **

PHP.net

Squidge 101 Newbie Poster

i have started using Netbeans. Very nice and easy to use. Best of all its free!!

I have also used Dreamweaver CS5.5 and 6

Squidge 101 Newbie Poster

'$school_id'"),0, 'logs_id'));

Should this not be 1?

Squidge 101 Newbie Poster

This should help:

RewriteEngine On
RewriteRule ^([^/]*)$ /pages/fetchpage.php?id=$1 [L]

Squidge 101 Newbie Poster

You need to use your imagination.

You have clearly stated

actually it is a project work which is to be represented in college.

Squidge 101 Newbie Poster

glad i could help

If its solved, mark it so :)

Squidge 101 Newbie Poster

Trees
Cars
Computers past-> present
Screws

Squidge 101 Newbie Poster

Birds? where they are, what different types with images and search function, with migratory patterns

Squidge 101 Newbie Poster

Really?

Thats is your own thing

Squidge 101 Newbie Poster

i am totaly confused.

Which part are you confised about?

Squidge 101 Newbie Poster

I do not beleive you can use mysql_real_escape_string within a SQL statement.

This should be done via to the INSERT statement

Squidge 101 Newbie Poster

Thanks for that squidge, I will take a look at that. Hopefully it won't take much.

No problem squeak24

Squidge 101 Newbie Poster

You dont actually seem to be using any of the POST data.

Or have you not put all your code?

Squidge 101 Newbie Poster

What's a portable software? and Is It even legal?

It is legal and illegal.

This one Click Here, is a collection of legal compact Apps available.

There are others, and i have in the past come across portable and cracked apps such as Dreamweaver, Flash etc. If it is under the Open Source license then yes this is all above board.

Squidge 101 Newbie Poster

@LastMitch

If you take the code you have so far:

    <form action="photoimage.php" method="post">
    Photo: <input type="" name"" valve=" />
    <br />
    Caption: <input type="" name"" valve="" />
    <br />
    </form>

You would name the fields, i try to keep them as obvious as possibly.

    <form action="photoimage.php" method="post">
    Photo: <input name"photo" valve=" />
    <br />
    Caption: <input name"caption" valve="" />
    <br />
    </form>

So once you get to your photoimage.php you will have a $_POST array available to you:

$_POST['photo']
$_POST['caption']

Then you can use those to add to a DB.

This is a gallery upload script which i used, and modified for my needs:
Click Here

Hope it helps