 |
Forum PHP Romania - Discutii despre PHP, MySQL, Javascript, AJAX, etc Comunitatea PHP Romania
|
| Subiectul anterior :: Subiectul următor |
| Autor |
Mesaj |
Sphinks
Data înscrierii: 04/Dec/2004
Mesaje: 31
Locație: Iasi
|
| Trimis: Vin Ian 07, 2005 3:23 pm Titlul subiectului: help |
|
|
salut!
am gasit un script pentru popup pe net (javascript) si vreau sa-l folosesc intr-un script php.
separat popup-ul merge, dar cand il integrez in fctia php....nu mai merge, dar nici nu da eroare...nu se intampla nimic.
trebuie sa mai fac ceva ca sa pot sa-l integrez in fctia php, sau cum se rezolva treaba asta?! |
|
| Sus |
|
johnny
Data înscrierii: 31/Iul/2004
Mesaje: 904
Locație: Bucuresti
|
| Trimis: Vin Ian 07, 2005 4:56 pm Titlul subiectului: |
|
|
| cum arata functia php? |
|
| Sus |
|
Sphinks
Data înscrierii: 04/Dec/2004
Mesaje: 31
Locație: Iasi
|
| Trimis: Vin Ian 07, 2005 6:21 pm Titlul subiectului: |
|
|
johnny a scris: cum arata functia php?
cam asa
function profil($id,$dbase)
{
$sql = "SELECT * FROM $dbase WHERE id = '$id'";
$result = mysql_query($sql);
while ($i = mysql_fetch_array($result))
{
?>
<img src="images/spacer.gif" width="590" height="10">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" class="bgdots"><img src="images/spacer.gif" width="1" height="1"></td>
</tr>
<tr>
<td width="60%" valign="top"><A HREF="javascript:popUP('model.php?l=&id=<?php echo $i[id]; ?>')" class="font-red"><img border="0" src="images/arrow-small.gif" width="22" height="8" alt="">   <?php echo $i[nume]; ?> <b> <?php echo $i[prenume]; ?></b></A>
</td>
<td class="bgdotsv" rowspan="3"><img src="images/spacer.gif" width="20" height="1"></td>
<td align="center" valign="top" rowspan="3">
<?php
if ($i[foto] != "")
{
echo '<a href="'.$i[foto].'" target="_blank"><img src="'.$i[foto].'" border=0 width=150></a></td>';
}
else echo ' <font color=red> Fara foto </font></td>';
}
}
?>
iar pentru popUP:
<SCRIPT TYPE="text/javascript">
<!--
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=400,left = 412,top = 234');");
}
//-->
</SCRIPT> |
|
| Sus |
|
PHPRomania Bot
Bot Member
Data înscrierii: 27/Dec/2007
Mesaje: 1
Locaţie: Server Google |
| Trimis: Mie Dec 26, 2007 7:01 pm Titlul subiectului: Ad |
|
|
|
|
|
| Sus |
|
| |
|