389 Posted Topics

Member Avatar for prasanna123

you have several problems with your code 1 in HTML: <head> goos before <body> 2 the <head> tag does not have a script atrbute [CODE] <head> <script type="javascript/text">[/CODE] 3 don't close the javascipt tag to insert php [CODE] var id1=document.getElementById(<?php print $id ?>);[/CODE] 4 ... well fix 1b to 3 …

Member Avatar for prasanna123
0
168
Member Avatar for algeriano

you got an error in your query that's why mysql_query retuns FALSE and not a MySQL result resource. [CODE]$sql = " SELECT * FROM pqdb_articles, pqdb_categories WHERE article_id = " . mysql_real_escape_string($article_id) . " $query_ext AND category_id = article_cat ";[/CODE] what is $query_ext ?

Member Avatar for algeriano
0
326
Member Avatar for borgyborg

do something like [CODE] $NameArray=$_POST['name']; foreach($NameArray as $Employee_Name) { [/CODE]

Member Avatar for borgyborg
0
129
Member Avatar for issaru07

That's because $delete doesn't exist. but you got bigger problems: you cant just use <input > , it must be inside a <form > [URL="http://www.w3schools.com/tags/tag_form.asp"]http://www.w3schools.com/tags/tag_form.asp[/URL] to link back to you script [CODE] <form action="<?php echo($_SERVER['PHP_SELF']); ?>" method="get"> [/CODE] your form values will be in $_GET change your if to [CODE] …

Member Avatar for issaru07
0
351
Member Avatar for sparkles_links

You had an exstra ) on line 3 long live 'TAB' [CODE]<?php $res = mysql_query("SELECT * FROM users WHERE username = '$user' LIMIT 1"); if(mysql_num_rows($res)>0) { $d = mysql_fetch_array($res); if($pass == $d['password']) { session_regenerate_id(); //security for changing permissions $_SESSION['user_id'] = $d['user_id']; $_SESSION['usertype_id'] = $d['usertype_id']; switch($d['usertype_id']) { case 1: $loc = …

Member Avatar for pritaeas
0
120
Member Avatar for edz_berlin

you have your <input > inside a link this can be a problem see: [URL="http://www.quirksmode.org/js/events_order.html"]http://www.quirksmode.org/js/events_order.html[/URL] also if this.form.submit() fails you still go to the next page but without the form being send so remove the link.

Member Avatar for pzuurveen
0
593
Member Avatar for atikah8890

you will not get back a $_POST['form1'] you can see thi if you do a var_dump($ _POST); so [CODE]if(!isset($_POST['form1'])){ dropdown_empty();[/CODE] will not work. use [CODE] if (is_set($_POST['select']) $month = $_POST['select']; else dropdown_empty(); [/CODE] even better [CODE] if (is_set($_POST['select'] && !empty($_POST['select'])) $month = $_POST['select']; else dropdown_empty(); [/CODE] as it also checks …

Member Avatar for atikah8890
0
106
Member Avatar for BlinkOnly

[CODE]$('#response').load('createtable.php'); [/CODE] this go's wrong if creatatble.php contains things like <html>, <title>, or <head> for creatatble.php use cereals code and noting else.

Member Avatar for BlinkOnly
0
129
Member Avatar for PF2G

Gess nthat you get a 'header already send' error That because headers have to be sende before any output and that includes javascript [CODE]if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } else header('Location: http://www.example.com/index.php'); [/CODE] Put the alert in the index.php (or use something better then an alert box)

Member Avatar for pzuurveen
0
960
Member Avatar for BleepyE

You can do some thing like that in mysql [CODE] SELECT count(), date(rowname,'unixepoch') as datum FROM tablename WHERE 1 GROUP BY datum [/CODE]

Member Avatar for cereal
0
137
Member Avatar for Danny159

make effery month 31 day's and than use [URL="http://www.php.net/manual/en/function.checkdate.php"]checkdate[/URL] on it

Member Avatar for pzuurveen
0
166
Member Avatar for raf.fredi

trie [CODE] <div class="button_outside" id="share" onclick="javascript: document.forms["myform"].submit();"> <div class="button_inside">Share</div> </div> [/CODE]

Member Avatar for diafol
0
2K
Member Avatar for london-G

you are still not using backticks as ardav told you to ` is diverend than ' ` is on the same key as the ~ ( atleast on my keyboard) or you can copy and past ardav code

Member Avatar for london-G
0
999
Member Avatar for shielaolid

try [CODE] var_dump($_POST); [/CODE] if they don't show up you got a problem with your form page

Member Avatar for shielaolid
0
90
Member Avatar for Loveleen Kaur

take the declaration of the table outside of the while loop and use javascript to add new rows: see [URL="http://www.mredkj.com/tutorials/tableaddrow.html"]http://www.mredkj.com/tutorials/tableaddrow.html[/URL]

Member Avatar for pzuurveen
0
216
Member Avatar for fnyahoo
Member Avatar for jacob21

is this what you mean? [CODE] <script type="text/javascript"> showmore() { document.getElementById('more').style.display=""; } </script> <div id="standard"> dropdownlist texbox etc <button name='more' onclick="showmore()"/> </div> <div id="more" style="display:none"> more stuff here </div> [/CODE]

Member Avatar for pzuurveen
0
119
Member Avatar for jacob21

checked is simular as disabled so use [CODE]<td> <input name="power" type="checkbox" disabled="disabled" <?php if($row['power_backup']=='on') echo 'checked="checked"'; ?> /> </td>[/CODE]

Member Avatar for pzuurveen
0
103
Member Avatar for rohit.k2903

just a thought: do you have a 'headers already send' error with you error messages turned off? test by using by using a echo-statement at the start of your script

Member Avatar for pzuurveen
0
278
Member Avatar for ajbest

i think it is: [CODE]mysql_query("SELECT a, b, (a+b) AS c FROM table HAVING c=1");[/CODE]

Member Avatar for pzuurveen
0
189
Member Avatar for 54uydf

check out [URL="http://www.php.net/manual/en/function.htmlentities.php"]htmlentities[/URL]

Member Avatar for 54uydf
0
136
Member Avatar for davy_yg
Member Avatar for davy_yg
Member Avatar for zulfistyle

If you can't send a picture inside the message as html. You can only send it's URL make sure the recverer does't get something like c:\local_user\my pictures\foto.jpg

Member Avatar for pzuurveen
0
128
Member Avatar for pinkygirl

does your script run in your rootdir: mywebsite or in a subdir : mywebsite/phpfiles/

Member Avatar for pinkygirl
0
122
Member Avatar for kaizokupuffball

Where do $message_id and $username get there value ? if not in db_connect.php then they don't exist

Member Avatar for karthik_ppts
0
491
Member Avatar for fradiavolo

$cnt is set inside an if-statment: [CODE]if (isset($_GET['actiune']) && ($_GET['actiune'] == "adauga")) {[/CODE] so if this is false $cnt don't exist

Member Avatar for fradiavolo
0
192
Member Avatar for mownam

use [CODE] $query="Select UserId, UserName, Password FROM user_login Where UserName= '".$_POST['username']."' and Password= '".$_POST['password']."'"; echo $query; $sql=mysql_query($query) or die(mysql_error());[/CODE] at least you get some more info

Member Avatar for stoopkid
0
230
Member Avatar for ckdoublenecks
Member Avatar for ahsan1

what are u try to do with [CODE] <?=$row['song']?> [/CODE] if u wan to display $row['song'] [CODE] <? echo $row['song']; ?>[/CODE] your code will look like [CODE] <form id="adminsform" name="adminsform" method="post" action=""> <input type="checkbox" name="master" onClick="checkedAll('adminsform')" value=""/> <?php while($row=mysql_fetch_array($result)) { ?> <input type="checkbox" name="musicid[]" value="<?php echo $row['id']; ?>" /> <?php …

Member Avatar for pzuurveen
0
118
Member Avatar for sawjuk
Re: php

on this site you can try them out yourself: [URL="http://php.opensourcecms.com/"]http://php.opensourcecms.com/[/URL]

Member Avatar for diafol
0
133
Member Avatar for jpknoob

In your first script where is the array [CODE] $row['path'];[/CODE] (line 6) come from?

Member Avatar for jpknoob
0
111
Member Avatar for Coderunner

i see 3 solutions 1 fopen each file and readout the <title> atrebute -This probley makes your script to slow to be use full 2 put the tilte and the filenames in an array and - if you want to add a new file u also have to edit your …

Member Avatar for Coderunner
0
608
Member Avatar for Awah Mohamed

cookies need to be send before any other output check for white space Before <?php tag also could try [CODE] if(isset($_COOKIE['logedin'])) { header("Location: http://www.example.com/"); } else [/CODE] cant test myself now so no guarantees

Member Avatar for Awah Mohamed
0
244
Member Avatar for ckdoublenecks
Member Avatar for reygcalantaol
0
176
Member Avatar for mbarandao

If i understand corectly: You have something like a form (no listing) that sends data to a page (listing 1) that sends the data to /i-cmsys/editableinvoice/index.php (listing 2) if so: Data send in th url is GET data use [CODE]echo $_GET['edit_mileage'];[/CODE]

Member Avatar for mbarandao
0
287
Member Avatar for juanitobunito
Member Avatar for diafol
-1
86
Member Avatar for jpknoob

You use [CODE]mysql_free_result($result)[/CODE] as part of your loop so the second time in the while loop $result is empty

Member Avatar for jpknoob
0
86
Member Avatar for debasishgang7

standard php function [URL="http://nl3.php.net/manual/en/function.substr-count.php"]substr-count[/URL]

Member Avatar for debasishgang7
0
193
Member Avatar for sharkqt
Member Avatar for pzuurveen
0
131
Member Avatar for vijaygupta

not sure wat you want but i gess just build the sub radio buttons use display:none then create an actionscript to set display:block

Member Avatar for pzuurveen
0
69
Member Avatar for kirtan_thakkar

In your form use [CODE]<input type="hidden" name="MAX_FILE_SIZE" value="102400" /> <input type="file" ....... [/CODE] this pervents uploads of bigger files on the client side still need to check the size at the server side [URL="http://se2.php.net/manual/en/features.file-upload.post-method.php"]see php site[/URL]

Member Avatar for Gewalop
0
170
Member Avatar for rkayd

did you do [CODE]var_dump($_POST);[/CODE] to check what you got back? if not checked a checkbox will give a $_POST var. check if it exist [CODE]if(isset($_POST['Proof']))[/CODE] furthere more before puting $_post in a db ALWAYS use mysql_real_escape_string() to prevend hacking this gives [CODE] if(isset($_POST['Proof'])) { $Proof = mysql_real_escape_string($_POST['Proof']) } [/CODE]

Member Avatar for pzuurveen
0
214
Member Avatar for BHARANIMMAJ
Member Avatar for bangla
Member Avatar for Aser Gado

ALLWAYS use [URL="http://php.net/manual/en/function.mysql-real-escape-string.php"]mysql_real_escape_string()[/URL] or you will be hacked read [URL="http://www.php.net/manual/en/security.database.sql-injection.php"]http://www.php.net/manual/en/security.database.sql-injection.php[/URL] [CODE] mysql_select_db("mlsconnection_99k_dbusers", $con); $sql="INSERT INTO Persons (FirstName, LastName, Email, Password) VALUES (".mysql_real_escape_string($_POST[firstname])."','".mysql_real_escape_string($_POST[lastname])."','".mysql_real_escape_string($_POST[Email])."','".mysql_real_escape_string($_POST[Password])."')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "User created, Thanks for Registrating"; mysql_close($con) [/CODE]

Member Avatar for pzuurveen
0
116
Member Avatar for ymsweb

using [CODE]session_id()[/CODE] will create a cooky some pc might have cooky's disabeled. p.s please use the code tages for readebilty

Member Avatar for pzuurveen
0
206
Member Avatar for abhi10kumar

i recenty had a simular probem see [URL="http://www.daniweb.com/forums/thread328163.html"]http://www.daniweb.com/forums/thread328163.html[/URL]

Member Avatar for diafol
0
106
Member Avatar for JerieLsky

I 'm always suspicious about filenames with spaces [CODE] $fileName=str_replace(" ","_",$fileName); [/CODE]

Member Avatar for Javvy
0
5K
Member Avatar for Imratzio

Youre query doesn't give a good result use at line 12 [CODE]$query2 = mysql_query($sql2) or die(mysql_error());[/CODE] to get more details

Member Avatar for Imratzio
0
247

The End.