vaultdweller123 32 Posting Pro

depends on your php server, like WAMP you save your .php file in the "www" folder, or if you use XAMPP you save it in the "htdocs" folder.

vaultdweller123 32 Posting Pro

the arrow sign "->" is used to reference objects from its function/methods and properties

vaultdweller123 32 Posting Pro

1st keep in mind that inorder for you to use php mail() function, you should set-up a working email system

vaultdweller123 32 Posting Pro

the username should be root if you use the default
mysql_connect("localhost","root","")

vaultdweller123 32 Posting Pro

why do you have to extract() the result? when you can already traverse the recordset via mysql_fetch_array. and when you do extract you dont use arrays anymore like $row coz extract() assign values to array indexes so instead of echo $row you use $content. you may try this

<?php

    $query  = sprintf("SELECT * FROM property_images JOIN property ON property.id = property_images.property_id ORDER BY property_images.id DESC LIMIT 0 , 30");	
	$result = mysql_query($query, $db) or die('Error, query failed'); 

    if (mysql_num_rows($result) == 0) { echo "Error: property has no images. ";   }
    else {			
        while ($row = mysql_fetch_array($result)) {				
	     header('Content-type: ' . $row['uploadedimage_type']);
    header('Content-length: ' . $row['uploadedimage_size']);
 
    echo $row['content']; }	// end while	

    	} // end else

?>
vaultdweller123 32 Posting Pro

i dont know why you define variables like that, they share the same name, and it causes a destructive read-in, only the last input gets the value, the better way would be so store them in arrays, but this is your example ill just have to name them uniquely.

$id1 = 1;
$name1 = John;
$items1 = 2;
$price1 = 4.2;
$saleprice1 = 2.0;

$id2 = 2;
$name2 = James;
$items2 = 1;
$price2 = 1.01;
$saleprice2 = 1.0;

$id3 = 3;
$name3 = andrew;
$items3 = 6;
$price3 = 13;
$saleprice3 = 10;

then

$testdatasort = array($price1,$price2,$price3);
		sort($testdatasort);
		var_dump($testdatasort);
vaultdweller123 32 Posting Pro

try this

<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){

	var str, regx, res;
	str = "ehad wajdawid  ajdka ada MyObject.samplefunc(val1,val2) dwadwa adwadwadawda";
	regx = /(MyObject.)+(\w+)+(\()+([\w+\,]*)+(\))/gi;
	res = str.match(regx);
	alert(res); // test the result 


});



</script>
</head>
<body>
</body>
</html>

hope this helps

vaultdweller123 32 Posting Pro

im just giving you the way how to do it through substr() to get just function part... you must discover in your own alogorithm on how to dynamically assign correct substr() start point and end point. Other way is regular expression. still you have to think of your own algorithm for such complex problem.

vaultdweller123 32 Posting Pro
<script type="text/javascript">
function ftest(){
window.location="totherecievingpagedatabasesave.php?test="+document.getElementById('test').value;
}
</script>

<input type="text" name="test" id="test" />
<a href="javascript:void(0);" onclick="ftest()">click me</a>

then get the text box variable on the receiving end via $_GET;

Kadafiz commented: thank you +0
vaultdweller123 32 Posting Pro

the index where you start to cut your string, string start from index 0, you can specify the length in the 3rd argument. See this link for better understanding
http://www.w3schools.com/php/func_string_substr.asp

vaultdweller123 32 Posting Pro
<?php
$temp = "MyObject.MyFunction(doSomething)";
echo substr($temp,9);
?>
vaultdweller123 32 Posting Pro

awww... sorry i didn't notice it was inside the function...sorry my bad.... they were right you can either declare the variables globally, pass the variables as arguments in the function or put the include() inside the function

<?php

include('config.php'); //path to the config.php

function connect($db,$name,$pass,$tbl) {

	$link = mysql_connect($db, $name, $pass);
	$dbtable = mysql_select_db($tbl);

}

?>

or

<?php

function connect() {

	include('config.php'); //path to the config.php

	$link = mysql_connect($db, $name, $pass);
	$dbtable = mysql_select_db($tbl);

}

?>
vaultdweller123 32 Posting Pro

strings should be enclosed with quotes, single or double

if(isset($id) && $id=="benelli")

and also the equals sign "=" is an assignment operator, not an equality operator used for comparison, use the equality operator "==" instead

vaultdweller123 32 Posting Pro

make your checkboxes an array

<input type="checkbox" name="test[]" value="Taxi" id="test_4" />

once they're stored on array you can easily traverse using foreach()

foreach($_POST['test'] as $index => $val){
echo "test[".$index."]=".$val; // just testing the value
}
vaultdweller123 32 Posting Pro

it doesn't matter if the letter "L" in location is in small caps... it will still redirect...

vaultdweller123 32 Posting Pro

i don't really use the CI form helpers, the only form helper i use is the form() and the anchor() tag of CI. coz if u use the normal anchor and form you will encouter lots of problem upon redirection

vaultdweller123 32 Posting Pro

data from textarea can be get by value even if it doesn't have a value attribute

document.getElementById("textarea_id").value
vaultdweller123 32 Posting Pro

hahaha lol you mean repopulate
btw i dont understand this line of code

if(isset($_POST[$this->name])&($this->isSticky))

where did you get the $this->isSticky ????
can u remove it? instead

if(isset($_POST[$this->name]))
vaultdweller123 32 Posting Pro
vaultdweller123 32 Posting Pro

or you could try this, if u think the header() still doesn't work

echo "<script>window.location='http://www.websitename/members/securecode/index.php'</script>";
vaultdweller123 32 Posting Pro

maybe because in the first place it didn't satisfy your if statement

if($dbpasswword == $passwd)

because if it does, it should redirect... i don't see anything wrong on the php header() function

vaultdweller123 32 Posting Pro

rajarajan was right... it's all about file permission. You must edit it either through ftp or explicitly define it using php chmod() function. set the permission to 0775

vaultdweller123 32 Posting Pro
<?php

include('config.php'); //path to the config.php

function connect() {
  
      $link = mysql_connect($db, $name, $pass);
      $dbtable = mysql_select_db($tbl);  
	  
      }

?>

it's impossible you dont get the value from config.php... if you include it correctly

vaultdweller123 32 Posting Pro

$_FILES["file"]["error"] is used to check for file uploading errors... so if $_FILES["file"]["error"] is greater than zero then its means that there is an error encountered during upload.

vaultdweller123 32 Posting Pro

yes manuz is right... use array <input type="checkbox" name="id[]" value="Mike" /> instead of single value input <input type="checkbox" name="id" value="Mike" />. As i examine your code there's no wrong in the php mail syntax... so it should work. i dont know if u set up correctly your mail server or other problem i see is you forgot to close your if statement

if ($_POST["email"]<>'') {
vaultdweller123 32 Posting Pro

this is like a referral system if I'm not mistaken... to generate unique links to every user you has to give them their unique links by appending their id on the links, like http://www.yoursite.com/registration.php?id=13. through that after a successful registration you may be a able to identify who will be able to get the point. hope that helps ^_^

vaultdweller123 32 Posting Pro

just to remind you... you cant directly use the php mail function without first having an installed and working email system

vaultdweller123 32 Posting Pro

yeah i totaly agree... there's no problem with your code on sending mail. i suspect the problem is in the mail server.

vaultdweller123 32 Posting Pro

yeah dude it should work, maybe you got problem on retrieving your stored session, try inspecting your php.ini where did you set it or you can explicitly define it using session_save_path('path/path'), put it before the session_start. hope that helps ^_^

vaultdweller123 32 Posting Pro

please paste your complete code, including the form

vaultdweller123 32 Posting Pro

it wont display dude coz its a tag. i dont what kind of tag is that but you actually created it... try viewing the source code and youll see that your tag has been created.

vaultdweller123 32 Posting Pro

its an infinite loop dude....
P H P
PHP hypertext preprocessor
PHP hypertext preprocessor hypertext prerprocessor .......... an endless loop!

vaultdweller123 32 Posting Pro

install programs such as "typing master".

vaultdweller123 32 Posting Pro

i would recommend audi cars

vaultdweller123 32 Posting Pro

one way of saying thanks is marking this thread solved.

vaultdweller123 32 Posting Pro

I started out with a temp agency here in St Louis in 1986/7. At the time I had zero programming experience, not even college degree. My sole assets were that I was about 43 years old, recently retired US military, bought an Intro to C programming book and cheap computer, then studied that book for a few weeks. I saw an ad in the local newspaper for an entry level job, applied for it, and was hired.

I could be wrong but I suppose there are still a few entry-level jobs like that for us normal-brained folks.

INSPIRING!

vaultdweller123 32 Posting Pro

common issues on transfering files from localhost to the other server is the path... so check for the paths, specially absolute path.. coz your now on a different server.

vaultdweller123 32 Posting Pro

i dont see any wrong in your code... if you get wrong value... i recommend reviewing the value being passed on $_SESSION. I assume you had a drop down list.. make sure their value is correct.

<?php
$sql = mysql_query("YOUR QUERY HERE");
?>


<select name='username'>
<?php while($row=mysql_fetch_array($sql)){ ?>
<option value='<?=$row['username']?>'><?=$row['username']?></option>
<?php } ?>
</select>
vaultdweller123 32 Posting Pro

i dont see any wrong in your code... if you get wrong value... i recommend reviewing the value being passed on $_SESSION. I assume you had a drop down list.. make sure their value is correct.
<?php
$sql = mysql_query("YOUR QUERY HERE");
?>


<select name='username'>
<?php while($row=mysql_fetch_array($sql)){ ?>
<option value='<?=$row?>'><?=$row?></option>
<?php } ?>
</select>

vaultdweller123 32 Posting Pro

she think were mind readers :D

vaultdweller123 32 Posting Pro

there's no problem with the code... i don't think the problem came there... it might be the code before that. Try reviewing your code.

vaultdweller123 32 Posting Pro

the dollar sign ($) means MONEY! means you will earn great MONEY out of this FREE server-side programming language. So programming in FREE PHP is MONEY, remember PHP = MONEY! :D

vaultdweller123 32 Posting Pro

i love google... my tshirt is google, underwear is google, my shorts are google, my browser is google, my search engine is google.... google OS is built for users who spends their time on the internet thats why it's different from windows OS. may the google be with you.

vaultdweller123 32 Posting Pro

im not really a fan of soccer coz. soccer is not popular in our country, but girls would love soccer team like this. check out the INSTANT REPLAY!

vaultdweller123 32 Posting Pro

@grim jack... i read the link... full information... ty

vaultdweller123 32 Posting Pro

So your country believes wrongly. Rabies is an old, old virus called Lyssavirus. It is one of 6 members of that family. The word 'rabies' itself is a Sanskrit word (meaning something like 'to do violence') noted around 3000 BCE. Since Sanskrit is considered the first written language, it is possible that rabies is as old as mankind (perhaps as old as mammals). It is worldwide and was believed to have come the the New World across the Bering Strait 50,000 years ago with mankind's migrations so Rabies is closely related to human activity.

The French word rabies is le rage (leh rahg); obvious where the name comes from.

at last.... a guy with sense step in.....hmmm.... interesting... i didn't know rabies was a very2 old virus... so the rabies came from human? It really alarming that the rabies has no cure... once the rabies go in your brain and symptoms start showing... death comes next.

vaultdweller123 32 Posting Pro

then go in C++ category. dont get mixed up this is PHP.

vaultdweller123 32 Posting Pro

hit the play button

vaultdweller123 32 Posting Pro

Serously....in our country, rabies was believed to be in nature with the dogs, if u get bitten by a dog... it means you got rabies. they dont believe that rabies is a virus which they got from other infected animal. they believe that rabies exist in every dogs even in new born puppy unexposed to any animal... puppies are believed to contain more rabies than adult dogs.

vaultdweller123 32 Posting Pro

@vaultdweller123

I could be wrong, but it seems your argument in this thread boils down to "it's not fair for a company to hire someone of reasonable intelligence with a proven trackrecord of success over someone fresh out of college who may or may not be all that bright." Is that it?

BULL'S EYE! thats excatly what i want to say... i just find a hard time on my english... sorry.