Jump to content

ausgezeichnete

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ausgezeichnete's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thanks fred 4 ur answer but what i noticed is that when i click on any one of the links and share it the value remains the same after that example:when i click on http://localhost/mysite/coupons.php?product_section_id=30&section#408 it shares it without showing any thumbnail and when i click on the next value #410 its gives me also the same link example:when i click on http://localhost/mysite/coupons.php?product_section_id=30&section<b>#408<b> although that i see the right link when the mouse is over the share link so any clue plz????????????????
  2. Hello am using this code to share my content but the problem is in the looping value i can see the right value when i pass the mouse over the sharelink but when i click on it its links me to the first value of the "product_id" ex:it goes always to #1 http://localhost/mysite/coupons.php?...1&section=22#1 the second problem that it doesnt show the thumbnail so plz any idea???????????????????????????? <?php do { ?> <a name="fb_share" type="button_count" share_url="http://localhost/mysite/coupons.php?product_section_id=<?php echo $_GET['product_section_id'];?>&section=<?php echo $_GET['section'];?>#<?php echo $row_Recordset1['product_id']; ?>" href="http://www.facebook.com/sharer.php">Share</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
  3. i have those three arrays for example $num=array(1,2,3); $name=array('one','two','three'); $letter=array('m','k','n'); what i want is to loop through all of them and insert them like that: insert into mydb (field1,field2.field3) values(1,'one','m');
  4. please i want to be able to check if the user has clicked on certain link and to make another link appears ? any suggestions?
  5. i have this js code [HIGHLIGHT=JavaScript] function saveImageOrder() { var orderString = ""; var objects = document.getElementsByTagName('DIV'); for(var no=0;no<objects.length;no++){ if(objects[no].className=='imageBox' || objects[no].className=='imageBoxHighlighted'){ if(orderString.length>0)orderString = orderString + ','; orderString = orderString + objects[no].id; } } document.getElementById('debug').innerHTML = 'This is the new order of the images(IDs) : <br>' + orderString; } [/HIGHLIGHT] and this is my php code <?php do { ?> <div class="imageBox" id="<?php echo $row_Recordset1['gallery_fotos_id']; ?>"> <div class="imageBox_theImage" style="background-image:url('<?php echo $row_Recordset1['gallery_fotos_img']; ?>')"></div> <?php echo $row_Recordset1['gallery_fotos_id']; ?> </div> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> my problem that i want to update the ID's of the images with the Id's given in the orderString This is the new order of the images(IDs) : imageBox1,imageBox0,imageBox2,imageBox3,imageBox4,imageBox5,imageBox6,imageBox7,imageBox8,imageBox9,imageBox10, imageBox11,imageBox12,imageBox13,imageBox14, am using this form <FORM name="myForm" action="" method="post"> <INPUT type="hidden" name="imageIdList"> <input type="button" style="width:100px" value="SET ORDER" onClick="saveImageOrder()"> </FORM> Please can u tell me how can i update them???? this is for a drag a drop gallery photos and i want the user able to save the changes he/she made
  6. i have this js code [HIGHLIGHT=JavaScript] function saveImageOrder() { var orderString = ""; var objects = document.getElementsByTagName('DIV'); for(var no=0;no<objects.length;no++){ if(objects[no].className=='imageBox' || objects[no].className=='imageBoxHighlighted'){ if(orderString.length>0)orderString = orderString + ','; orderString = orderString + objects[no].id; } } document.getElementById('debug').innerHTML = 'This is the new order of the images(IDs) : <br>' + orderString; } [/HIGHLIGHT] and this is my php code <?php do { ?> <div class="imageBox" id="<?php echo $row_Recordset1['gallery_fotos_id']; ?>"> <div class="imageBox_theImage" style="background-image:url('<?php echo $row_Recordset1['gallery_fotos_img']; ?>')"></div> <?php echo $row_Recordset1['gallery_fotos_id']; ?> </div> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> my problem that i want to update the ID's of the images with the Id's given in the orderString This is the new order of the images(IDs) : imageBox1,imageBox0,imageBox2,imageBox3,imageBox4,imageBox5,imageBox6,imageBox7,imageBox8,imageBox9,imageBox10, imageBox11,imageBox12,imageBox13,imageBox14, am using this form <FORM name="myForm" action="" method="post"> <INPUT type="hidden" name="imageIdList"> <input type="button" style="width:100px" value="SET ORDER" onClick="saveImageOrder()"> </FORM> Please can u tell me how can i update them???? this is for a drag a drop gallery photos and i want the user able to save the changes he/she made
  7. when i upload images to my server i got this error Warning: copy(fotos/1203654432.jpg) [function.copy]: failed to open stream: Permission denied in /home/mysite/public_html/site/mystique/Admin/gallery/change.php on line 59 and i made the attributes of the fotos 777 and the upload works in some pages and other not inspite all pages work on my local very good whats wrong????
  8. sorry priti but is this code for including the php in xml or the oppesite???
  9. ok i tried doing that <?php header('Content-Type: text/xml'); require_once('../../Connections/mystique.php'); mysql_select_db($database_mystique, $mystique); $query_Recordset1 = "SELECT * FROM gallery_thumb"; $Recordset1 = mysql_query($query_Recordset1, $mystique) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); ?> <?php do{?> <content width="368" height="450" bgcolor="cccccc" loadercolor="ffffff" panelcolor="5d5d61" buttoncolor="5d5d61" textcolor="ffffff"> <page src="../../allwebcodesign/Admin/gallery/<?php echo $row_Recordset1['foto']; ?>"/> </content> <?php }while($row_Recordset1 = mysql_fetch_assoc($Recordset1));?> but xm ddidnt read the php code!!!!!!!!!!!!!! and this file must be saved as .XMl
  10. I have a XML file contains images [HIGHLIGHT=XML] <content width="368" height="450" bgcolor="cccccc" loadercolor="ffffff" panelcolor="5d5d61" buttoncolor="5d5d61" textcolor="ffffff"> <page src="pages/01.jpg"/> <page src="pages/02.swf"/> <page src="pages/03.swf"/> <page src="pages/04.jpg"/> <page src="pages/05.jpg"/> <page src="pages/06.jpg"/> <page src="pages/07.swf"/> <page src="pages/08.jpg"/> <page src="pages/09.swf"/> <page src="pages/10.jpg"/> <page src="pages/11.swf"/> <page src="pages/12.jpg"/> <page src="pages/13.jpg"/> <page src="pages/14.jpg"/> </content> [/highlight] well,let me explain to u the case am using a bookflip application downloaded from the net http://www.flashpageflip.com/ its is a html pages contains flash which gets its images from the xml file and the above r the code in the XML file my problem now,that i wan this images to be dynamically from the database using PHP so,am trying to find the way to embed the php into this XML file
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.