vaultdweller123 32 Posting Pro

well i haven't really tried using mysql_fetch_assoc(), coz. i prefer mysql_fetch_array(). but from what i know about mysql_fetch_assoc() it returns associative arrays of your recordset. So your array index and values are dependent on your recordset. try print_r() to see the array values.

vaultdweller123 32 Posting Pro

religion vs. science
magic vs. technology

were like water and oil... they stay together but they don't mix.

vaultdweller123 32 Posting Pro

If you are born in greece.

vaultdweller123 32 Posting Pro

ei dude i found a solution... the thing is i got tired reading it.. so you read it, this is your problem after.. hehe

http://en.kioskea.net/faq/sujet-793-warning-rmdir-directory-not-empty

vaultdweller123 32 Posting Pro

Well you can do both... but if you getting tired of repairing stuff... you can try to be a programmer.... well it's not really that hard... as long as you like to read... and requires hardwork of course... the fact that you do well on repairing it's just show that you can do good on software too. coz. the fact repairing involves complex problem solving and logic... computer programming has lot of these... they have common elements... so just give a try... well never know... you will find passion on programming instead... 1 thing i can say about programming is it's complicated but fun! hehe.

vaultdweller123 32 Posting Pro

amazing ardav *clap*3x

vaultdweller123 32 Posting Pro

i recommend you use database to store information of your files... it's a more professional approach.

vaultdweller123 32 Posting Pro

yeah ive used unlink() too, to delete files... there's no problem... the only error it will generate is when assigning incorrect path. The file you wish to delete does not exist.

vaultdweller123 32 Posting Pro

maybe it's an automatic replacement of spaces between your text.

vaultdweller123 32 Posting Pro

you can use the javascript window.location instead...
<?php echo "<script>window.location='yourpagehere.php'</script>"; ?>

vaultdweller123 32 Posting Pro

is this thread solved? if so... mark this solved then.

vaultdweller123 32 Posting Pro

then mark this thread solved then...

vaultdweller123 32 Posting Pro

just aside the reply thread button.

vaultdweller123 32 Posting Pro

can u provide the code? so that we can trace it.... bec. u fail to show it to us... i suspect that 2 possible reason. 1) maybe you put that code outside your html form. 2.) maybe the form method you use is 'get' and not 'post'. coz. your retrieving your values using the $_POST[] global variable.

vaultdweller123 32 Posting Pro

use the 'and' keyword to add more conditional statements

vaultdweller123 32 Posting Pro

ur so amazing ardav... i bow to you... you always have the most proficient approach on every problems... your code are always impressive. u solve it with jus less code. and i always end up embarassed... hehe... well that's ok though... it's not ur fault to be smart.. hehe

vaultdweller123 32 Posting Pro

ok it's my time to ask.... who knows framework of CRM and PMS? which it could help me lessen my job on developing them in hardcode.

vaultdweller123 32 Posting Pro

awww.... dont mention it friend... glad to help!

vaultdweller123 32 Posting Pro

i recommend you use .png.... about the banner will it's not really hard... because you use database...all you do is some mysql query and PHP predefined function rand();

here ill show you the code
lets assume you had these table

banner
banner_id - int (primary)(autoincrement)
src = varchar

<?php

mysql_connect('localhost','root',''); // i use the default
mysql_select_db('your_database_name'); //enter your database
$sql = mysql_query("SELECT banner_id FROM banner");
$max = mysql_num_rows($sql);
$sql2 = mysql_query( "SELECT src FROM banner WHERE banner_id='".rand(1,$max)."'" );
$row = mysql_fetch_array($sql2);
echo "<img src='".$row['src']."' width='300' height='200' />";

?>

put a banner folder in your root document....
insert the images path in the src field of your banner table
ex. banner/your_images.png

vaultdweller123 32 Posting Pro

you have to use the 'like' function of mysql... seet this link for a much detailed info.
http://w3schools.com/sql/sql_like.asp

vaultdweller123 32 Posting Pro

so you want an include() eh...
ok 1st lets create 2 files

page1.php

<?php
$var1 = 'location1';
$var2 = 'location2';
$var3 = 'location3';
$var4= 'location4';
?>

page2.php

<?php
include('page1.php');
echo "<a href='http://www.path/file/".$var1."/london/index.php'>$var1</a>";
echo "<a href='http://www.path/file/".$var2."/london/index.php'>$var2</a>";
echo "<a href='http://www.path/file/".$var3."/london/index.php'>$var3</a>";
echo "<a href='http://www.path/file/".$var4."/london/index.php'>$var4</a>";
?>

acutally i could make it an array, but ill make this example simple.

vaultdweller123 32 Posting Pro

you create it? then how come your asking us? you should be able to know the problem if your the real creator... or maybe you just got that code from another source and copy and paste it? am i right?

vaultdweller123 32 Posting Pro

hehe nice one... you want us to debug every single line of your code then get the answer with no sweat. I think there's no one here that would eagerly read every line of code you got there... take note your code is so long... gives me headache... the only thing i can help you is go to codeignigter site and go to support or help page.... there you can find your answers there.

vaultdweller123 32 Posting Pro

there's no other choice dude sorry.... you have to work hard for it.

vaultdweller123 32 Posting Pro

its normal to hyperlink to show the physical path... ur the only person babbling about it... well if u really think that's a security breach... then you can encrypt your hyperlinks and decrypt the link to its original in the receiving end. i mean link page that will decrypt the encrypted links and route them to whatever page they will be.

vaultdweller123 32 Posting Pro

ei dude theres no function or whatsoever that automatically change it's context language... its a tough job... u had to manually code it to translate every context on different language... you can save the data into the database and query them upon changing the language setting.

vaultdweller123 32 Posting Pro

okey lets assume you have a textfield where you would input your value.

<?php 
if(isset($_POST['btnsubmit'])){ 
$val = $_GET['val']; 
echo "<script>window.location='http://www.domain.co.uk/path/".$val."/path/page.php'</script>"; } 
?> 

<form method='get'> <input type='text' name='val' /> 
<input type='submit' name='btnsubmit' value='submit' /> 
</form>

i hope i understand you correctly....

vaultdweller123 32 Posting Pro

okey lets assume you have a textfield where you would input your value.

<?php

if(isset($_POST['btnsubmit'])){
$val = $_GET['val'];
echo "<script>window.location='http://www.domain.co.uk/path/".$val."/path/page.php'</script>";
}

?>

<form method='get'>
<input type='text' name='val' />
<input type='submit' name='btnsubmit' value='submit' />
</form>

i hope i understand you correctly....

vaultdweller123 32 Posting Pro

you can defeat a genius through hardwork.
if there's no way... make your own way.
you don't make progress when your just sitting there and complain.
talents wins games... but teamwork wins championship

vaultdweller123 32 Posting Pro

contradictory

pratice makes perfect.... but no one is perfect so why practice?

an old carabao wants to eat young grass but young vines want to climb old tress.

vaultdweller123 32 Posting Pro

lastly a sad qoute....

Im just waiting for the world.... to swallow my miserable existence. -- someone from fallout2 game, a vaultdweller from vault 13 which i forgot the name

vaultdweller123 32 Posting Pro

If there no way.... make your own way

something that makes you more determined not to give up

vaultdweller123 32 Posting Pro

about teamwork

talent wins games, but teamwork wins championship - Michael Jordan

vaultdweller123 32 Posting Pro

you dont make progress when you just gonna sit there and complain

vaultdweller123 32 Posting Pro
you can defeat a genius through hard work

-- rock lee

vaultdweller123 32 Posting Pro

yeah nice link... i started to delete some friends coz. before i would add friends which i know even if were not close... but the problem is... it became annoying... specially when someone not a close friend is like publishing addict and well always published her recent activities every once in a while.... it annoying to see someone ur not so close of always popping out their faces in your home wall.

vaultdweller123 32 Posting Pro

haha nice one.... clever vet

vaultdweller123 32 Posting Pro

1st u need to be very rich in order to develop your own web browser... even if you do know how to develop it... but it takes manpower to develop such a big project! I know u want to develop a web browser for for your country India. well it's not impossible... i have seen many aspiring indian programmer before and they made it.... one example would be Pranav Mistry.

vaultdweller123 32 Posting Pro

well im just answering his resquest... he want an alternatives of php hearer() function.

vaultdweller123 32 Posting Pro

u dont need to include a file to accomplish that... u can have a variable... and assign values to it... then insert in the url

vaultdweller123 32 Posting Pro

Well, ardav is correct so he is completely within his right to make a post :)

you too! hey im just a newbie... and im just sharing what i know a little about php :'(

vaultdweller123 32 Posting Pro

Actually you can - but it means using htaccess files (as mentioned previously) or using a templating engine (e.g. Rain TPL) which stores cached php files of htmls. For everyday use, I really can't see what advantage there is to be gained from using the *.htm(l) extension if you're using server-side code.

hey ardav! you always contradict at my every post! grrr....! :@

vaultdweller123 32 Posting Pro

inner join is the same as join

vaultdweller123 32 Posting Pro

i recommend use xampp

vaultdweller123 32 Posting Pro

oh sorry i miss to put a block... to prevent it from outputing... put the code inside the a conditional statement... that it will be outputed unless the search button is clicked

<?php

if(isset($_GET['btnsearch'])){
// all your search code here
}

?>
vaultdweller123 32 Posting Pro

waaaa! why would u want that ? i dont understand why u want to include a file in a URL?

vaultdweller123 32 Posting Pro

you know what... i really want to help you.. but the problem is... i dont understand what you want to happen? You want all the process to be done in one file?

vaultdweller123 32 Posting Pro

did u see the variable are passed in the url? www.foobar.com/whatever.php?azz=wala that shows that whatever.php has received azz variable and can be get through the $_GET[] global variable.

vaultdweller123 32 Posting Pro

you can put it outside the html tag, just above the <html> tag

vaultdweller123 32 Posting Pro

its very easy here ill give u an example

1.) if your using html form then all you have to do is specify the url of other page you wish to link. All data will be sent automatically in the receiving end as query string and your url may look like this http://www.domain.co.uk/yourpage.php?var1=1&var2=2&var3=3

<form action='yourpage.php' method='get'>
<input type='text' name='var1' value='1' />
<input type='text' name='var2' value='2' />
<input type='text' name='var3' value='3' />
<input type='submit' value='btnsubmit' value='submit' />
</form>

2.) but if you want to redirect

<?php echo "<script>window.location='yourpage.php?var1=1&var2=2&var3=3'</script>"; ?>