litebearer
Members-
Posts
2,356 -
Joined
-
Last visited
Everything posted by litebearer
-
You need to modify your table. the fields that contain values that are in reality numbers should NOT be varchar
-
keyword: pagination?
-
Perhaps these may help... crop an image - http://www.nstoia.com/sat/crop/ resize an image - http://www.nstoia.com/sat/resize/ add a drop shadow - http://www.nstoia.com/sat/dropShadow/
-
$query = "Update grocery_cart SET order_size='$box_selection', pp_check='$agree', payment='$payment' WHERE userid='$user'"; /* put query into a variable */ echo $query; /* testing the query */
-
Also, for debugging purposes, it helps if you place your queries in a variable. You then can echo the variable to ascertain it contains what you expect.
-
try... <?php $question = $_POST['fname']; if ($question=="Bob Jones") { $answer = "admin"; }else{ $answer = "nobody"; } echo $question . ", " . $answer; ?>
-
how to split results into page 1,2,3 etc...
litebearer replied to andy_b_1502's topic in PHP Coding Help
if the above code is the complete code for that test script, where did you define $limit? -
http://www.tizag.com/mysqlTutorial/mysqlcount.php
-
Neverbegosu, that quote is simply part of his signature. It appears on EVERY post he makes. It is NOT intended for you personally.
-
Some psuedo code... $num = date('d'); if($num&1) { $odd = TRUE; } else { $odd = FALSE; } switch $count case: 2 if $odd display div 1 image 2 display div 2 image 1 else display div1 image 1 display div2 image 2 } case: 1 display div1 image 1 }
-
Rough concept div 1 if day value is even display image 1 else display image1 div 2 if day value is odd display image 2 else display image 1
-
Presuming each image is in a separate row... $q = "SELECT image_name FROM images WHERE image_type = 'ad' AND user = '$id'"; $r = mysqli_query( $dbc, $q ); while ( $row = mysqli_fetch_array( $r, MYSQLI_ASSOC)) { $imageName[] = $row['image_name']; } $count = count($imageName); if($count>0) { ?> <div class="add1"><?php echo $imageName[0]; ?></div> <?php } if($count>1) { ?> <div class="add2"><?php echo $imageName[1]; ?></div> <?php }
-
Quote from: http://www.directadmin.com/forum/showthread.php?t=43819&p=223089 ================== Aaron_E Aaron_E is offline Registered User Join Date Jun 2012 Posts 1 Mirrors are still up, just like the php git repo. http://nl.php.net/ http://git.php.net/?p=php-src.git;a=summary ==================
-
why??? perhaps... $dest = "./images/album_thumb/"; while the actual folder that works is... "/images/photo_thumbs" Obviously NOT the same folder
-
try changing this... $dest = "./images/album_thumb/"; to this... $dest = "/images/album_thumb/";
-
Simple test (tell us what happens)... $src = ($target.$name.".jpg"); echo $src; ?> <img src="<?php echo $src; ?>"> <?php
-
the type you are using is fine. the real question is, how do you want the value displayed on the web page?
-
http://davidwalsh.name/return-random-records-mysql
-
show us the code where are you creating the $result[] array
-
Not Entering DB - Any Error Reporting I Can Try?
litebearer replied to tombob10's topic in PHP Coding Help
Perhaps my eyes are bleary, but where are you connecting to the database? -
Having trouble pulling data from MySql db using PHP table.
litebearer replied to FoxRocks's topic in PHP Coding Help
It will display however many rows you have in your db. -
Having trouble pulling data from MySql db using PHP table.
litebearer replied to FoxRocks's topic in PHP Coding Help
rough way to list them all... $query = "SELECT `Schedule`, `EMMA`, `Aircraft` FROM `Aircraft_Daily_Status` "; $result = mysql_query($query); echo "<table>"; while($row = mysql_fetch_array($result)) { ?> <tr><td><?php echo $row['Aircraft']; ?></td><td id="cell2display"><?php echo $row['Schedule']; ?></td><td id="cell3display"><?php echo $row['EMMA']; ?></td></tr> <?php } echo "</table>"; -
How do I export excel spreadsheet using php?
litebearer replied to alvin567's topic in PHP Coding Help
http://phpexcel.codeplex.com/