This is a discussion on Simple question for PHP within the PHP Programming forums, part of the Web Development category; Hi all, I use a database to extract the title of a url. I want to take save this title ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi all, I use a database to extract the title of a url. I want to take save this title in a variable and then check if it is url1 or url2. If it is url1 call url1 javascript function else if url2 call url2 function. My code is : Code: $query = "SELECT url FROM info"; $row = mysql_fetch_array($result); if ($row['url']=='http://....') { echo '<A HREF="'; echo '<SCRIPT LANGUAGE="javascript">'; echo 'popUp("url1.php")'; echo "</SCRIPT>"; echo '">'; } if($row['url']=='http://...') { echo '<A HREF="'; echo '<SCRIPT LANGUAGE="javascript">'; echo 'popUp("url2.php")'; echo "</SCRIPT>"; echo '">'; } What is the error?? Thanking you in advance Web application development |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simple Interview Questions | Sathish Kumar | C# Programming | 56 | 03-21-2008 07:53 AM |
| Simple Alexa Rank Retrieval | Sabari | PHP Programming | 28 | 12-04-2007 06:44 AM |
| simple example for the java concepts | lavanya | Java Programming | 2 | 07-20-2007 06:48 AM |
| Simple Email - Using Perl | raj | Perl | 2 | 07-18-2007 03:22 AM |
| Create Simple ShoutBox | spid4r | PHP Programming | 0 | 03-08-2007 11:03 PM |