Jump to content

budimir

Members
  • Posts

    522
  • Joined

  • Last visited

Everything posted by budimir

  1. You have a variety of PHP editors, for instance: If you are a newbie - Dreamwaver (it's prefect for writing code, you have colouring the code, it gives you syntax, you have da "what you see" editor...) - PHP Designer 2007 (very good, colouring the code, syntax....) For a little bit more experienced - Edit+ But, my advice is. Try to use couple of them and see which one you like best. That one will be best for you. It's so individuall.
  2. Try to use: echo "$variable"; To see if you are passing any data to database. But it seems to me, that you are sending an empty query. Try to do it in one query, or use different names for varibales. Hope, this helps a little.
  3. I think, you are looking for this $oriname = $_FILES['imagefile']['name'];
  4. THAT'S IT!!!!! Thanks a lot!!!!!!!
  5. I'm sorry. It didn't help. And the reason is: I'm using a form and calling delete_page.php. In delete_page.php I need to put header to take me back to page from which I called delete_page.php. The header you posted here is directing to itself.
  6. Could you explain it a little bit...? The situation is. I have deleted 4 records and now I would like to go back to page where I have deleted these 4 records and see the rest.
  7. Hi Guys, I need help with header. I have a page on which I'm deleting multiplie records using checkbox. So I'd like to use header to get back to that same page after deleting all the records that I have checked. How do I use that? header("Location:pregled.phpXXXXXX");
  8. Anyone got any ideas how to solve the above problem!? ???
  9. Okay, so: The Javascript <link rel="stylesheet" type="text/css" href="css/lightview.css" /> <script type='text/javascript' src='js/prototype.js'></script> <script type='text/javascript' src='js/scriptaculous.js?load=effects'></script> <script type='text/javascript' src='js/lightview.js'></script> The PHP code: $upit = "SELECT * FROM slike WHERE id='$id'"; $rezultat = mysql_query($upit); echo "<table cellspacing=7 $wdht border=0 cellpadding=3><tr valign=bottom>"; $i=1; while ($row = mysql_fetch_array($rezultat)){ echo "<td align=center width='25%' valign=top>"; if ($row["imgdata"]) echo "<a href='images/".$row["imgdata"]."'><img border=0 src='images/".$row["imgdata"]."' alt='".$row["title"]."' witdh='100' height='100'><br><div style='font-size:1px; margin-top:4px;'> </div><a href='images/".$row["imgdata"]."'>"; echo $row["title"]; echo "</td>"; if ($i%4==0) echo "</tr><tr><td> </td></tr><tr valign=bottom>"; $i++; } echo "</tr></table>"; The directory structure is: css/ - for the css file js/ - for the javascript / - php files
  10. To make it easier, this is what I'd like to use! http://www.nickstakenburg.com/projects/lightview/
  11. Hey guys. Actually my code is working. I can display pictures, but my problem is that I'd like to implement this peace of code to add an effect for displaying pictures. <a href="<?php echo $picture; ?>" class="lightview" rel="gallery[myset]">Image 1</a> But it's not working. Can you show me how to implement it in my code so it could work properly?
  12. Sorry, but it's not working like that. How would you put it in this peace of code? echo "<table cellspacing=7 $wdht border=0 cellpadding=3><tr valign=bottom>"; $i=1; while ($row = mysql_fetch_array($rezultat)){ echo "<td align=center width='25%' valign=top>"; if ($row["imgdata"]) echo "<a href='images/".$row["imgdata"]."'><img border=0 src='images/".$row["imgdata"]."' alt='".$row["title"]."' witdh='100' height='100'><br><div style='font-size:1px; margin-top:4px;'> </div><a href='images/".$row["imgdata"]."'>"; echo $row["title"]; echo "</td>"; if ($i%4==0) echo "</tr><tr><td> </td></tr><tr valign=bottom>"; $i++; } echo "</tr></table>"; ?>
  13. I have a php script with which I'm getting the pictures from the database and displaying them on a web page. Now I'd like to add an image effect to display these pictures, but the problem is IT'S NOT WORKING. <a href='<?=$picture?>' class='lightview' rel='gallery[myset]'>Image 1</a> I would need to put a php code inside the line above to display the pictures with this effect. Can you help me with this?
  14. Did you check that your mail() setting is enabled in the .ini settings. Try to test the mail function and see what is happening. If it's working try to check your host:........ which you are using. You have already finished send_mail.php scripts on the web.
  15. This would be the solution to my problems. SELECT ID,COUNT(*) as highest FROM obilasci GROUP BY ID ORDER BY highest DESC limit 1 Thanks for you effort, guys!!!!!
  16. Thanks for this. But I need ONLY an ID with the "highest" number.
  17. Thanks for this! I just need one more thing. How do I display an ID with the biggest number in field "highest"?
  18. For some reason I'm not getting the ID. This is the result "ID has 5 occurrences". Is there any reason why it's not working?
  19. That's a part of it!! How do I display which is which????
  20. Thanks a lot. That's it!!! But now I'd like to display which is which. Can you help with that?
  21. I have and ID field in a table and loads of information in it. I would like to count and display number of ID's in that column. So, basiclly, this is what I'd like to get: ID 54 = 13 times in table ID 16 = 55 times in table ID 78 = 100 times in table I hope you get what I mean. Please help
  22. budimir

    truncate

    Can you post the whole code that you are using?
  23. I need help! I have and ID field in a table and loads of information in it. I would like to count and display numbers of ID's in the column. So, basiclly, this is what I'd like to get: ID 54 = 13 times in table ID 16 = 55 times in table ID 78 = 100 times in table I hope you get ehat I mean. I NEED THIS, PLEASE HELP!!!!!
  24. and The same file includes in other pages just fine but I don't go more than one folder deep and I was thinking that might be the problem. Example of another page I include the same file in include ("admin/config.php"); This works perfectly ??? Any help would be greatly appreciated, thanks in advance! Actually what could help you is: include(../admin/config.php); ---- loose the ../ and put include ("admin/config.php"); - this sould be fine When you are using ../ you are going one dir back. And if you are in current dir and want to access admin/config.php, then you do as above.
×
×
  • 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.