-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
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> ?>
-
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
-
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); ?>
-
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
-
you could of tried the following require('/home/russia6/public_html/libs/Smarty/Smarty.class.php');
-
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!
-
normally means your pointing to the wrong location, try require 'libs/Smarty.class';
-
Depends on the system your using (i assumes its not your own creation)
-
anthonydamasco, hows the code going ? resolved yet?
-
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..
-
[SOLVED] Grrrr... login page not redirecting after login
MadTechie replied to simcoweb's topic in PHP Coding Help
try searching the forum http://www.phpfreaks.com/forums/index.php/topic,95562.0.html -
copy failed.. check folder rights whats the access rights of the folder thumbs ? did test1.txt upload ok ?
-
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
-
congrates cmgmyr, i hope it all works out well for you, enjoy the excitment stress soon follows
-
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.
-
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"
-
i use Absolute paths also check to the access rights to that folder, must be writable
-
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 } ?>
-
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!
-
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"); } ?>
-
use "ORDER BY $order ASC" or "ORDER BY $order DESC" what do you mean
-
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
-
Just getting a ton of adverts no login !!