198 Posted Topics

Member Avatar for eyeda

He has three different DB queries, one is getting admins ($row1) one is geting staff with a banned account ($row) and the other gets Staff withour a banned account (no variable set for this one). While this method works it would be just as easy to make this all one …

Member Avatar for eyeda
0
119
Member Avatar for suavedesign

Wrap your nav div in a wrapper div. Set the wrapper div width:100% set the nav div to the width of the page content than margin:0 auto; : .nav_wrapper{ width:100%; background-color: #FFF; //Change this to the background color of your nav bar } .nav_bar{ width: 800px; //Change this to the …

Member Avatar for suavedesign
0
5K
Member Avatar for sheshagirig

Your inputs all have the same ID / Name so when JS does the getElementById it just gets the first element it finds on the DOM. You could convert everything into an array and turn it into JSON, you'd have to look up how to do this with standard JavaScript …

Member Avatar for sheshagirig
0
172
Member Avatar for default_098

I don't know what you want to dictate what element gets what color. But if you create three different CSS styles you can change the class of a td element: document.getElementById("234").className = "green_box";

Member Avatar for GliderPilot
0
205
Member Avatar for bangla

Once you submit that form to PHP all your radio box values will be available in the $_POST array by their name (i.e. $_POST['Answer1'] would have a value of LID1_1 or LID1_2 depending on which answer was selected. From there you just need to do a conditional if statement if($user_answer …

Member Avatar for GliderPilot
0
98
Member Avatar for MrXortex

Its diffacult to help when we don't have any code, how can we suggest "another" solution when we don't know what you're doing now? On a side note, this is an HTML CSS issue not a PHP issue so it's posted in the wrong place as well. Generally, if you …

Member Avatar for jspence29
0
368
Member Avatar for shahai.ali

A lot of the big social media websites have what's called an API (i.e. https://dev.twitter.com/ and http://developers.facebook.com/) which will allow you to have a user login to their account from your website at which point you can interact with their friends.

Member Avatar for AndreRet
0
290
Member Avatar for DarkMonarch

I agree with pritaeas, when it comes to security the more "layers" you can have the more secure you will be. While PDO helps to mitigate risk, there will always be unexpected input or ways discovered to circumvent that particular security check. For proper risk management I would alwyas verify …

Member Avatar for diafol
0
120
Member Avatar for kiLLer.zoh

The printf function expects a string passed to it as a parameter to output. i.e. printf('Hello Word') you don't need it, you can just run the query. $qry="Insert into `postjob` (jobtitle,positions,category) VALUES('".$_POST['title']."','".$_POST['position']."','".$_POST['cate']."')"; `mysql_query($qry) or die (mysql_error());`

Member Avatar for GliderPilot
0
110
Member Avatar for cheelo007

Just thinking outside the box here, could always be a misconfigured session setting in php.ini or cookies disabled.

Member Avatar for cheelo007
0
379
Member Avatar for webdev2012
Member Avatar for GlenRogers

As soon as you send any HTML or echo anything to the DOM you can no longer do a header re-direct or you will get this error. header( 'Location: admin.php' ) ; Cannot go where you placed it. On a security side not, I would never use $_REQUEST, use the …

Member Avatar for diafol
0
341
Member Avatar for hakeemtunde

If you're appending the element to the form it should be available on your POST without any further action. How are you adding the additional element?

Member Avatar for hakeemtunde
0
99
Member Avatar for Vijaysurya

No one is going to write this for you, if you need help with specific code than we can help. There is a lot of free knock off versions written in jQuery and JavaScript. You won't find a pure PHP Chat

Member Avatar for paulinetaylor85
0
188
Member Avatar for mpc123

I think I understand what you're trying to do. $raw_text = trim($file['description']); if(strlen($raw_text)>200) { $raw_text = substr($raw_text, 0, 200) . "..."; } $final_text = str_replace('*', $file['field2'], $raw_text); echo "<p>$final_text</p>";

Member Avatar for mpc123
0
193
Member Avatar for hwoarang69

You're missing the = in your password field name property. You have: <input type ="password" name'p' /> Should be: <input type ="password" name='p' />

Member Avatar for hwoarang69
0
87
Member Avatar for GraficRegret

Based on this code you can have several different ID's but only one upload form. How is the user picking which veh they are upload the photos for? You just need to add a hidden form field to your form once you know `<input type="hidden" name="veh_id" value="<?= echo $row['id']; ?>" …

Member Avatar for GraficRegret
0
454
Member Avatar for joeyliew7

You want to show a different image depending on which item is selected from the drop down list? Do I understand you correctly?

Member Avatar for joeyliew7
0
2K
Member Avatar for AndreRet

Should just need to remove the echo "</table>"; from within your while loop, put it just fater your closing bracket as urtrivedi suggested. What's happening now if you view sorce you'll see that at the end of each row there will be an </table> and no new table started.

Member Avatar for AndreRet
1
194
Member Avatar for DEAD TERMINATOR

scandir returns an array of all files and directories. You'll need to verify the file is a file and not a directory as it stands right now you're trying to file_get_contents on directories which will fail.

Member Avatar for coreyavis
0
258
Member Avatar for matusekm

Check your error logs, there is an error in your PHP which will cause the page to appear blank. It can be a lot of adifferent things so best to refer to your error log to see what it says.

Member Avatar for GliderPilot
0
176
Member Avatar for AndreRet
Member Avatar for AndreRet
0
184
Member Avatar for geneh23

Your form has name="email" but script has $_POST['Email'] make sure both have the same capatalization. Change your regex expression for strings to: `#[^a-z .'-]#i` And for numbers: `#[^0-9]#`

Member Avatar for LastMitch
0
346
Member Avatar for LastMitch

Because you have defined a constructor for the child class the parent constructor is not implicitly called. When you define a constructor you must construct the parent to make the functions available to it: function __construct($coworker_name) { parent::__construct(); $this->set_name($coworker_name); }

Member Avatar for LastMitch
4
305
Member Avatar for masocha

With whats given I don't know what your initial object variable is (what your var_dump'd) so I'll just use $objVar for demonstration purposes. Easiest way is to work backwards from what you want. So for example the id. We see it's keyed as id so we write that down. Step …

Member Avatar for blocblue
0
305
Member Avatar for codingweb

Is this code tossing an error? Security issues aside, nothing is jumping out at me as being wrong

Member Avatar for diafol
0
80
Member Avatar for wycliffe.ottawa

`$query = $this->db->where('id',$id);` That's actually correct, it's part of the Active Record driver for the DB. The $id variable is loaded from the URI websitename.com/folder(optional)/class/function/variables So if you were to goto for example websitename.com/entries_model/get_comment/12/ CI would basically interpurate that as load the Entrie_model class, run the get_comment function and pass …

Member Avatar for wycliffe.ottawa
0
166
Member Avatar for numele

The easiest way is can hide all than re-display the one you want: function handleSelection(choice) { document.getElementsByClassName('hide').style.display="none"; document.getElementById('select').disabled=false; document.getElementById(choice).style.display="block"; }

Member Avatar for AleMonteiro
0
284
Member Avatar for McLaren

When using jQuery, the $('#game') selector selects ALL elements with the game ID and does not give you the actual DOM element to allow you to do this. jQuery exposes the actual DOM elements by numeric index to allow regular DOM/Javascript functions: `var canvasElm = $('#game')[0];`

Member Avatar for McLaren
0
98
Member Avatar for roheath_1

This is why we don't copy and paste something from W3C lol... There is a lot of security issues with what you've posted. you should never take user inputted data and insert it directly into the database without verifying it first and you shouldn't store unencrypted passwords in your database. …

Member Avatar for cigoL..:)
0
146

The End.