1,003 Posted Topics

Member Avatar for momonq1990

Hi, if this-> $sysid is a php variable, then try changing your code <a href='delete.php?id=$sysid' class='view' onClick='del()'> <img src='image/vie.png' border='0'> </a> to this <a href='delete.php?id=<?php echo $sysid;?>' class='view' onClick='del()'> <img src='image/vie.png' border='0'> </a>

Member Avatar for veedeoo
0
338
Member Avatar for FaisalSarfraz

@faisals701, You need to change $_REQUEST to $_POST.. Anyone can send a remote upload on your form if that's how you are going to process it. For added security, a unique ID should be auto generated by your script and plugged it in in your session.. Example of a unique …

Member Avatar for veedeoo
0
339
Member Avatar for lastgame2007

Is the admin and the user logging in from the same terminal or desktop? Does the admin updates info. by logging in as the user by way account over-ride? If your case is neither of the things I mentioned above, then you may want to add another column on your …

Member Avatar for lastgame2007
0
74
Member Avatar for aianne

Hi, Is this for the faculty and student views? If for both, the student can easily spoof your form, and they can have 100% grades on all of the terms prelim, midterm and finals.. Just my humble advice :). Show the grades to student as text string and NOT on …

Member Avatar for urtrivedi
0
500
Member Avatar for OnIIcE

Hi, PHP will not be able to check the file size before the file upload is executed. There is no way you can detect on the desktop's directory. File upload has to occur first, and then the script checks on the file size.. There is another way of doing this.. …

Member Avatar for veedeoo
0
114
Member Avatar for melbahtoast

Hi, Your upload script is highly susceptible for malicious script upload e.g. php script. You need to define the file extension you are willing to accept from user. The script above of which you have presented us can take any file extensions. 1. Your script could either use javascript to …

Member Avatar for veedeoo
0
279
Member Avatar for Ctechnology24

Please allow me to add something. Since that the php closing tag is already in placed .. shown below. [CODE] ?> <tr> <td width="250px"><?php echo '<a href="ProfileDoctor.php" style="color:#33FF00;">$dname</a>'; ?></td> [/CODE] it can be rewritten as this [CODE]?> <tr> <td width="250px"><a href="ProfileDoctor.php" style="color:#33FF00;"><?php echo $dname; ?></a></td> [/CODE] Still the same as …

Member Avatar for diafol
0
137
Member Avatar for aianne

Hi, Look for line 72 grade.php [CODE]$$key = $value;[/CODE] it should be [CODE]$key = $value;[/CODE] Try using some PHP IDE like netbeans or eclipse... others settled in for advance php editor like personal php designer 2007. The good thing about them, they are all for FREE.. Load your entire script …

Member Avatar for aianne
0
324
Member Avatar for akasekaihime

If I can help you, can I at least get a free Bus pass? Where is this place though? :). If it is too far from Princeton, New Jersey, it's ok :). Stop punishing your fingers by typing these [CODE] <select name='dep_day'> <option>Day</option> <option value='1'>1</option> <option value='2'>2</option> <option value='3'>3</option> <option …

Member Avatar for veedeoo
0
267
Member Avatar for Lefian

Hi, For this [CODE]<select name="birdname"><option value="<?php echo $row['bird_id'] , $row['name']?>">[/CODE] I would $_POST it first to get the value from the <option>, and then explode it by " [B]'[/B] " Something like this.. codes below are example and should be modified, before implementing to production server.. [CODE]$bird_name_id = $_POST['birdname']; ## …

Member Avatar for Biiim
0
6K
Member Avatar for singularity~

Hi, Just a humble question from me :)...I thought when using the RecursiveIteratorIterator class goes by this pattern [CODE]$the_iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($some_arr)); [/CODE] So, by looking at your codes, I assumed that your are trying to filter the $the_iterator by RegexIterator which is obviously are images. on your codes, …

Member Avatar for veedeoo
0
877
Member Avatar for subrata_ushasi

You need to install EITHER one ->> Xampp, LAMP, or EasyPHP on your windowsXP environment.

Member Avatar for veedeoo
0
382
Member Avatar for h2so4_2003

Wow, can you please give us more explanation on what you are trying to achieved here. I thought when you do this; [CODE] INSERT INTO `YourTable`(`col-1`, `col-2`, `col-3`) VALUES ("",[value-2],[value-3]) [/CODE] That should give you an empty value for the col-1.. or you can set the table null -> Yes …

Member Avatar for h2so4_2003
0
118
Member Avatar for rambo12

try searching for free available services. Google is our friend.. Writing an application like this takes time. But if all you need is a raw flat file based chat script... I can probably show you how, but it is no guarantee when I could do this, because of my time …

Member Avatar for Ezzaral
0
487
Member Avatar for himanshu.1691

Hi, Try adding a new column and name it role.. and then it is all up to you how are you going to assign values to sort between teacher and student. For example, if we are to give an integer 7 for the role of teacher and a value of …

Member Avatar for broj1
0
138
Member Avatar for saadi06

Hi, Can you please give us more detail.. to sort your array, you can easily do this by and it will give you an ordered dates regardless if you put 01/20/2012 in front of the array. [CODE]$dates_ar = array('01/01/2012','01/20/2012','01/02/2012','01/03/2012','01/05/2012','01/10/2012'); sort($dates_ar); ## we can echo foreach ($dates_ar as $date => $val) …

Member Avatar for veedeoo
0
172
Member Avatar for sammry

Hi, Try this script... I derived this from the tag cloud script I wrote when I was a newbie. This is my very first tag cloud script, and the very first time that I wrote a function.. The original script was pretty good. It almost took me forever trying and …

Member Avatar for veedeoo
0
194
Member Avatar for extjac

Hi, Here is my humble contribution using [B]FETCH_CLASS[/B] PDO object.. I posted this as a response in one of the question weeks ago. I brushed it up a little to become relevant to your question. [CODE]<?php class User{ ## Property declaration NOTE! All these variables or properties are the column …

Member Avatar for veedeoo
0
134
Member Avatar for baig772

Hi, Many ways to achieve this... some people in smarty community where I used to hangout a lot, they were using an xml for translation, while others uses a module of which I can't even remember its name. Another common method is the direct translation for example, create a language …

Member Avatar for diafol
0
126
Member Avatar for gopi17

Hi, These codes [CODE] $sql="SELECT * FROM $tbl_name WHERE invoice_no = '$invoiceno'"; $result=mysql_query($sql,$dbh1); $row=mysql_fetch_array($result) or die(mysql_error()); echo "$row"; [/CODE] Shouldn't be a lot easier to find if rows is greater than zero? Something like this [CODE] $sql="SELECT * FROM $tbl_name WHERE invoice_no = '$invoiceno'"; $result=mysql_query($sql,$dbh1); $row= mysql_num_rows($result) or die(mysql_error()); echo …

Member Avatar for veedeoo
0
89
Member Avatar for Motifaithed

Hi, You can use the unix time if you want. Normally, more people are using this because the chance of duplicates is somewhat pretty rare. Think about having two people clicking the same button at the same time . You can use like this [CODE] $time_posted = $time(); [/CODE] You …

Member Avatar for veedeoo
0
182
Member Avatar for programmer12

Hi, Before anything else, can you please check what is the value of your [B]upload_max_filesize[/B] and [B]post_max_size[/B]. These are in the php.ini file or on your loaded server configuration file. I also suspect that your server's php version has been upgraded.. Just copy, save, name anyNameYouWant.php, upload to your server, …

Member Avatar for veedeoo
0
164
Member Avatar for sess4561

Hi, You only use countryCode[0], when there are multiple countryCode . for example, [CODE] <?xml version="1.0" encoding="UTF-8"?> <Response> <statusCode>OK</statusCode> <statusMessage></statusMessage> <ipAddress>2.99.203.40</ipAddress> <countryCode>UK</countryCode> <countryCode>UK1</countryCode> <countryCode>UK2</countryCode> <countryName>UNITED KINGDOM</countryName> </Response>[/CODE] If I want to parse the coutryCode for UK, my script should be something like this.Assuming that the above file is named xml.xml. …

Member Avatar for veedeoo
0
183
Member Avatar for anthonyjpv

Hi, You can add two columns in your customer's table. One is for temp_password, and second is for the temp_passAge. We can then use time as comparator for the time elapsed since the temp password was created. Example: [CODE] ## assign server time to ctime $ctime = time(); ## you …

Member Avatar for anthonyjpv
0
171
Member Avatar for morthea

Hi, You can add <input> to your form and give them a name unique to the pizza size. Fore example, take a look at the codes below.. [CODE] <INPUT TYPE=checkbox NAME="pica10" VALUE="S">10" Php300 <input type="text" name="sq" value=""/> <INPUT TYPE=checkbox NAME="pica14" VALUE="M">14" Php450 <input type="text" name="mq" value=""/> <INPUT TYPE=checkbox NAME="pica18" VALUE="L">18" …

Member Avatar for morthea
0
283
Member Avatar for INF-P

Hi, jUst a friendly advice.. next time, enclose your codes with the [B][COLOR="Red"]code[/COLOR][/B] tag located on top of the editor. It is a lot easier to red codes this way..

Member Avatar for INF-P
0
347
Member Avatar for patrick1981

This is our point of interest [CODE]<select name="select" id="select">[/CODE] Process the form by either GET or POST [CODE] ## grab the selected aution id $a_id = $_POST['select']; $query1 = "SELECT * FROM auctions WHERE auction_id = '".$a_id."'"; $result1 =mysql_query($query1,); while ($row=mysql_fetch_array($result1)) { ## echo item title description, and all other …

Member Avatar for karthik_ppts
0
6K
Member Avatar for zacharysr

Hi, The linked is based on zend extension.. If you have not work with zend framework before that would be very tricky. If you just need the same functionality as zend without breaking the peggy bank, thene consider the following codes. I posted these codes on my previous post in …

Member Avatar for veedeoo
0
302
Member Avatar for bavenbabu

Hi, I can explain it in simple words without too many comments needed The Input ---> The Processing of the Input ---> The output or the outcome of the processed input. In short, Controller(input) --> model(processing) --> View(output or template).. Sample script Controller [CODE] ## checks if members logged in …

Member Avatar for veedeoo
0
132
Member Avatar for qasim baig

Hi, I did this type of testing in Paypal sandbox, too many times already. BUT, not to offend you or anything, can you please put your codes between the CODE tags. Then only that time when you did that, I will help you.. It gives me a terrible head ache …

Member Avatar for qasim baig
0
90
Member Avatar for newbie1234

Hi, If the id is coming from auto increment, then it would be difficult to guess which is which. I know it is easy if you are looking at it, but programatically it will be difficult for the script. I mean you can do >22, but that is not the …

Member Avatar for NinjaMediaD
0
129
Member Avatar for natrajmasala
Re: Php?

Hi, Do you mean text link to submit the form? Actually, you can use images if you want. We cannot accomplish this by using PHP. It has to be javascript.. I was going to advice you to post your question in the javascript forum, but I figured out the codes …

Member Avatar for diafol
-3
76
Member Avatar for Davetew
Member Avatar for sagarrayudu

Hi, It is getting really late in my time zone, that I really need to hit the bunk. Anyways, here is the general form for xpath in php.. I am not going to explain it in great detail, but the whole idea is well presented. [CODE] <?php $xml = simplexml_load_file("../category.xml"); …

Member Avatar for veedeoo
0
211
Member Avatar for mayreeh

Hi, The problem is that you never define additional properties for your database connection.. Here is a simple example AND SHOULD NOT be used in production site. I am just trying to give you a simple example. You still need to do some dirty work and lots of reading about …

Member Avatar for mayreeh
0
120
Member Avatar for R.Manojkumar

Hi, It all depends on server configuration. You will need to find out these configurations by using the codes below. Save as anyfileYoulike.php [CODE] <?php phpinfo(); ?> [/CODE] Upload to your server and direct your browser to this file. Look for the value of [B]Server API [/B]. If your server …

Member Avatar for karthik_ppts
0
2K
Member Avatar for vlowe

Hi, You want to run this script from remote desktop and pass the gathered info. over the network? Just for the sake of curiosity, what are you trying to achieved?

Member Avatar for diafol
0
143
Member Avatar for arihantphp

try, look for javascript redirect. The only problem with this approach is that it will not work if javascript is turned off. [CODE] echo '<script type="text/javascript"> <!-- window.location = "http://YourDomainDotCom/uploads/$contact_name/index.html"; //--> </script>'; [/CODE] Otherwise, you must end the script just right after your redirection code. Something like this [CODE] header("Location: …

Member Avatar for vaishalrs2007
0
230
Member Avatar for zack654

I think OOP first, singleton second (this is important in some environment), templating system third. Getting very comfortable with those three might change your perception about MVC. If it doesn't, make MVC fourth (try cake or codeigniter):). I prefer Zend framework, because I already spent all of my monthly allowance, …

Member Avatar for veedeoo
0
243
Member Avatar for ethio
Member Avatar for mynameisfish.22

Hi, Try to isolate what is the mysql_fetch_array output..So, you may want to try running a test query instead. Something like this [CODE] if (!($rows = mysql_fetch_array($sql3))) { return null; ## or maybe to print or echo something if there is none, but the return null has to be commented …

Member Avatar for karthik_ppts
0
198
Member Avatar for filipgothic

does your db table anketa have columns at all? What i meant is that you want the script to insert the data to your dbase with all these values, but what column does these data needs to be inserted?

Member Avatar for filipgothic
0
1K
Member Avatar for emidevil

UPDATED: Please ignore my response below. I think I have a wrong assumption, because I run a test class to see it cycling has effects or not, but unfortunately based on my model it has no bearing at all.. dummy script extracted from a class used for evaluation. [CODE] function …

Member Avatar for cossay
0
575
Member Avatar for Jfunch

hmmn is this mysqli? Wow! have not seen this for years.. try [CODE] $stmt->bind_param('ss', $username, $password); ## prepare your statements $username = "define it here"; $password = "define it here also"; ## now execute the prepared statements above $stmt->execute(); [/CODE] ONly then, you can begin with your query or whatever …

Member Avatar for veedeoo
0
149
Member Avatar for hallianonline

by the way, you can consolidate your statements as [CODE] <?php include "connect.php"; if ($idevice =="pbs") { $tb_school = "Public School"; } elseif ($school =="gs") { $tb_school = "Government School"; } else { $tb_device = $school; } ?> [/CODE]

Member Avatar for veedeoo
0
102
Member Avatar for cr7489

Hi, next time place your codes between the [CODE} tags... just like what I did to your codes below. [CODE] <?php $searching=$_POST['searching']; $searchfilm=$_POST['searchfilm']; //If form is submitted if ($searching =="yes") { echo "<h2>Film Review</h2><p>"; //If field is empty send a message if ($searchfilm == "") { echo "<p>You forgot to …

Member Avatar for cr7489
0
210
Member Avatar for AODfan

Hi, try to set up an AND operator, like [CODE] if(($gravity == 0)&&($weight == 0)){ ## show something, instead of the calculated value here. } else{ ## show calculation if both the gravity and the weight are greater than zero } [/CODE] Test your codes by removing the value in …

Member Avatar for veedeoo
0
109
Member Avatar for HasNor

try.. make sure the directory and the file name are properly assigned below. [CODE] if (file_exists($attcid."whatever.extensionOfFile"){ @unlink($attcid."whatever.extensionOfFile") ; } else{ echo "Are you kidding me? This file don't even exist. I already looked."; } [/CODE]

Member Avatar for HasNor
0
123
Member Avatar for sujan.dasmahapa

Hi, change your codes to this [CODE] <?php if(isset($_POST['submit'])) { ?> <form method="post" action=""> <input type="submit" name="submit1" value="Style1"> </form> <form method="post" action=""> <input type="submit" name="submit2" value="Style2"> </form> <form method="post" action=""> <input type="submit" name="submit3" value="Style3"> </form> <form method="post" action=""> <input type="submit" name="submit4" value="Style4"> </form> <form method="post" action=""> <input type="submit" name="submit5" value="Style5"> …

Member Avatar for veedeoo
0
167
Member Avatar for Clanstrom

try changing this [CODE] mysql_query("INSERT INTO users(name, country) VALUES('$username', '$country' ) "); or die(mysql_error()); [/CODE] to this [CODE] mysql_query("INSERT INTO users(name, country) VALUES('$username', '$country' ) ") or die(mysql_error()); [/CODE] The T_LOGICAL_OR error is caused by [COLOR="Red"][B];[/B][/COLOR] the or die is part of your statement and should not be separated from …

Member Avatar for Clanstrom
0
241

The End.