Reply to Re: PHP or Javascript for this?

Your name:

Reply:


Posted by Ravi on 05/21/07 13:14

On May 21, 12:50 am, Akhenaten <jonko...@gmail.com> wrote:
> I'm wanting to create an hyperlink that will execute a mysql_query and
> then refresh the current page if it's clicked on. I've similar things
> created via javascript but didn't know if such was possible with PHP.

These all are long methods take a function for displaying image and
for sucessfull message

like:

if (isset($_GET['q']) && $_GET['q']=='y')
{
mysql_query(...);
display("message");
}
else
display();

function display($msg){
if(is_empty($msg){
then logic for displaying image
}else{
logic for displaying the sucessfull message.
}
}

make sure all the variables in the function should be global variables.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация