Shanti C 106 Posting Virtuoso

Good Day biscuits...

Shanti C 106 Posting Virtuoso

"Love a heart that hurts you, But never hurt a heart that loves you..."

Shanti C 106 Posting Virtuoso

post your appropriate code....

Shanti C 106 Posting Virtuoso

Wlecome Daniel ...

Shanti C 106 Posting Virtuoso

Hello..
this is shanti from India...
Welcome to Daniweb...

Shanti C 106 Posting Virtuoso

My passion. My dream , my aim is to become a good classical singer...though i sings well..

Shanti C 106 Posting Virtuoso

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...

Shanti C 106 Posting Virtuoso

use PHP String Functions to do this...
take a look at this

Shanti C 106 Posting Virtuoso

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.

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

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>
Shanti C 106 Posting Virtuoso

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

Shanti C 106 Posting Virtuoso

thank you so much for your time, really i appreciate.

Dhanyavaad Shanti

Shukriya...
So cool...

Shanti C 106 Posting Virtuoso

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.

Shanti C 106 Posting Virtuoso

I am feeling very hungry now...
Let me eat something.......

Shanti C 106 Posting Virtuoso

All power is within you.You can do anything and everything.Believe in that. -swami vivekananda.

Shanti C 106 Posting Virtuoso

www.w3schools.com is ever best for beginners....
And all the best to you for your programming...

Shanti C 106 Posting Virtuoso

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...

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

helloo...
see this link will help you...
http://php.bubble.ro/scripts/numbers-words.php

Shanti C 106 Posting Virtuoso

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....

Shanti C 106 Posting Virtuoso

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!!!!

Shanti C 106 Posting Virtuoso

dill

Shanti C 106 Posting Virtuoso

game is a structured activity, usually undertaken for enjoyment and sometimes also used as an educational tool

Shanti C 106 Posting Virtuoso

ring
monitor
it
on

Accredited

Shanti C 106 Posting Virtuoso

"Fear of Suffering is Worst than Suffering itself "

Shanti C 106 Posting Virtuoso

Please use code tags...

Shanti C 106 Posting Virtuoso

yaa...
Java is java..
i agree with you...

Shanti C 106 Posting Virtuoso

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);
?>
Shanti C 106 Posting Virtuoso

see marked as solved link at your thread posted...

Shanti C 106 Posting Virtuoso

Just now I finished drinking coffee...

Shanti C 106 Posting Virtuoso

select is DML command...

Shanti C 106 Posting Virtuoso

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.

Shanti C 106 Posting Virtuoso

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>
Shanti C 106 Posting Virtuoso

What is the "binlog" option????

see this:
http://dev.mysql.com/doc/refman/5.1/en/binary-log.html

Shanti C 106 Posting Virtuoso

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;
Shanti C 106 Posting Virtuoso

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...

Shanti C 106 Posting Virtuoso

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>
Shanti C 106 Posting Virtuoso

with PHP you need to do lot of checking and set up many rules to prevent injections.

Need more information on this.....

Shanti C 106 Posting Virtuoso

chocolate

Shanti C 106 Posting Virtuoso

"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.

Shanti C 106 Posting Virtuoso

" 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. "

Shanti C 106 Posting Virtuoso

Hello guys...

Please give me any information or links about web development certification exams, which is in php,java script,html, css....

Thanks
shanti

Shanti C 106 Posting Virtuoso

Exactly....

Shanti C 106 Posting Virtuoso

Welcome to Daniweb...
You will definetly find good experience here....

Shanti C 106 Posting Virtuoso

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>
Shanti C 106 Posting Virtuoso

solved???

make this thread solved......

Shanti C 106 Posting Virtuoso

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

Shanti C 106 Posting Virtuoso

yes
like this:

window.location.href='updateReg.php?idValue='+idValue+'&idValue2='+idValue2;
Shanti C 106 Posting Virtuoso

How? LOL

see Marksolved link at top and bottom of this thread, then click on that...