itsmeArry
Members-
Posts
161 -
Joined
-
Last visited
Never
Everything posted by itsmeArry
-
instead of this action="<? $_SERVER['PHP_SELF'];?> ?$var1=$var2&$var3=$_SESSION[$var3]"> use this <?php $action = $_SERVER['PHP_SELF']."?".$var1=$var2."&".$var3."=".$_SESSION[$var3]; action="<?php echo $action?>"
-
Elseif statements - am i using the right one
itsmeArry replied to Richzilla's topic in PHP Coding Help
then instead of this $tlist="tracklist.php?"; use this $tlist="tracklist.php?id="; then url wull be like... tracklist.php?id=1 now you can get the value of id from url as $id = ''; if(isset($_GET['id'])) $id = $_GET['id']; -
its a 2-d array
-
Elseif statements - am i using the right one
itsmeArry replied to Richzilla's topic in PHP Coding Help
was it solved.... -
$arrfileName = explode(".", $tmp_filename); $srtExt = $arrfileName[1]; now you can use the $strExt where you want...
-
what was that for mbtaylor
-
sorry to correct you but it should be the result in place of query...
-
Elseif statements - am i using the right one
itsmeArry replied to Richzilla's topic in PHP Coding Help
Sorry ignore the previous peply use this <?php $tlist="tracklist.php?"; // a semocolon was missing ?> <td class="trk_list_main" width="15%"> <?php if ($tracklist != "") echo "<a href='$tlist$id'>Tracklist </a><br> </td> </tr>"; // some parse error were there... ?> -
Elseif statements - am i using the right one
itsmeArry replied to Richzilla's topic in PHP Coding Help
$tlist="tracklist.php?" <td class="trk_list_main" width="15%"> <? if ($tracklist != "") echo "<a href=\ $tlist.$id \">"Tracklist <br> </td> </tr>"; use this:: <?php $tlist="tracklist.php?"; // a semocolon was missing ?> <td class="trk_list_main" width="15%"> <?php if ($tracklist != "") echo "<a href='$tlist.$id'>Tracklist </a><br> </td> </tr>"; // some parse error were there... ?> -
this is not correct $s = $sub." "."by"." ".$name; use this... $s = $sub." by ".$name;
-
you need to check the connection with the database whether its getting connected to the database or not...
-
try using echo $tsql; this will give you the query tocheck if the query that is being executed is correct or not... mysql_num_rows($result); this will give you an idea whether its fetching any data or not..
-
function byttpass($password) you are passing the password here ahere are you setting the $id I think $id is not having any value try echo the query for update you will get an idea.
-
make sure that you have some value for default language in "sconfig" table and also have a look at the field of default language in the table is it "svalue" if not then cnange the code here $sql="select * from sconfig where soption='language'"; $rs=$conn->execute($sql); $default=$rs->fields[svalue to $sql="select * from sconfig where soption='language'"; $rs=$conn->execute($sql); $default=$rs->fields["[b]field name in table sconfig for default language[/b]"]; change what I have highlighted. you didn't get the error once you chose Japneese bcz.. it set in session $_SESSION['lang'];
-
some modification hre... $description_fopen = fopen($dl_desk_dafile, "x") or exit("A Very Unusual Error Has Occurred. Congratulation!"); echo fwrite($dl_desk_dafile, $dl_description_template); fclose ($dl_desk_dafile); use this:: $description_fopen = fopen($dl_desk_dafile, "w") or exit("A Very Unusual Error Has Occurred. Congratulation!"); echo fwrite($description_fopen, $dl_description_template); fclose ($dl_desk_dafile);
-
<?php $variable = "abc"; ?> <input type=text value="<?php echo $variable?>">
-
Elseif statements - am i using the right one
itsmeArry replied to Richzilla's topic in PHP Coding Help
if ($download2 != "") echo "<a href=\"$download2\">part 2</a>"; -
Elseif statements - am i using the right one
itsmeArry replied to Richzilla's topic in PHP Coding Help
still you haven't removed the ";" from if statement... if ($download2==""); change this to if ($download2=="") -
Elseif statements - am i using the right one
itsmeArry replied to Richzilla's topic in PHP Coding Help
can u post the code and the line no where you are getting this error... -
Elseif statements - am i using the right one
itsmeArry replied to Richzilla's topic in PHP Coding Help
here lies the proble th ";" with if and else statement if ($download2==""); break; else; chande it to if ($download2=="") break; else -
here is the error $Sensor_Char_list("!", "@", "#", '$", "%", "^", "&", "*"); replace it with $Sensor_Char_list("!", "@", "#", "$", "%", "^", "&", "*");
-
U are always welcome... and please do mark it as SOLVED
-
Look wht you have here $result=mysql_query($query) or die('Query failed: ' . mysql_error()); echo $result; if ($result == $_REQUEST['password']) { echo "Welcome"; } else { echo "\nInvalid Password"; } usde this:: $result=mysql_query($query) or die('Query failed: ' . mysql_error()); while($row = mysql_fetch_array($result)) if ($row['password'] == $_REQUEST['password']) { echo "Welcome"; } else { echo "\nInvalid Password"; }
-
Ok... leave the previous one... use this code it works fine $newDate = strtotime("+7 day", time()); $newDate = date("d/m/Y H:i:s", $newDate);