Search Results

Showing results 1 to 40 of 92
Search took 0.02 seconds.
Search: Posts Made By: almostbob ; Forum: PHP and child forums
Forum: PHP 2 Days Ago
Replies: 6
Views: 160
Posted By almostbob
If you want to do it that way(a tidy, browser independent, way to do it ) $url = $_SERVER['PHP_SELF'];
Forum: PHP 2 Days Ago
Replies: 6
Views: 160
Posted By almostbob
dunno, but style the input.submit
input.submit {background:none;border:0;color:#ff0000; }<input type='submit' style="background:none;border:0;color:#ff0000;" value='something'>(untested)
Forum: PHP Oct 21st, 2009
Replies: 4
Solved: Select distinct
Views: 256
Posted By almostbob
limit =1 ? if you only want one pic
or if pictures in albums are number, select only number 1 in each album
hard to code without knowing the data structure
Forum: PHP Oct 14th, 2009
Replies: 4
Solved: Query Help
Views: 204
Posted By almostbob
<?php
/* connect select db etc */
$flat=("SELECT C.Latitude, C.Longitude FROM Cities C JOIN Countries Co ON Co.CountryId = C.CountryId JOIN Regions R ON R.RegionId = C.RegionId WHERE C.City =...
Forum: PHP Oct 3rd, 2009
Replies: 32
Views: 1,025
Posted By almostbob
so the end result is an enhaced tooltip,
specific to the region/anchor/link that is clicked

this code sample creates a layer, that embeds in any page to provide tooltips without any external file...
Forum: PHP Oct 3rd, 2009
Replies: 32
Views: 1,025
Posted By almostbob
why javascript
javascript is blocked on a large proportion of the potential market
passing as a url, the page is being reloaded
best practice; prepare the page serverside, then you can be sure its...
Forum: PHP Oct 2nd, 2009
Replies: 32
Views: 1,025
Posted By almostbob
<?php
if (!$text) {die('No text selected');}
elseif($text='this') {echo '<div class="topbar">anything you like, once php has processed it its just html goes here</div>'; }
elseif($text='that')...
Forum: PHP Oct 2nd, 2009
Replies: 32
Views: 1,025
Posted By almostbob
using :: file.php?text=this as example

if else<?php
if (!$text) {die('No text selected');}
elseif($text='this') {echo '<div class="topbar">This Text goes here</div>'; }
elseif($text='that')...
Forum: PHP Sep 28th, 2009
Replies: 15
Views: 452
Posted By almostbob
Just replace the $_SESSION['color'] variable in the posts above, with your variabl
<input bla bla <?php if($variable='red') { echo "checked"; }} ?> >
Forum: PHP Sep 28th, 2009
Replies: 15
Views: 452
Posted By almostbob
it can, but sessions are actually easier

returning the value from a sql query the results can be directly assigned to a variable, instead of through the session array,
the session means the...
Forum: PHP Sep 28th, 2009
Replies: 15
Views: 452
Posted By almostbob
html
with clickable label<input type="radio" name="color" id='red' value="Red" <?php if ($_SESSION['color'] == 'Red') {echo 'checked';}?>><label for='red'> Red</label><br>
<input type="radio"...
Forum: PHP Sep 25th, 2009
Replies: 8
Solved: Recommendations
Views: 287
Posted By almostbob
Unlimited? bandwidth diskspace,
unlimited is syonymic for infinite,
not really possible but in
scaleable hosting
second vote for rackspace

on price try theplanet
Forum: PHP Sep 24th, 2009
Replies: 2
Views: 260
Posted By almostbob
<?php
$dropdown_data = explode(",", $row_rsAppare['Item_Dark_Colors']);
echo '<select name="DarkColor" id ="DarkColor>';
echo '<option selected="selected" value="">Choose Color</option>';...
Forum: PHP Sep 18th, 2009
Replies: 6
Views: 797
Posted By almostbob
without even a database, used this code when analysing small sites

stats.php<?php //stats.php
// Get the user stats.
$getdate = date( 'd-m-Y, H:i:s' );// Get the date time, trhis is a human...
Forum: PHP Sep 17th, 2009
Replies: 5
Views: 296
Posted By almostbob
I think I understand
the target attribute of a link should do it
consider a frameset with left and right panes
the left pane includes the menu
the right frame is the display page

index htmldtd...
Forum: PHP Sep 14th, 2009
Replies: 21
Views: 583
Posted By almostbob
you are trying to run php from the local file system /C:/Documents and Settings/rEd_xiii21/Desktop/programming/ERDI Website Final/Duplicate of Edited Site/
that wont work, even if it is the same...
Forum: PHP Sep 14th, 2009
Replies: 21
Views: 583
Posted By almostbob
this is a better line16if(!mail('me@mysite.com',"Inquiry","$message","From: $email " . "\r\n" . "Cc: $email"."\r\n")) {echo "Sending failed,"; } else { echo "Message sent."; }
Forum: PHP Sep 14th, 2009
Replies: 21
Views: 583
Posted By almostbob
php forms can be self processing, its easy to debug one script, try<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html...
Forum: PHP Sep 13th, 2009
Replies: 3
Views: 303
Posted By almostbob
doing it yourself is in the too hard basket
WAMP (windows apache mysql php) will install it all as a package that works together. http://www.soft-go.com/view/WAMP5_20010.html
Forum: PHP Sep 9th, 2009
Replies: 4
Views: 522
Posted By almostbob
Agree with Xan's code fix


embedding php inside html, it is important to get all the quotes in.
only add a usefula(maybe) caveat to the code he provided, a recommendation to change whatever...
Forum: PHP Sep 4th, 2009
Replies: 7
Views: 434
Posted By almostbob
There is an add in library for this function,
not sure how good it is,
http://phplens.com/phpeverywhere/node/view/16
Forum: PHP Aug 28th, 2009
Replies: 8
Views: 317
Posted By almostbob
<a href='download.php?$filename=whilemyguitar.mp3'>the beatles-while my guitar gently weeps</a>
<?php /* download.php */
if(!session_id) { $hiddenfile="../absolutepath/polkamusic.mp3"; } // evil...
Forum: PHP Aug 27th, 2009
Replies: 8
Views: 317
Posted By almostbob
using php the user neve sees the url of the file
and without a logged in session nothing
<?php /* download.php */
if(!session_id) { die ('only registered users'); } // better session validation...
Forum: PHP Aug 26th, 2009
Replies: 2
Views: 332
Posted By almostbob
http://www.dynamicdrive.com/dynamicindex9/addbook.htm

http://webscripts.softpedia.com/script/Bookmark-Management/Bookmark-Us-Script-44000.html
...
Forum: PHP Aug 26th, 2009
Replies: 4
Views: 520
Posted By almostbob
the student table does not need the text course names
the reporting logic can print the text names if necessary from the course table

student (studentNum,firstName,lastName,),
course (courseID,...
Forum: PHP Aug 25th, 2009
Replies: 3
Views: 263
Posted By almostbob
the php string to time function strtotime() allows this <?php echo date('l dS \o\f F Y h:i:s A', strtotime('+7 day')); ?> format the date() how you need,

storing the timestamp in the db is more...
Forum: PHP Aug 19th, 2009
Replies: 3
Views: 324
Posted By almostbob
as noelthefish wrote, the elseif is redundant and takes (miniscule) resources to run, the ! means not,
If (not$variable) {do something;}
else {do something else}
Forum: PHP Aug 13th, 2009
Replies: 5
Views: 417
Posted By almostbob
if ($checkbox) {
$file = 'downloads/Tutorial1.wmv.zip';
// Set headers
header("Cache-Control: public ;");
header("Content-Description: File Transfer");
header("Content-Disposition: attachment;...
Forum: PHP Aug 13th, 2009
Replies: 4
Views: 269
Posted By almostbob
if the file is stored in a blob in the database, print the database field
if the filename only is stored in the database, without the directory structure
readfile('./pathtofolder/'.$file); //or...
Forum: PHP Aug 10th, 2009
Replies: 7
Views: 869
Posted By almostbob
http://dev.mysql.com/doc/refman/5.1/en/replace.html

the primary key ID is not referenced by the replace statement, the replace wont work as you intend, it becomes an insert statemen
Forum: PHP Aug 8th, 2009
Replies: 14
Views: 742
Posted By almostbob
dont use category names in the posted urls http://bla.com/?1=something&2=somethingelse
$category = $_GET['cat'];
$subcategory = $_GET['subcat'];
if iset($1) { $category=$1; }
if($category=="") {...
Forum: PHP Jul 20th, 2009
Replies: 9
Views: 730
Posted By almostbob
savefile.php<?php
if(!$file) return false;
elseif(!$content) return false;
else { header("Content-disposition: attachment; filename=$file");
header('Content-type: $content');
readfile("$file");...
Forum: PHP Jun 24th, 2009
Replies: 11
Views: 594
Posted By almostbob
my google query, was 'include thread teaser in title attribute'
theres a bunch of em

My simplest answer is to download a copy of vbulletin and read the code.
not knowing the data structure, just...
Forum: PHP Jun 24th, 2009
Replies: 11
Views: 594
Posted By almostbob
The link is created from an sql database, the database query creates the title attribute in the link as the first 'xx' characters of the Original post in the thread
without any idea of the database...
Forum: PHP Jun 23rd, 2009
Replies: 8
Views: 708
Posted By almostbob
Thankyou Cwarn23, straightens the kinks a little
Rob

only a little

Ancora Imparo
Forum: PHP Jun 22nd, 2009
Replies: 8
Views: 708
Posted By almostbob
php returns static html pages
nothing else is seen on the user browser, unless part of the html is a javascript, then the javascript is dynamic (from the user perspective)
Trying to get my head...
Forum: PHP Jun 22nd, 2009
Replies: 8
Views: 708
Posted By almostbob
Just one
you seem to misunderstand what you are doing
the site will no longer function.
processing of the order
inventory control etc
must react to user input so cannot be static html.
Forum: PHP Jun 18th, 2009
Replies: 4
Views: 452
Posted By almostbob
winzip
freezip
easyzip

or any other of the zip/ra/gzip/tar creation utilities
to compress for distribution is done locally on your development machine not on your server, although the files are...
Forum: PHP Jun 9th, 2009
Replies: 7
Views: 1,392
Posted By almostbob
.xls is proprietary and contains more than just the data, not sure if your functions are accurate, but they appear to match what I have seen before

excel can read/write .csv comma separated values...
Forum: PHP Jun 9th, 2009
Replies: 7
Views: 1,392
Posted By almostbob
excel file format is proprietary,
excel can read/write .csv comma separated values
php can read/write .csv comma separated values

a bunch of tutorials on creating the button to do so...
Showing results 1 to 40 of 92

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC