harristweed
Members-
Posts
346 -
Joined
-
Last visited
-
Days Won
1
Everything posted by harristweed
-
Make sure you are posting the data to paypal and not sandbox
-
$sql= "SELECT name FROM unittype WHERE type = 1"; $result=mysql_query($sql) or die("Could not find units"); while($data=mysql_fetch_array($result)){ echo"$data[0]<br />\n"; }
-
It appears that you have a field called 'name'. This is a reserved word in mysql. Change this field name and the query will work.
-
this is how I would create a changeable variable <?php for($i=0;$i<=10;$i++){ $GLOBALS['html'.$i]=$i; } echo "two=$html2<br />\n"; echo "three=$html3<br />"; ?>
-
<select id="country" name="country" tabindex = "511"> <option value="">(please select a country)</option> <option value="AF" <?php if($_SESSION['country'] =="AF")echo " selected = \"selected\" ";?>>Afghanistan</option> <option value="AL" ?php if($_SESSION['country'] =="AL")echo " selected = \"selected\" ";?>>Albania</option> .... Etc
-
What does the date look like that is produces by datepicker?
-
You might get a clue from this: http://www.phpfreaks.com/tutorial/working-with-checkboxes-and-a-database
-
Line Feed, Carrige Return? Configuration Problem?
harristweed replied to CraigDee's topic in PHP Coding Help
echo $newsentry; echo '_______<br />Read More..'; ? -
Checking to see if all fields in a row have a value
harristweed replied to beemer832's topic in PHP Coding Help
Put the image path into an array. Count the array. i.e. $images=array(); if((!empty($database_field_1))$images[]=$database_field_1; if((!empty($database_field_2))$images[]=$database_field_2; ...... $number_images=count($images); -
I need major help with my website, please.
harristweed replied to brucegregory's topic in PHP Coding Help
Quite simple, using CSS there is a container Div and each 'box' is a seperate Div (container) that is 'floated' having a fixed width, height and margin. -
I need major help with my website, please.
harristweed replied to brucegregory's topic in PHP Coding Help
have a look at http://www.starvillasjavea.com/3_bed_villas.php I think this is the same (ok its villas not movies but the principle is the same) If you want i'll send you the code. -
$qry = "INSERT INTO members(firstname, lastname, login,) VALUES('$fname','$lname','$login')"; remove comma after login $qry = "INSERT INTO members(firstname, lastname, login) VALUES('$fname','$lname','$login')";
-
I'm trying to add a watermark to images uploaded to a site...
harristweed replied to KDM's topic in PHP Coding Help
Self Defence Lesson: Attack with a white stick, OK, I can now defend myself against a white stick.... but what if it's a brown stick? -
This is NOT a PHP question. It is a Java script issue, you neen to look at jquery and http://www.jqueryplugins.com/plugin/193/
-
http://www.phpfreaks.com/tutorial/basic-pagination
-
You are only retrieving data from one table: $query = "SELECT * FROM Transactions, Transactions, Users WHERE Transactions.userID = '6' AND transDate = '2010-12-09'"; If you have three connected tables you need to 'join' them correctly. http://www.tizag.com/mysqlTutorial/mysqljoins.php
-
I would have three tables: 1. User Details 2. Headings (rent, maintenance, wages, shopping etc) two columns heading_id and heading_description 3. Transactions. Four columns: trans_id, Trans_date, heading_id, amount
-
Don't need a direct answer - just where to look for the error
harristweed replied to boblan66's topic in PHP Coding Help
as last resort, rtfm http://cn.php.net/manual/en/control-structures.elseif.php -
Yes, I can see a few error.. why not: $query = "SELECT * FROM Companies WHERE owner = '$userName'"; $result = mysql_query($query) or die("Error: " . mysql_error()); $count = mysql_num_rows($result); echo"<p>Count: $count</p>"; $i=1; while($data=mysql_fetch_array($result)){ echo $i.":".$data['name']."<br />\n"; $i++; }
-
Don't need a direct answer - just where to look for the error
harristweed replied to boblan66's topic in PHP Coding Help
errors in your code: Line 137 h1, { should be h1{ Line 170 should not have a '}' Line 140 need a closing ; "; You need three closing } after line 140 -
How to "remember" select tag value--please help
harristweed replied to geekisthenewsexy's topic in PHP Coding Help
while($row=mysql_fetch_array($result)) { echo "<option value=$row[school_year]"; if($your_value==$row[school_year])echo " selected = \"selected\" "; echo">$row[school_year]</option>"; } -
are you sure there is a database connection?
-
associating photo upload with previously submitted form data
harristweed replied to webguync's topic in PHP Coding Help
http://www.tizag.com/mysqlTutorial/ -
MYSQL to excel....problem with text areas and paragraphs.
harristweed replied to davidcriniti's topic in PHP Coding Help
not certain but try: if(empty($row[experience])){ $row[experience]=" "; }else{ $row[experience]=str_replace("\r","",$row[experience); }