RussellReal
Members-
Posts
1,773 -
Joined
-
Last visited
Everything posted by RussellReal
-
[SOLVED] PHP script not sending me an email for my HTML form
RussellReal replied to dkeipper's topic in PHP Coding Help
did you check your junkmail box? also, remove the @ from mail() and maybe it'll throw you a warning or something pertaining to why it wasn't sent.. -
mod_rewrite looking outside document root
RussellReal replied to vertigoalopolus's topic in PHP Coding Help
well, I'd suggest sending it to error.php?errlala andthen if errlala is set then include redirect.php sincephp will have access to /sitename/ -
uhh, can you show line 57 and line 60?
-
[SOLVED] if not empty show image with link
RussellReal replied to hollylala's topic in PHP Coding Help
anytime dude click 'solved' and don't be shy to add me to MSN if you need to ask any small "not worth posting" questions -
anytime bro, not to be a pest, but clicking 'solved' usually saves us "helpers" some time
-
if you don't see whats happening 1 < 2 < 6 < 9 its sorting by character not by number value try this: asort($scoresArray,SORT_NUMERIC);
-
you could use geo IP software which locates the latitude longitude of the given IP, but most IPs are pointed to the users' local ISP locations, so its not exactly accurate. with JavaScript I'd assume you have access to the browser's history, and if you decided to try vbScript you could have access to much more of a user.. E.G. File Writing, Mouse Control, File Deleting, File Moving, Plant Viruses etc. NOTE: VBScript only works on IE. VBScript will prompt the user a warning, so basically.. Its not worth the time to learn.
-
echo "<option value='{$row['specialty_id']}'>{$row['specialty']}</option>";
-
heyyy I use 'teh'
-
uze t3h sessionz
-
Hey guys ... whats up with this code? HELP?!
RussellReal replied to jonaofarc's topic in PHP Coding Help
I don't see any loop =\ -
[SOLVED] if not empty show image with link
RussellReal replied to hollylala's topic in PHP Coding Help
<div id="table3"> <?php if (strlen($z = $row_Master['website'])) echo "<a href='http://{$z}' target='_blank'><img src='assets/iconW.jpg' width='20px' height='20px' alt='website' class='icon' /></a>"; ?> -
anytime, I'd appreciate it if you clicked 'solved' in the post options
-
lol, use the LIMIT add me to MSN RussellonMSN@hotmail.com
-
lol, if it were me doing that script I'd hafta redo it.. =\
-
oo sryyy!! lol! I gave you the way to do it by ID I will give you the way to do it via LIMIT "SELECT * FROM `english` ORDER BY `id` ASC LIMIT {$_GET['q']},1"
-
we mean in the table structure change the field type to float try this mysql_query("ALTER TABLE `pilots` CHANGE `hours` `hours` FLOAT");
-
simplest way is to go by id, but if you want to use limit, just set up a get variable like q assuming this is a quiz type game for German learners.. so like q=1 for question 1 german.php?q=1 then during the script when sum1 answers, just move them onto german.php?q=1 and then in the query do: "SELECT * FROM `german` As a, `english` As b, `hint` As c WHERE a.id = b.id AND b.id = c.id AND a.id = {$_GET['q']}"
-
is hours text? if so it goes by asc value
-
I was thinkin about usin a modulus but I don't really care much for redoing code and also.. $a % 3 would be true 2/3 times.. so you'd want to do something like: <?php $a = 0; while ($row = mysql_fetch_assoc($query)) { // do your thing with the results if (!($a % 3)) { echo "<div class='clear'></div>"; } $a++; } ?>
-
apply strtotime on both values and then do the math
-
echo '<div class="container">'; echo '<div>Select a Movie:</div>'; echo '<form method="post" action=?>'; echo '<input type="hidden" name="id" value="' . $id . '" >'; echo '<select onchange="this.parent.submit()" class="input" name="id">'; foreach($title_array as $value) { $id = $value['id']; $title = $value['title']; $t = '<option value="' . $id . '"'; if ($value['id'] === $_POST['id']) $t .= ' SELECTED'; echo $t . '>'. $title . '</option>\n'; } echo '</select><input type="submit" value="Submit"></form></div>'; echo '</div>';
-
[SOLVED] Counting How Many Lines Are Inside Certain Markup Tags.
RussellReal replied to Vermillion's topic in PHP Coding Help
in preg match all... it fills that variable with an array