389 Posted Topics

Member Avatar for 21122012

<?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 …

Member Avatar for cigoL..:)
0
212
Member Avatar for zodehala
Member Avatar for vijayram

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

Member Avatar for pritaeas
0
227
Member Avatar for zrony

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 …

Member Avatar for pzuurveen
0
84
Member Avatar for ebanbury

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]

Member Avatar for ebanbury
0
264
Member Avatar for gandrap
Member Avatar for anthonyjpv

you need the image file name do [CODE]print_r($row);[/CODE] to find out what $row[x] you need

Member Avatar for pzuurveen
0
108
Member Avatar for PF2G

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]

Member Avatar for pzuurveen
0
121
Member Avatar for vijayram

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]

Member Avatar for pzuurveen
0
56
Member Avatar for Joe34

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

Member Avatar for pritaeas
0
2K
Member Avatar for trivikrama

what do you have sofar (code) and what is exacty the the part you have a problem with?

Member Avatar for trivikrama
0
273
Member Avatar for HasNor

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]

Member Avatar for Atli
0
365
Member Avatar for Sam367

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]

Member Avatar for jorik
0
75
Member Avatar for morrisproject

he means:When you edit your response press the the [CODE ] ontop of the editbox [CODE] // result looks like this [/CODE]

Member Avatar for morrisproject
0
315
Member Avatar for polinolin

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]

Member Avatar for coolest_987
0
90
Member Avatar for masterjiraya

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?

Member Avatar for masterjiraya
0
289
Member Avatar for cambraydesign

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)

Member Avatar for cambraydesign
0
239
Member Avatar for degroundshaker

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

Member Avatar for pzuurveen
0
332
Member Avatar for aldm

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

Member Avatar for pzuurveen
0
401
Member Avatar for klemme

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

Member Avatar for klemme
0
2K
Member Avatar for PF2G

where do you output this variable? You just declare it [CODE] $error[] = "Preencha o campo 'Username'.";[/CODE]

Member Avatar for pzuurveen
0
155
Member Avatar for jdgieschen

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] …

Member Avatar for pzuurveen
0
1K
Member Avatar for concrete

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 &nbsp; &nbsp; &nbsp; &nbsp; <input type='text' name='exam_mark' size='3' value="<?php print $line['english_exam1_mark'];?>"><br><br> [/CODE]

Member Avatar for diafol
0
86
Member Avatar for issaru07

[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]

Member Avatar for pzuurveen
0
284
Member Avatar for Arjun_Sarankulu

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

Member Avatar for pzuurveen
0
92
Member Avatar for polinolin

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]

Member Avatar for pzuurveen
0
66
Member Avatar for jdgieschen

echo your query think gona look like [CODE] .... AND POPU_AREA_SCH>=11 && <=13 ORDER BY UNITID [/CODE] this is not valid sql

Member Avatar for jdgieschen
0
272
Member Avatar for vibhas

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]

Member Avatar for pzuurveen
0
153
Member Avatar for jacob21

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'

Member Avatar for wetube
0
1K
Member Avatar for RazorRamon

take alook at [URL="http://nl3.php.net/manual/en/reserved.variables.server.php"]$_SERVER['REMOTE_ADDR'][/URL]

Member Avatar for pzuurveen
0
315
Member Avatar for OsaMasw
Member Avatar for dinhunzvi

your <input> tages needc to bee inside you <form> tag [CODE] <form action="editbrand.php" method="post"> <input /> </form> [/CODE]

Member Avatar for pzuurveen
0
296
Member Avatar for tahirkhanafridi

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]

Member Avatar for pzuurveen
0
170
Member Avatar for angelclawdust

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]

Member Avatar for angelclawdust
0
128
Member Avatar for PF2G
Member Avatar for justzamir
Member Avatar for .:n'tQ-boy:.
Member Avatar for deecoup

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

Member Avatar for deecoup
0
226
Member Avatar for breakforce

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]

Member Avatar for diafol
0
342
Member Avatar for concrete

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 …

Member Avatar for simplypixie
0
164
Member Avatar for vijayram

where are the use_javascript() and slot() fuctions definded or the $sf_user object looks like your missing an include file (or 2)

Member Avatar for diafol
0
100
Member Avatar for sidra 100
Member Avatar for baruchM
0
92
Member Avatar for 4cpukid

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 …

Member Avatar for forkmartin
0
192
Member Avatar for oksam

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)

Member Avatar for oksam
0
303
Member Avatar for emannoor455
Member Avatar for huntaz556
Member Avatar for showman13

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]

Member Avatar for showman13
0
250
Member Avatar for sidra 100

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]

Member Avatar for pzuurveen
0
125
Member Avatar for asisani123

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]

Member Avatar for pzuurveen
0
185
Member Avatar for issaru07

The End.