389 Posted Topics
Re: <?php require_once('../../config/conn.php'); $roomID=$_GET['roomID']; $sql="SELECT * FROM roomBooking where roomID = '$roomID'"; $room_query_result=mysql_query($sql,$conn); $row_rs = mysql_fetch_assoc($room_query_result); $count=mysql_num_rows($room_query_result); ?> ... <form method="post" action="del_room.php"> <table border="1"> <?php do { ?> <tr> <td> <?php printf('<input type="checkbox" name="roomID[]" value="%s" />', $row_rs['roomID']); .... ?> The error say there is no `$row_rs['roomID']` (last line) this can be … | |
Re: I'm unfamiliar with the php-function use_javascript('') is it part of some libery? I don't see an include or require also plaece use the code-tacs when posting code. also indent (TAB) your functions, loops and conditions | |
Re: Not sure what you want. But if to prepopulate a form file upload some thing like [CODE]<input type="file" name="foto" />[/CODE] you can't!! It's a safety feature. Else you would be able to download any file from the users computer them knowing If that wasn't your queston please explean it better … | |
Re: I sometimes have used 2 config-files [CODE] if ($_SERVER['SERVER_ADDR'] == 'ip localhost here') { // testing require_once('testconfig.php'); error_reporting(E_ALL); } else { // productie locatie require_once('dbconfig.php'); error_reporting(0); } [/CODE] | |
Re: post what your code you have sofar and we go from there | |
Re: you need the image file name do [CODE]print_r($row);[/CODE] to find out what $row[x] you need | |
Re: also for the link to work remove the space between cod= and <?php [CODE] <a href="prog_curso.php?cod=<?PHP echo $row['cod_curso']; ?> "> [/CODE] | |
Re: javascript has events take a look at: [URL="http://www.w3schools.com/jsref/event_body_onload.asp"]http://www.w3schools.com/jsref/event_body_onload.asp[/URL] | |
Re: I argee, a recursive function but to get them all start with just O than ad A, D or G before OR after send each result through the same function BIG problem: you need a stop condition or it will run indefinitely | |
Re: what do you have sofar (code) and what is exacty the the part you have a problem with? | |
Re: the result of your form will be in $_POST[ ] [CODE] if(isset($_POST['one'])) $val='one;'; else $val=NULL; if(isset($_POST['two'])) $val.='two;'; if(isset($_POST['tree'])) $val.='tree;'; [/CODE] you now have a string $val : one;three; just put it into your database [CODE] if(!empty($val)){ $sql="INSERT INTO `request` (detail) values('$val')"; mysql_query($sql)or die(mysql_error()); } [/CODE] | |
Re: are you looking for <table >? you can alway got to that site and press rightmouse button than select: view source beter: install a tool like [URL="https://addons.mozilla.org/nl/firefox/addon/firebug/"]firebug[/URL] ![]() | |
Re: he means:When you edit your response press the the [CODE ] ontop of the editbox [CODE] // result looks like this [/CODE] | |
Re: I don't understand what you want to encrypt. The image or just its URL? anyway take a look at [URL="http://www.php.net/manual/en/function.md5.php"]http://www.php.net/manual/en/function.md5.php[/URL] | |
Re: The same $_SESSION is available to every page in the same domein that calls session_start just set a varible in your seeion to check if a user is allowed in the admin files something like [CODE] session_start(); if (!isset($_SESSION['isAdmin'] || !$_SESSION['isAdmin']) header("Location: http://www.mysite.com/user.php"); [/CODE] or did't I understand your question? | |
Re: am I right that you are looking for a php rss parser? there are alot of them [URL="http://www.webresourcesdepot.com/php-rss-parsers/"]here is a short list[/URL] but there are many more (google) | |
Re: you need to change the access-rights(permissions) of the file this is a unix command [URL="http://ss64.com/bash/chmod.html"]see this[/URL] [CODE] chmod 664 fbadded.php [/CODE] some ftp programs also have the posbilety to do this the 404 is because apache tries to load a error page it can't find | |
Re: i dont know the amazon api but this doesn't look right to me [CODE] 'AssociateTag' => 'YOUR_ASSOC_TAG_HERE', [/CODE] looks like you need to suply a AssociateTag | |
Re: You might want to use the [URL="http://nl2.php.net/manual/en/reserved.variables.server.php"]$_SERVER[/URL] variable for that. it's more flexible incase you need to move it to an other server | |
Re: where do you output this variable? You just declare it [CODE] $error[] = "Preencha o campo 'Username'.";[/CODE] | |
Re: You need a query like [CODE] SELECT * FROM post_sec_all_stats WHERE 1=1 AND DURA_SCH = '1' AND CTRL_SCH = '1' AND (TOTAL_STS < 2000 [B]OR[/B] TOTAL_STS BETWEEN 2000 AND 20000 [B]OR[/B] TOTAL_STS > 20000) ORDER BY UNITID ASC [/CODE] change your input names so that it not a array [CODE] … | |
Re: put your php statments beteen <?php and ?> [CODE] <form action="gradebook3.php" method="post"> <H4>Exam and Coursework Marks and Comments for HTML; <?php print $line['firstname']." ".$line['surname']." (#".$line['upn'].") in set ".$line['english_set']; ?> </h4> <table width="100%" border="0" cellpadding="5"><tr><td class="form_labels"> Exam Mark <input type='text' name='exam_mark' size='3' value="<?php print $line['english_exam1_mark'];?>"><br><br> [/CODE] ![]() | |
Re: [CODE] echo '<img src="site_images/$pic" border=0>';[/CODE] will output <img src="site_images/$pic" border=0> variables between ' ' are not parsed but just printed variables between " " are parsed [CODE] echo '<img src="site_images/'.$pic.'" border=0>';[/CODE] | |
Re: look at [URL="http://www.pageresource.com/jscript/jframe1.htm"]http://www.pageresource.com/jscript/jframe1.htm[/URL] for some exaples of using javascript and frames for more help please post your code | |
Re: Is this what you are looking for? [URL="http://php.net/manual/en/function.crypt.php"]http://php.net/manual/en/function.crypt.php[/URL] | |
Re: echo your query think gona look like [CODE] .... AND POPU_AREA_SCH>=11 && <=13 ORDER BY UNITID [/CODE] this is not valid sql | |
Re: In your ajax request: data is always send as GET despite [CODE]type: "POST"[/CODE] so in pages.php use [CODE] $id=$_GET['ch']; [/CODE] even better if you check if there actual is a value [CODE] if (isset($_GET['ch'])){ $id=$_GET['ch']; } else // default or error message [/CODE] | |
Re: the substring works for me are you sure that $row['j_des'] is a string? or maybe I don't understend 'getting strike in Text' | |
Re: take alook at [URL="http://nl3.php.net/manual/en/reserved.variables.server.php"]$_SERVER['REMOTE_ADDR'][/URL] | |
Re: what are trying to do Hack user profiles from playstation.com? | |
Re: your <input> tages needc to bee inside you <form> tag [CODE] <form action="editbrand.php" method="post"> <input /> </form> [/CODE] | |
Re: You might creat a link like [CODE] echo "<a href='http://www.yoursite.com/playsong.php?songid=".$rows['song_id']."'>" .$rows['song_name'].'</a>';[/CODE] then in playsong.php query your db again for the url [CODE] if (isset($_GET['songid'] ) { $songid=mysql_real_escape_string($_GET['songid']); $query="SELECT song_url FROM songs WHERE song_id=$songid"; ... [/CODE] | |
Re: with a error like this there usaly an error in the myslq query post that part problebly look something like [CODE] $query="SELECT ....FROM ... WHERE ...."; $result=mysql_query($query); [/CODE] | |
Re: you alsso used a backtick ` in stead of a single quote ' | |
Re: please post your code and error measage if any | |
Re: maybe you should look at this [URL="http://codex.wordpress.org/Roles_and_Capabilities"]http://codex.wordpress.org/Roles_and_Capabilities[/URL] if you haven't already | |
Re: maybe somethin like this [CODE] else { for ( $i;$i <30 && $row = mysql_fetch_array($query1); $i++) { echo "<hr class='dash' /><div><b><a href='profile?user=$row[username]'>$row[username]</a></b> <span style='float:right; margin-right: 5px;'><img src='templates/img/icons/online.gif' /></span></div> <hr class='dash' />"; } } echo "Online total: <b>".$broi."</b>"; [/CODE] ![]() | |
Re: if you look at the code-coloring you see that most of your code is one big echo statment strarting on line 87 if you have such a large part of plain HTML it's better to go outof php if you than have to echo a variable just put the stament … | |
Re: where are the use_javascript() and slot() fuctions definded or the $sf_user object looks like your missing an include file (or 2) ![]() | |
Re: for debug just add an echo or print statment before the query | |
Re: something like this? [CODE] //$mobile=$_GET['mobile']; // user want normal site if(isset($_GET['mobile']) AND $_GET['mobile']==="no"){ $_SESSION['mobile']="no"; } // we saved know: normalsite if(isset($_SESSION['mobile']) AND $_SESSION['mobile']==="no"){ complete(); } // we saved know: mobilesite if(isset($_SESSION['mobile']) AND $_SESSION['mobile']==="yes"){ gotoMobile(); } // we don't know so checkMobile(); function checkMobile(){ // MOBILE CODE TAKEN OUT TO SAVE … | |
Re: add before RewriteRule [CODE] RewriteCond %{REQUEST_FILENAME} !login.php$ [/CODE] or to exclude all php [CODE] RewriteCond %{REQUEST_FILENAME} !^(.+)\.php$ [/CODE] found on [URL="http://www.datingking.net/"]http://www.datingking.net/[/URL] (NOT a dating site) | |
Re: show us the code you have so fare | |
Re: Why do you have 2 querys that do the same thing? | |
Re: think you should use the <button > not the <inpute type='image'> see [URL="http://webdesign.about.com/od/htmltags/p/input-image-tag.htm"]http://webdesign.about.com/od/htmltags/p/input-image-tag.htm[/URL] | |
Re: change line 3 to [CODE] print_r($_SESSION); [/CODE] and see... or you can check and fall back to a defalt [CODE] if (isset($_SESSION['product_name']) $name=$_SESSION['product_name']; else $name='Mr X'; [/CODE] | |
Re: I gess that 'register' is the name of your submit button, if so: [CODE] if (isset($_POST['register'])) { $username=$_POST['username']; $password=$_POST['password']; $password2=$_POST['password2']; .... } else { ?> <form action="register.php" method="post"> rest of your form here <input type="submit" name="register" value="register" /> </form> <?php } ?> [/CODE] | |
The End.