Search found 11 matches
- Fri Nov 20, 2009 4:23 pm
- Forum: Databases
- Topic: Using a record for a link
- Replies: 6
- Views: 1319
Re: Using a record for a link
Your right. It's much easier to understand the variable solution after understanding the first solution though. Thanks.
- Fri Nov 20, 2009 3:49 pm
- Forum: Databases
- Topic: Using a record for a link
- Replies: 6
- Views: 1319
Re: Using a record for a link
Oh, I get it!! It keeps it simpler too... when you specify how each row should be displayed rather than that loop. Such a simple solution and it works perfectly. I really can't thank you enough for helping me. :D On a side note me or anyone else could easily use your solution for displaying tables h...
- Fri Nov 20, 2009 2:39 pm
- Forum: Databases
- Topic: Using a record for a link
- Replies: 6
- Views: 1319
Re: Using a record for a link
Thanks for the response. I'm really new to PHP, so my apologizes. I attached a screen capture of the table being produced. This might give you more of an idea what I'm trying to do. I thought I would have to use the foreach statement because each row will have a different link. Ideally I want the co...
- Fri Nov 20, 2009 1:45 pm
- Forum: Databases
- Topic: Using a record for a link
- Replies: 6
- Views: 1319
Using a record for a link
Any help is appreciated! The user enters data into the database including a url and a name for that URL. For example: One might enter http://www.google.com for the URL and then "Visit Google" for the name. Once queried I want "Visit Google" to show up and when clicked it will tak...
- Tue Oct 13, 2009 10:14 am
- Forum: Databases
- Topic: Retreiving Images from Database
- Replies: 4
- Views: 539
Re: Retreiving Images from Database
Thank you for the reply. I ended up solving my problem by using the code below. (foreach) statement. Very similiar to your solution. <table border='1'> <tr>"; // Print table rows while($record = mysql_fetch_row($q)) { echo "<tr>";{ foreach ($record as $field => $cell) { ...
- Thu Oct 08, 2009 11:14 pm
- Forum: Databases
- Topic: Retreiving Images from Database
- Replies: 4
- Views: 539
Re: Retreiving Images from Database
I tried your solution, but the pictures are not showing up. (the little thumbnails that represent pictures that are not connected seem to be in the right spot next to each row), but still no pictures. <html> <head> <title>Custom Foam Interior Templates</title> </head> <body> <?php $m...
- Wed Oct 07, 2009 8:28 pm
- Forum: Databases
- Topic: Display Image in Query
- Replies: 1
- Views: 324
Display Image in Query
What code do you need to allow pictures to come up in a query? This tutorial works perfect, but I need a modification so that I can use a select statement and have all the pictures show.
http://www.phpbuilder.com/columns/florian19991014.php3
http://www.phpbuilder.com/columns/florian19991014.php3
- Wed Oct 07, 2009 12:50 pm
- Forum: Databases
- Topic: Retreiving Images from Database
- Replies: 4
- Views: 539
Retreiving Images from Database
Hey all, I'm new to php and have a question. Any help would be appreciated. I am able to get images into my database using the help from http://www.phpbuilder.com/columns/florian19991014.php3?page=1 but I'm having trouble implementing the retrieval of the image in my script below. <html> <head> <tit...
- Wed Oct 07, 2009 12:29 pm
- Forum: PHP - Code
- Topic: Help retrieving images from a database
- Replies: 3
- Views: 97
Re: Help retrieving images from a database
I have taken another approach and no longer need input for this.
- Wed Oct 07, 2009 9:09 am
- Forum: PHP - Code
- Topic: Help retrieving images from a database
- Replies: 3
- Views: 97
Re: Help retrieving images from a database
Thanks for the reply. I used "base64_encode()" to get the image in there. I think what it comes down to is that I'm having trouble correctly using "base64_decode()." I can't seem to implement it correctly so that it works. My query just keeps showing a bunch of random characters ...
- Tue Oct 06, 2009 9:12 pm
- Forum: PHP - Code
- Topic: Help retrieving images from a database
- Replies: 3
- Views: 97
Help retrieving images from a database
Hey I'm kind of new to PHP, so any help is appreciated. I have decided to put images inside my database (I know many feel strongly against this). I am able to put an image in the database with the code below: <?php $handle = fopen("$_FILES['images/test.jpg']", "rb"); $img = fread...