Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. erm.. shouldn't <?php <a href='yourgang.php?action=staff&act2=masspayment'>Mass Payment[/url] ?> be <?php <a href='yourgang.php?action=staff&act2=masspayment'>Mass Payment</a> ?>
  2. http://www.phpfreaks.com/forums/index.php/topic,132885.msg558875.html#msg558875 i foundit by looking here http://www.phpfreaks.com/forums/index.php?action=profile;u=31122;sa=showPosts
  3. try this <?php include 'connect.php'; mysql_select_db("pserver_ITSE2302") or die(mysql_error()); $name = $_POST['name']; $address = $_POST['address']; $city = $_POST['city']; $state = $_POST['state']; $zip = $_POST['zip']; $query = ""; if($name != "") $query .= "name = '$name' AND "; if($address != "") $query .= "address = '$address' AND "; if($city != "") $query .= "city = '$city' AND "; if($state != "") $query .= "state = '$state' AND "; if($zip != "") $query .= "zip = '$zip' AND "; $query = trim($query,"AND "); $FullQuery = "SELECT * FROM lab5 WHERE $query"; $result = mysql_query($FullQuery) or die (mysql_error()); if($result) { while($row = mysql_fetch_array($result)) { $name = $row['name']; $address = $row['address']; $city = $row['city']; $state = $row['state']; $zip = $row['zip']; echo "<table>"; echo "<tr>"; echo "<td>"; echo $name; echo "</td>"; echo "<td>"; echo $address; echo "</td>"; echo "<td>"; echo $city; echo "</td>"; echo "<td>"; echo $state; echo "</td>"; echo "<td>"; echo $zip; echo "</td>"; echo "</tr>"; echo "</table>"; } } else echo "Could not retrieve records: %s\n", mysql_error($connect); ?>
  4. what i do is add the comma then remove it IE <?php $tmp = ""; foreach ($_POST["eval"] as $eval) { $tmp .= $eval.", "; } $tmp = trim($tmp,", "); echo $tmp; ?> hope that helps
  5. you could of tried the following require('/home/russia6/public_html/libs/Smarty/Smarty.class.php');
  6. Cool
  7. if thats your full code then the problem is $name or $body is not set anyway!! as for the rest of the code thats fine!
  8. normally means your pointing to the wrong location, try require 'libs/Smarty.class';
  9. Depends on the system your using (i assumes its not your own creation)
  10. anthonydamasco, hows the code going ? resolved yet?
  11. yes it is, i have done it before with a flash form, i can't remember exactly but i think i setup a php page to get write a text file and then some action script to read them inn.. i hope this helps..
  12. try searching the forum http://www.phpfreaks.com/forums/index.php/topic,95562.0.html
  13. copy failed.. check folder rights whats the access rights of the folder thumbs ? did test1.txt upload ok ?
  14. try uploading a file (test1.txt) to the absolute path of "/thumbs/" and try the code below. <?php $path = "/thumbs/"; #<-- change to absolute path $avar1 = "test1.txt"; $avar2 = "test2.txt"; echo copy($path.$avar1, $path.$avar2); ?> .. nice snippet bwochinski
  15. congrates cmgmyr, i hope it all works out well for you, enjoy the excitment stress soon follows
  16. echo $content; will not work like that your need you will either create a file first or use GD to draw the image, personally i would upload the image and store a path to the image.
  17. No if the page was userinfo.php then userinfo.php would display "//display normal" userinfo.php?Action=Edit would display "//form page for editing" userinfo.php?Action=save would "//save submitted info" AND "//display normal"
  18. i use Absolute paths also check to the access rights to that folder, must be writable
  19. personally i would have a statment like have some hidden fields for userid etc <?php if(isset($_GET['Action'])) { if($_GET['Action'] == "Edit") { //form page for editing return; } if($_GET['Action'] == "save") { //save submitted info } //display normal } ?>
  20. MadTechie

    IN USE

    use UNLOCK TABLES
  21. i'm sure UNSELECTABLE works in 5.5 so it stands to reason it will work in 6 but i don't think it works in firefox!
  22. That seams fine, i really can't see where you have a problem ? where are you putting the code <p align="left"> <?include("include/loginbox.inc.php"); ?> </p> <? include("include/adminerr.inc.php"); if($auth[error]) { include("include/messages/index_unverified.inc.php"); } else { include("include/messages/index_verified.inc.php"); } ?>
  23. use "ORDER BY $order ASC" or "ORDER BY $order DESC" what do you mean
  24. Yes you can use "ORDER BY" ie SELECT * FROM `people` ORDER BY `Age` ASC will need more info about what data your working with for a better solution
  25. Just getting a ton of adverts no login !!
×
×
  • 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.