Jump to content

simcoweb

Members
  • Posts

    1,104
  • Joined

  • Last visited

Everything posted by simcoweb

  1. I have a contact form that when submitted would send the visitor a confirmation email containing the form info they completed. It also sends an email containing the form info to the member designated by their ID number. It's sending the confirmation email but not the email to the member. Here's the code: [code]<?php// start mail process $mailContent="--------CONTACT--------\n"             ."Name: ".$name."\n"             ."Location: ".$location."\n"             ."E-mail: ".$email."\n\n--------PHONE--------\n"             ."Phone: ".$phone."\n"             ."Best time to call: ".$best_time."\n\n--------Details--------\n"             ."Details: ".$details."\n"; //---------------------------------- $toAddress="" . $row['email'] . ""; /* change this! */ $subject="Plateau Professionals Referral"; /* change this! */ $recipientSubject="Plateau Professionals Confirmation"; /* change this! */ $receiptMessage = "Thank you ".$name." for inquiring at PlateauProfessionals.com's website!\n\n\nHere is what you submitted to us:\n\n"             ."--------CONTACT--------\n"             ."Name: ".$name."\n"             ."E-mail: ".$email."\n\n--------PHONE--------\n"             ."Phone: ".$phone."\n"             ."Location: ".$location."\n"             ."Best time to contact? ".$best_time."\n"             ."Inquiring About: ".$details."\n"; //---------------------------------- mail($email, $subject, $receiptMessage,"From:$toAddress"); //---------------------------------- mail($toAddress,$recipientSubject,$mailContent,"From:$email");[/code] This line: [quote]$toAddress="" . $row['email'] . ""; /* change this! */ ?>[/quote] is populated by a query/array. This represents the email address of the person/member the visitor wants to contact. The email confirmation the visitor receives shows the proper 'from' email address so I know it's populating that correctly. Why it sends one and not the other is the mystery. Anyone?
  2. He shoots...he SCORRRRRRRRRES! :) Ok, akitchin...that was the code 'tweak' needed for that part. Huggie, adding the category id to the link was the other part of the puzzle. Independently they wouldn't work. Collectively they do. Here's what I did: * changed the COUNT code to what akitchin provided with 'mysql_result' instead of 'mysql_num_rows' * changed the display of the total results from $num_rows (which actually returned the correct amount, by the way) to $total_results * added Huggie's categoryid=$cat_id& to the URL string Now I get 14 results, 5 per page, and the pagination displays properly and each page has the specified number of results (5 or less) Take a look: [url=http://www.plateauprofessionals.com/category-page2a2.php?categoryid=4]http://www.plateauprofessionals.com/category-page2a2.php?categoryid=4[/url] Whew! Time for a beer...even though it's 7:30 am :)  Thanks for the help, gentlemen! Just a note of interest... pagination is  a BIG topic in the forums. This code works and is easy to implement. I'm going to modify the title a bit to reflect 'pagination' so it can possibly help others.
  3. I'm emailing you a Valium. :) It's not that complicated. Here's the whole thing in a nutshell: 1) Yes, it should show 5 per page and not 14. It's set to show 5 per page. 2) But, it's showing the first 5 only and the subsequent pages show 0. Meaning it's only showing a total of 5 results and not the 14 in 3 successive pages ( Page1 | Page 2| Page 3) as it should 3) I don't want it to show just 5 total results. I want it to show 14 total results but on 3 pages (hence the pagination) 4) Category ID 4 has 14 members in it. Not 5. Therefore it should show 3 pages of results based upon the fact we have it set for 5 results per page. Period. 5) I HAVE inserted your category id code into the script and uploaded it to the server and that's what is currently located at this link: [url=http://www.plateauprofessionals.com/category-page.php?categoryid=4]http://www.plateauprofessionals.com/category-page.php?categoryid=4[/url] Note the fact that it shows 5 results and NO page link to go to results 6-10 (page 2) or 11-14 (page 3). THAT is the problem. The code is EXACTLY as you posted it. I copied and pasted your post directly into my page. No deviations...no edits...exactly.
  4. That definitely got rid of the error. Must've been a brain fart. Unfortunately it's still not paginating correctly. It just wants to display 5 results when there's 14 in the category. :(
  5. Yes, I get this error message: [quote]Fatal error: Call to undefined function: mysql_num_results() in /home2/wwwplat/public_html/category-page2a2.php on line 24[/quote] That's this: [code]$total_results = mysql_num_results($result);[/code]
  6. Acutally the category id IS being passed in the URL as you can see in my example links: [url=http://www.plateauprofessionals.com/category-page2a.php?categoryid=4]http://www.plateauprofessionals.com/category-page2a.php?categoryid=4[/url] The other link was not category specific and was pulling all the results from the entire database regardless of the category. If you use that link you'll see it pulls 14 results from that category but does not put 5 per page and create the page links. If I take the two variables out in the LIMIT clause then it displays the links to the other pages but still shows 14 on the first page and states the others have 0. Here's an example of that: [url=http://www.plateauprofessionals.com/category-page2a2.php?categoryid=4]http://www.plateauprofessionals.com/category-page2a2.php?categoryid=4[/url] In the first link, note that it displays Page 1 | Page 2 | Page 3 . This is because the $row_count = 14 and it's created the links to the other pages to accommodate results 6 -10 and 11 -14. Even though it displays '5 results found' which is incorrect and stating that because of the LIMIT clause. But when you click on them there's 0 found. The pagination is fine but the results are not. Now, without the LIMIT clause in example 2 removed you see all 14 results on the first page, pagination to pages 2 & 3..but no results there. The quest is to have 1-5 show on the first page, 6-10 on the 2nd, and 11-14 on the 3rd.
  7. HuggieBear, the server was down when you tried it. It's working if you want to try it again now. Here's the code now: [code]include 'dbconfig.php'; include 'header.php'; //connect to db mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error()); mysql_select_db($dbname) or die(mysql_error()); $cat_id = is_numeric($_GET['categoryid']) ? $_GET['categoryid'] : 0; // Double check for a valid value // If current page number, use it // if not, set one! if(!isset($_GET['page'])){     $page = 1; } else {     $page = $_GET['page']; } // Define the number of results per page $max_results = 5; // Figure out the limit for the query based on the current page number. $from = (($page * $max_results) - $max_results); // Figure out the total number of results in DB: $total_results = mysql_result(mysql_query("SELECT COUNT(*) FROM members_cat WHERE categoryid='{$cat_id}'"),0); // Figure out the total number of pages. Always round up using ceil() $total_pages = ceil($total_results / $max_results); // Grab data from plateau_pros, where the member has the specified category id $sql = "SELECT p.* FROM members_cat c, plateau_pros p WHERE c.categoryid='$cat_id' "         . "AND c.memberid=p.memberid LIMIT $from, $max_results"; $results = mysql_query($sql) or die(mysql_error()); $num_rows = mysql_num_rows( $results ); echo "<font class='bodytext'>There are <b>$num_rows</b> professionals in this category</font><br><br>\n"; // Build Page Number Hyperlinks echo "<center>Select a Page<br />"; for($i = 1; $i <= $total_pages; $i++){     echo " | ";     if(($page) == $i){         echo "Page $i ";         } else {             echo "<a class=\"body\" href=\"".$_SERVER['PHP_SELF']."?page=$i\">Page $i</a> ";     } } echo "</center>"; if (empty($results)) {   echo "No profiles found in this category."; } else { while ($a_row= mysql_fetch_array($results)){[/code] Here's the same pagination code being used in another page on the site but does not include the WHERE clause in the query. It works perfectly: [code]// test to display addbiz results header ("content type: image/gif"); header ("content type: image/jpeg"); header ("content type: image/png"); include 'config.php'; include 'header.php'; $upload_dir = "http://www.plateauprofessionals.com/images/photo"; mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error()); mysql_select_db($dbname) or die(mysql_error()); // If current page number, use it // if not, set one! if(!isset($_GET['page'])){     $page = 1; } else {     $page = $_GET['page']; } // Define the number of results per page $max_results = 5; // Figure out the limit for the query based // on the current page number. $from = (($page * $max_results) - $max_results); $sql=("SELECT * FROM plateau_pros ORDER BY memberid LIMIT $from, $max_results"); $result = mysql_query($sql) or die(mysql_error()); $mysock = getimagesize($image); $setWidth = 125; function imageResize($width, $height, $target) { $newHeight = 0; $newHeight = ($setWidth * $height) / $width; return "width='{$setWidth}' height='{$newHeight}'"; } // Figure out the total number of results in DB: $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM plateau_pros"),0); // Figure out the total number of pages. Always round up using ceil() $total_pages = ceil($total_results / $max_results); // Build Page Number Hyperlinks echo "<center>Select a Page<br />"; for($i = 1; $i <= $total_pages; $i++){     echo " | ";     if(($page) == $i){         echo "Page $i ";         } else {             echo "<a class=\"body\" href=\"".$_SERVER['PHP_SELF']."?page=$i\">Page $i</a> ";     } } echo "</center>"; while ($row = mysql_fetch_assoc($result)) {[/code] And here's a peek at how it works perfectly: [url=http://www.plateauprofessionals.com/display-page.php?page=1]http://www.plateauprofessionals.com/display-page.php?page=1[/url] Hopefully you can spot something. Thanks for your help!
  8. Yeah, put a blank set of singles quotes ahead of '$user_login'. Like this: (' ', '$user_login', etc. etc.) The blank quotes represents the ID field in the database. You have to have a placeholder for that in your values section. That should take care of it.
  9. Ok, I see what you've pointed out and I removed the duplicate query. However, here's the continuing problem. The pagination code requires these two variables placed into the main query for the data: [code]// Grab data from plateau_pros, where the member has the specified category id $sql = "SELECT p.* FROM members_cat c, plateau_pros p WHERE c.categoryid='$cat_id' "         . "AND c.memberid=p.memberid LIMIT $from, $max_results";[/code] The $from and $max_results are the two. When I do this it sets the query limit to '5' which is not what I want. I want the query to go ahead and pull all matching data...which should be 14 results for category 4. The 'LIMIT' clause is overriding this and displays just 5 results on the first page then 0 on the next two pages. If I take those variables out of the query then I get all 14 on the first page and 0 on the next two pages. The pagination code still displays Page1 | Page 2 | Page 3 but when you click on 2 or 3 it displays "0 Results Found" when, in fact, there should be 5 results per page as the $max_results variable would dictate. Visit that url and you'll see what I mean. I know this is just a 'tweak' where the query or a variable needs to be replaced or changed. But I can't figure it out.
  10. Yeah, that space is gone. Here's the whole batch of code. Perhaps it just needs a tweak in order for the pagination to work properly in a situation where the WHERE clause is present. Like I mentioned, I have this pagination working perfectly on a set of pages that does not specify a WHERE clause in the query. That's the only difference between the two. Here's the code: [code]if(!isset($_GET['page'])){     $page = 1; } else {     $page = $_GET['page']; } // Define the number of results per page $max_results = 5; // Figure out the limit for the query based on the current page number. $from = (($page * $max_results) - $max_results); // Grab data from database, where the member has the specified category id $sql = "SELECT p.* FROM members_cat c, plateau_pros p WHERE c.categoryid='$cat_id' "         . "AND c.memberid=p.memberid"; $results = mysql_query($sql) or die(mysql_error()); $num_rows = mysql_num_rows( $results ); echo "<font class='bodytext'>There are <b>$num_rows</b> professionals in this category</font><br><br>\n"; // If current page number, use it // if not, set one! // Figure out the total number of results in DB: $results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM members_cat WHERE categoryid='{$cat_id}'"),0); $total_results = mysql_num_rows( $results); // Figure out the total number of pages. Always round up using ceil() $total_pages = ceil($total_results / $max_results); // Build Page Number Hyperlinks echo "<center>Select a Page<br />"; for($i = 1; $i <= $total_pages; $i++){     echo " | ";     if(($page) == $i){         echo "Page $i ";         } else {             echo "<a class=\"body\" href=\"".$_SERVER['PHP_SELF']."?page=$i\">Page $i</a> ";     } }[/code] Basically if I call the script and extend the URL to include the category ID then it displays the proper number of results but it doesn't paginate them. I have pagination set for 5 per page. The results yields 14 members and provides links to 3 pages (at 5 each) but still displays all 14 on the first page and the other pages are blank. Check it out: [url=http://www.plateauprofessionals.com/category-page2a.php?categoryid=4]http://www.plateauprofessionals.com/category-page2a.php?categoryid=4[/url]
  11. Ok, it's good to stop and clarify. You're pretty much on track with your assessment of what i've got working so far: [quote]okay you seem to have 3 different scripts going here: your form, your target, and some other script called members.  And it seems that your form script's action targets your target script, but you are trying to access your form's posted variables in some other script called members.php .  My best guess is that you have a login form that asks for the username/password, and then a script to authenticate it, and then upon authentication, you get whisked away to another script called members.php and you are wanting to do another query based on the same information.  Is that even remotely right?[/quote] [b]login.php:[/b] Basic login form Contains the session_start(); Form action = $PHP_SELF so it parses to itself instead of external script Checks username/password against the database to validate existence Forwards the person onto 'members.php' page via header() statement in IF no errors occur [color=red]Passes the username variable 'username' via session[/color] or, at least I think it does [b]members.php:[/b] - continues session/validates existence of session - posts $username variable as $username='$_POST['username'] which, now I understand, will not post to this page since it's not the page parsing the data - runs mysql query to pull the data regarding that member with WHERE clause being $username - Displays various data from the database throughout the page So, basically it's two pages/scripts. The login.php contains the parsing script. The members.php page (the 'target page' after login) contains code for extracting the data to display. The breakdown appears to be in passing the form value(s) 'username' to the members.php page so the query: [code]$sql = "SELECT * FROM plateau_pros WHERE username='$username'"; $result = mysql_query($sql, $conn) or die(mysql_error());[/code] can pull the required data. Right now after logging in the 'members.php' page is completely blank which means it's not passing that variable. Now, not to confuse anything at this point, but i'd love to use the 'memberid' as the primary variable passed in order to utilize that in a variety of ways since it's always a unique number. So, passing that would be preferred. I was using 'username' since it was a form field that I felt would be passed in the $_POST method. By using the memberid field instead I can create url's pointing like: [quote]referrals.php?memberid=$memberid[/quote] Make sense? Also, did I say THANKS FOR THE HELP? :)
  12. ARRRRGHH! Still not pulling the data based on the username. Here's the first chunk of code in the 'members.php' page that should be pulling the data and displaying it based upon the username: [code]<?php // Enable sessions session_start(); $memberid = (isset($_SESSION['memberid'])) ? $_SESSION['memberid'] : NULL; $username = $_POST['username']; // Turn on magic quotes to prevent SQL injection attacks if(!get_magic_quotes_gpc()) set_magic_quotes_runtime(1); include 'header.php'; include 'dbconfig.php'; // Connect to database $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error()); mysql_select_db($dbname) or die(mysql_error()); //new sql query $sql = "SELECT * FROM plateau_pros WHERE username='" . $username . "'"; $result = mysql_query($sql, $conn) or die(mysql_error()); ?>[/code] I inserted the variables as you specified as so: [code]// Validate users input if(!empty($_POST)) { // Check username has a value if(empty($_POST['username'])) $eg_error['username'] = "Please enter a user name!"; // Check password has a value if(empty($_POST['password'])) $eg_error['password'] = "Please enter a password!"; // Check if any errors were returned and run relevant code if(empty($eg_error)) { $username = $_POST['username']; $password = $_POST['password']; // Get Record Set $sql = ("SELECT * FROM plateau_pros  WHERE username = '$username' AND password = '$password'");[/code] This is driving me whacky.
  13. Ok, cool. So this should be at the top of 'members.php' ? [code]<?php   session_start();   $memberid = (isset($_SESSION['memberid'])) ? $_SESSION['memberid'] : NULL; ?>[/code]
  14. Perhaps i'm confused as usual. I have those variables being set on the members.php page... the landing page after they log in. Hmmm...now that I think about it...those variables would need to be on the page that parses the form..and not on the page that they are redirected to. Am I on track with that? Also, this chunk of code... is this proper syntax? [code]if ($num_rows == 1) {       // Enable sessions //if (isset($_SESSION['loggedin'])) //{   session_start();   session_register('memberid');   $memberid = ($results['memberid']);   header("Location: members.php");   exit;[/code] I was trying to set a session variable for 'memberid' so I can pass that onto the next page(s) and use it in some URL's pertaining to that particular member's profile.
  15. Ok, swapped that out and error went away. Thanks guys!
  16. Certainly: [code]<?php session_start(); include 'dbconfig.php'; $loginError = ""; // declare this so it is always available // Turn on magic quotes to prevent SQL injection attacks if(!get_magic_quotes_gpc()) set_magic_quotes_runtime(1); // Connect to database $eg_objConn1 = mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error()); mysql_select_db($dbname, $eg_objConn1) or die(mysql_error()); // Validate users input if(!empty($_POST)) { // Check username has a value if(empty($_POST['username'])) $eg_error['username'] = "Please enter a user name!"; // Check password has a value if(empty($_POST['password'])) $eg_error['password'] = "Please enter a password!"; // Check if any errors were returned and run relevant code if(empty($eg_error)) { // Get Record Set $sql = ("SELECT * FROM plateau_pros  WHERE username = '$username' AND password = '$password'"); mysql_query($sql) or die(mysql_error()); $results = mysql_query($sql) or die(mysql_error()); $num_rows = mysql_num_rows($results) or die(mysql_error()); if ($num_rows == 1) {       // Enable sessions //if (isset($_SESSION['loggedin'])) //{   session_start();   session_register('memberid');   $memberid = ($results['memberid']);   header("Location: members.php");   exit; } else {   $loginError = "Your user name and password do not match any in our database! Please try again."; } } } include 'header.php'; ?> <div align="center"> <table id="table13" style="BORDER-COLLAPSE: collapse" bordercolor="#666666" cellpadding="4" width="530" border="0"> <tbody> <tr> <td> &nbsp; <h2 align="center">Login page </h2> <font color="red"> <div align="center"> <? // Loop through all errors if(!empty($eg_error)) { ?> <ul> <? foreach($eg_error as $eg_message) { ?> <li id="validationError"><?= @$eg_message ?></li> <? } ?> </ul> <? } ?> </div> </font> <form action="<?php print PHP_SELF ?>" id="Form1" style="WIDTH: 100%" name="Form1" method="post" > <table id="Table1" cellspacing="0" cols="2" cellpadding="0" align="center" border="0"> <tbody> <tr> <td> User name:&nbsp;&nbsp;</td> <td> <input id="Text1" name="username" ></td> </tr> <tr> <td> Password:</td> <td> <input id="Password1"  type="password" size="21" name="password"></td> </tr> <tr> <td> </td> <td align="right"> <br> <input id="Submit1" type="submit" value="Login"></td> </tr> </tbody> </table> </form> <strong><font color="red"> <p id="loginError" align="center"><?= $loginError ?></p> </font></strong></td> </tr> </tbody> </table> </div> <p> <hr width="80%" height="1"> <form action="forgot.php" method="POST" name="forgot"> <table width="450" border="0" align="center"> <tr><td><h2>Forgot Your Password?</h2><br> <font class='bodytext'>If you have forgotten your password complete the form below to have your information sent to you.</font><p> <tr><td><font class="bodytext">Enter your username: <br><input type="text" size="20" name="username" id="username"></td></tr> <tr><td><input type="submit" name="submit" value="Submit"></td></tr> </table> </form> <? include 'footer.php'; ?>[/code]
  17. I get this error: [quote]Warning: mail() expects parameter 3 to be string, array given in /home2/wwwxxxx/public_html/forgot.php on line 24[/quote] from this code: [code]else { $row=mysql_fetch_array($r); $password=$row["password"]; $email=$row["email"]; $subject="your password"; $header="from:admin@plateauprofessionals.com"; $content="Hello. As per your request your password is ".$password; mail($email, $subject, $row, $header); print "<h2>Password Sent</h2><p><font class='bodytext'>An email containing the password has been sent to you.<BR>\n"; }[/code] with line 24 being the one in red. [color=red]mail($email, $subject, $row, $header);[/color]
  18. Ok, that's the way the form fields were previously. I will switch them back in the name of progress. Also, not quite clear on the second part of your post. The page that 'checks' the login... the login is validated with some code in the login.php page as such: [code]// Validate users input if(!empty($_POST)) { // Check username has a value if(empty($_POST['username'])) $eg_error['username'] = "Please enter a user name!"; // Check password has a value if(empty($_POST['password'])) $eg_error['password'] = "Please enter a password!"; // Check if any errors were returned and run relevant code if(empty($eg_error)) { // Get Record Set $sql = ("SELECT * FROM plateau_pros  WHERE username = '$username' AND password = '$password'"); mysql_query($sql) or die(mysql_error()); $results = mysql_query($sql) or die(mysql_error()); $num_rows = mysql_num_rows($results) or die(mysql_error()); if ($num_rows == 1) {[/code] There's no validation on the 'members.php' page at this time. Which after the 'if' statement it sets the session variables as so: [code]session_start();   session_register('memberid');   $memberid = ($results['memberid']);   header("Location: members.php");   exit; } else {   $loginError = "Your user name and password do not match any in our database! Please try again."; } } }[/code] Which [i]should[/i] pass this on to the 'members.php' page.... which opens with: [code]session_start();[/code] then runs the query for pulling the data based on the WHERE username='$username' Am I missing a step or have a step out of order?
  19. Ok, changed to this: [code]<form action="<?php echo $_SERVER['PHP_SELF']; ?>" id="Form1" style="WIDTH: 100%" name="Form1" method="post" >[/code] But still get this: [quote]query = SELECT * FROM plateau_pros WHERE username='' Heres your problem [/quote] I'd love to say the missing = sign fixed it...but. Still same problem. No username being passed.  :P
  20. that echo brought back the error message. The question is why is it not passing that form field to the members.php page.  ??? ???
  21. Here's the form tag: [code]<form action"<? print $PHP_SELF ?>" id="Form1" style="WIDTH: 100%" name="Form1" method="post" >[/code] and here's the field tags: [code]<input id="Password1" style="WIDTH: 155px; HEIGHT: 22px" type="password" size="21" name="password"value="<?= @$_POST['password'] ?>">[/code] [code]<input id="Text1" name="username" value="<?= @$_POST['username'] ?>">[/code]
  22. It would be ORDER BY then the column you want it sorted with... like 'id' or similar.
  23. Thanks for the response. I've got this session info at the top of my script: [code]session_start(); $_SESSION['loggedin'] = $_POST['username']; $username = $_POST['username'];[/code] I've been experimenting with several variations of this including just the first two lines as well as just $_SESSION['username']; Still nothing. Also, I just tried your suggestion and echoed the $result = mysql_query($sql); statement and get this: [quote]Resource id #45[/quote] When I echo the $sql directly I get this: [quote]SELECT * FROM plateau_pros WHERE username=''[/quote] Not sure what to make of it.
  24. Ok, summary... I have login form asking for 'username' and 'password'...validates the fields... checks the db for existence..then forwards them onto the 'members.php' page where it SHOULD display their profile information based upon this query: [code]$sql = "SELECT * FROM plateau_pros WHERE username='$username'"; $result = mysql_query($sql, $conn) or die(mysql_error());[/code] with this variable set: [code]$username = $_POST['username'];[/code] The login takes me to the 'members.php' page but nothing is displayed. Now, if I replace the $username in the WHERE clause with an actual registered username it pulls up fine. I've been scratching my head alot on this one. Anyone?
  25. I came across this thread while looking for some relief regarding image resizing. I downloaded sprintf's 'example' script and it works great if you're calling a single pic. What I'm doing is running a 'while' loop through the mysql results to display multiple profiles in some html. I was previously using a call like this: [code]while ($a_row = mysql_fetch_array($results)){ echo                 "<div align='center'>                   <table border='0' cellpadding='0' style='border-collapse: collapse' width='530'>                     <tr>                       <td colspan='2'>                       <img border='0' src='images/top.gif' width='530' height='35'></td>                     </tr>                     <tr>                       <td style='padding-left: 10px;' height='15' colspan='2'>                       <h2>". $a_row['firstname'] ." ". $a_row['lastname'] . "</h2>                       </td>                     </tr>                     <tr>                       <td style='padding-left: 10px; padding-right: 10px; padding-top:5px; padding-bottom:5px' width='210' valign='top'><img src='images/photo/" . $a_row['photo'] . "'  width='200' height='225'></td>[/code] etc. etc. And it worked fine through the array. However, i'm using standard HTML tags for the image resizing which, of course, makes the pics all whacky. Therefore i'm desperately looking for a way to resize each image on the fly and came across your script. Now, I've tried a couple of ways to produce the same results using your script like these: [code]<img src='/image_f.php?image=$photo' alt='' />[/code] and [code]<img src='/images/photo/" . $a_row['photo'] . "' />[/code] The second works fine but only displays the first pic or some of the pics but fails on many of them. Here's an example: [url=http://www.plateauprofessionals.com/display-page-a.php?page=3]http://www.plateauprofessionals.com/display-page-a.php?page=3[/url] Question is can this resize script be adapted to work in this enviroment where it's pulling multiple pics from the same folder, resizing them, and displaying them properly? Thanks for the help!
×
×
  • 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.