Good Day biscuits...
"Love a heart that hurts you, But never hurt a heart that loves you..."
post your appropriate code....
Hello..
this is shanti from India...
Welcome to Daniweb...
My passion. My dream , my aim is to become a good classical singer...though i sings well..
hello servis...
the following function will get your page name:
$currentFile = $_SERVER["PHP_SELF"];
$parts = Explode('/', $currentFile);
$pagename=$parts[count($parts) - 1];
echo $pagename;
And then, compare your required page name with $page name by using if condition, then make your table get highlighted...
by this:
<? if($pagename=="index.php"){?>
<li><a href="index.php" title="css menus" class="current" >Home</a></li>
<? } else {?>
<li><a href="index.php" title="css menus" >Home</a></li>
<? }?>
Hope this will help you for something...
take a look at this fuction:
chmod($pro_imgpath,0777);
<?php
// Read and write for owner, nothing for everybody else
chmod("test.txt",0600);
// Read and write for owner, read for everybody else
chmod("test.txt",0644);
// Everything for owner, read and execute for everybody else
chmod("test.txt",0755);
// Everything for owner, read for owner's group
chmod("test.txt",0740);
?>
And 777- Everybody (i.e. others) has full rights.
Hi,
But how should i go about changing this code:echo "<a href='view_topic.php?id=".$id."'>View your answer</a>";
see this:
<A HREF="javascript:history.go(0)">Click to refresh the page</A>
Try this:
<html>
<head>
<script language="javascript">
function refreshpage()
{
window.location.reload();
}
</script>
</head>
<body>
<form action="" method="" name="" onsubmit="refreshpage();">
<input name="submit" type="submit" value="submit">
</form>
</body>
</html>
or
<input type="submit" value="Change Image" onclick="history.go(0)" />
"history.go(0)" takes you to the current page in IE's history, in other words, it refreshes the page.
Check this for using javascript :
http://www.grizzlyweb.com/webmaster/javascripts/refresh.asp
thank you so much for your time, really i appreciate.
Dhanyavaad Shanti
Shukriya...
So cool...
yes, save colors_pic with comma separated...and retrieve them appropriately...
see:
The implode() function takes an already existing array as
it's argument, and concatenates the contents of
each element in the array into a string.
where as explode() function performs reverse to implode()
function. It splits the string into items by a
delimiter, such as a dash, ampersand, space and places each
item into a new array.
I am feeling very hungry now...
Let me eat something.......
All power is within you.You can do anything and everything.Believe in that. -swami vivekananda.
You can store them with comma separated...
And retrieve them with implode and explode functions...
And tel me , by which reason you are trying to store multiple image paths into single field...
provide us with appropriate code...
or check these urls:
http://www.daniweb.com/forums/thread134714.html
http://www.wellho.net/solutions/php-example-php-form-image-upload-store-in-mysql-database-retreive.html
This community more than exceeds my expectations. I expect to abide by the rules, find lots of useful information that will allow me to improve and enhance my abilities, and I also hope to someday be able to give back what the community has given me.
Thank to all for welcoming a new member
Exactly...
Welcome to daniweb....
hi i am doing my final year BE-cse student..currently i want to do my final year project..i searched threads respect to this..but ain't got one respect to me..so can you help me in doing the final year project...basically i don't no which is field is rit to do my project..and i am goin to persue my masters in aus or uk..so what i am doing here should talk there in someways...
If you know java...
It is ever better technology..
Go ahead..
All the best!!!!
game is a structured activity, usually undertaken for enjoyment and sometimes also used as an educational tool
ring
monitor
it
on
Accredited
"Fear of Suffering is Worst than Suffering itself "
yaa...
Java is java..
i agree with you...
once refer these links:
http://www.rafaeldohms.com.br/2008/02/12/adding-text-to-images-in-real-time-with-php/en/
http://www.developertutorials.com/tutorials/php/adding-custom-text-to-image-050620/page1.html
or try this:
<?php
$image = ImageCreateFromPNG("base.png");
$color = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$colorShadow = imagecolorallocate($image, 0x66, 0x66, 0x66);
$font = 'arial.ttf';
$fontSize = "10";
$fontRotation = "0";
$str = "Example of GD in PHP. Date: " . date("m-j-Y g:i:s (a)");
/* Shadow */
ImageTTFText($image, $fontSize, $fontRotation, 7, 22, $colorShadow, $font, $str);
/* Top Level */
ImageTTFText($image, $fontSize, $fontRotation, 5, 20, $color, $font, $str);
header("Content-Type: image/PNG");
ImagePng ($image);
imagedestroy($image);
?>
see marked as solved link at your thread posted...
Just now I finished drinking coffee...
Truncate
1.Truncate Can be DDL Command.
2.it cannot be rollback.
3.we cann't use Where clause.
4.truncate=delete+commit so we cann't rollback.
5.truncate delete all record from the table.
6.truncate is a DDL command and cannot be rollbackand all
memory space is released back to server.
7.speed faster.
8.do not chcek constraint.
Delete
1.Delete Can be DML Command.
2.it can be rollback.
3.we can use Where clause.
4.delete=delete-- so we can be rollback.
5.delete delete record from the table.
6.truncate is a DDL command and can be rollback and all
memory space is not released back to server.
7.speed slow.
8. chcek constraint.
hello try this:
<FORM>
<INPUT type="button" value="Click here to go back" onClick="history.go(-1)">
<INPUT type="button" value="Click here to go forward" onClick="history.go(1)">
</FORM>
yes , you can write joins to get your desired details...
select l.user_name,l.password,u.fname,u.lname,u.address from login_table as l,user_table as u where l.user_id=u.user_id;
yes,
if you put your order_id in session, after order is completed,then make your session destroy...
then you can write that query as:
select product_id from orders where order_id='".$_SESSION['sess_order_id']."'
So, this will not disturb any other orders...
try this:
<html>
<body>
<?
echo 'Post data: ' . $_POST['test'] . '<br>';
echo 'Get data: ' . $_GET['test'] . '<br><br>';
//header("location:pageurl.php");
?>
<form method="post" action="pageurl.php">
<input name="test">
<input type="submit">
</form>
<a href="pageurl.php?test=hi">This page</a>
</body>
</html>
with PHP you need to do lot of checking and set up many rules to prevent injections.
Need more information on this.....
"The Key To "Happiness" is not that ,
You never get angry,upset,frustrated or irritated or depressed.....
Its how fast you decide to Get Out Of It....
So Be Happy..."
Good Morning Everybody....
Shanti.
" You hurt a true heart in love as many times you want, it won't stop loving you..But if you cheat a true heart , it won't hate you, but it won't dare to love you again. "
Hello guys...
Please give me any information or links about web development certification exams, which is in php,java script,html, css....
Thanks
shanti
Welcome to Daniweb...
You will definetly find good experience here....
Thank Shanti. Can u explain how can i use hidden variable in php.
see this example:
b>TicTacToe</b><br>
Enter Move X.<br>
<pre>
<form action="tictactoe.php" method="GET">
<input type="text" name="move" size=2>
0|x|2 <br>
_|_|_ <br>
3|4|o <br>
_|_|_ <br>
6|7|8 <br>
</pre>
<input type="hidden" name="board" value="0x234o678">
</form>
solved???
make this thread solved......
Try this:
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* additional headers */
$headers .= "To: Mary <mary@example.com>, Kelly <kelly@example.com>\r\n";
$headers .= "From: Birthday Reminder <birthday@example.com>\r\n";
$headers .= "Cc: birthdayarchive@example.com\r\n";
$headers .= "Bcc: birthdaycheck@example.com\r\n";
/* and now mail it */
mail($to, $subject, $message, $headers);
or check this for your error:
http://www.w3schools.com/PHP/php_ref_mail.asp
yes
like this:
window.location.href='updateReg.php?idValue='+idValue+'&idValue2='+idValue2;
How? LOL
see Marksolved link at top and bottom of this thread, then click on that...