Jump to content

keeB

Staff Alumni
  • Posts

    1,075
  • Joined

  • Last visited

Everything posted by keeB

  1. [!--quoteo(post=352957:date=Mar 8 2006, 08:12 PM:name=Guteman)--][div class=\'quotetop\']QUOTE(Guteman @ Mar 8 2006, 08:12 PM) [snapback]352957[/snapback][/div][div class=\'quotemain\'][!--quotec--] Alright guys, here is my issue. I cannot get to work properly. Specificly the $id part. Its not seeing the id in the news through the sql. I know the rest of this works because I can enter an id number after the link and it works. So its gotta be that variable. Can you please help me out? [/quote] [code]echo "<a href=\"edit.php?cmd=edit&id=$id\">$title - Edit</a>";[/code] the single quotes weren't evaluating $id.
  2. [!--quoteo(post=352958:date=Mar 8 2006, 08:16 PM:name=Haden)--][div class=\'quotetop\']QUOTE(Haden @ Mar 8 2006, 08:16 PM) [snapback]352958[/snapback][/div][div class=\'quotemain\'][!--quotec--] Thank you... works like a charm! [/quote] One problem with this method, if you havent realized yet, is that people can use SQL Insertion techniques on your fields very easily this way.. Designing something better structured is more complex, but security is really important. Just something to take note if you will have a lot of people visiting your site.
  3. I think what you might be looking for is a combination of the replace function you found on php.net .. and regular expressions, which are also available on php.net. I can help you further, but read up first and come back with more specific questions :)
  4. [!--quoteo(post=352935:date=Mar 8 2006, 06:55 PM:name=WillWill)--][div class=\'quotetop\']QUOTE(WillWill @ Mar 8 2006, 06:55 PM) [snapback]352935[/snapback][/div][div class=\'quotemain\'][!--quotec--] where do i go from here? [/quote] Looks like your data is getting associaed incorrectly, which means what you have in quotes is wrong :D Notice how the debug information has "[ Name ] => Topper Main Points" yo're referring to it as [code]$name=$row['name'];[/code] when it should be [code]$name=$row['Name'];[/code] yes, case does matter. I hope this helped!
  5. [!--quoteo(post=352937:date=Mar 8 2006, 07:09 PM:name=anticore)--][div class=\'quotetop\']QUOTE(anticore @ Mar 8 2006, 07:09 PM) [snapback]352937[/snapback][/div][div class=\'quotemain\'][!--quotec--] i'm trying to create a simple gallery for my site. and i'm not sure on how to go about it. i'm designing my mysql table to look like id,name,year,yearsection,description,image1,image2,image3,image4,thumbnail yearsection is so that i can call all the images within year catagories i have already defined and the imageX are to store the locations of the images. i'm thinking i'm going to need a couple functions a listing function to list according to my year catagories showing a thumbnail and just a name a id function to load whatever image/name is chosen on the listing page with the describtion and images and an add/delete/modify. Is there something i'm forgetting? or is there a better way of doing this [/quote] Maybe it's the complicated part of me, but I would definately seperate this into at least a few tables and join them based on the data you need. What are the image1-4 for? wouldn't it just be 1 source image, grouped together by category, year, event? something along those lines? I think you have a good general idea, but it needs to be expanded a little bit ;)
×
×
  • 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.