Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
3 Commented Posts
~27.9K People Reached
Favorite Tags
Member Avatar for Ravenous Wolf

i would like to know if php can replace javascript as a client side script. one can use javascript to do all kinds of things like computing values in textboxes and check them for errors and so on. is it possible to use php in its stead? lets say i …

Member Avatar for abexer
0
418
Member Avatar for spiderling

I am trying to find out if it is possible to [B]edit/add to[/B] an existing PDF file with PHP. I have a PDF agreement document that needs to have the client's name inserted on the blank field. The document will then be printed for their signature. I've created PDF's with …

Member Avatar for Isaac_4
0
7K
Member Avatar for veledrom

Hi, I want to store the values that are in array($selected) into a single variable($result). How can i do it? Variable of $result should be 4,3,9. I get this error "Notice: Undefined variable: result in C:\wamp\www....". Thanks [code] $selected=array("0" => 4, "1" => 3, "2" => 9 ); foreach ($selected …

Member Avatar for arifmufty
0
207
Member Avatar for antwan1986

Hi everyone and thanks for reading! I use JavaScript to create sets of text boxes on the fly. I also have a hidden counter in a text box on the form which I also post to my PHP script. This hidden counter is how I tell PHP how many text …

Member Avatar for com00085
0
3K
Member Avatar for antwan1986

Hi everyone and thanks for reading. This problems been driving me nuts for the last day and I'm completely stuck. I made a dummy table of users to test out SQL connections but everytime I echo out the information, it keeps dropping the first record, and jumps straight to record …

Member Avatar for jopianokid
0
4K
Member Avatar for Smurf_UK

Hi All, I am new to the site, and also to PHP and MySQL, so please go easy on me for asking what may be an obvious question for many. I am wanting to store the data from a sign-up form in a MySQL DB, but I cannot get my …

Member Avatar for Morta
0
3K
Member Avatar for mrcniceguy

I need to display part of text from mysql: for exapmle i`m having 50characters and then i just want to display just part of it like 20characters in the first page and the remain including the first as a link to another page. That when someone clicks the link the …

Member Avatar for Martin1077
0
602
Member Avatar for antwan1986

Hi all, hopefully my question is simple as I'm fairly new to OOP coding. I've found an RSS Parser on the internet (which is open source and I can adapt it to however I please yada yada). I want to hide certain variables. [CODE] <?php # RSSParser ## Using the …

Member Avatar for antwan1986
0
90
Member Avatar for andrewsCWD

Hello, I have a form that has several checkboxes. It looks similar to this: [CODE]<input name="service_needed[]" type="checkbox" value="service1" class="checkbox" /> <input name="service_needed[]" type="checkbox" value="service2" class="checkbox" /> <input name="service_needed[]" type="checkbox" value="service3" class="checkbox" /> [/CODE] I'm trying to store the values of whichever boxes are checked inside of one variable so that …

Member Avatar for antwan1986
0
773
Member Avatar for antwan1986

Hi guys, this is a brainteaser for me and I'm wondering if you could help. Lets say I'm looping through these results from MySQL, and the result set is as follows: ID------Name 4------ Anthony 76------John 31------Andrew 98------Sonia If I was on the 2nd row (with an id of 76, name …

Member Avatar for pritaeas
0
119
Member Avatar for Scottmandoo

in the following piece of code the else part of my if/else statements doent seem to work it just adds nothing, thanks. btw genre is a dropbox (and yes i have added the values) and genre2 is a text box, same with the filehost and filehost2. [CODE=php]$name = $_POST['song']; $artist …

Member Avatar for Scottmandoo
0
103
Member Avatar for antwan1986

Hi everyone and thanks for reading. Up until yesterday I was unaware of this technique, and have always just ran a user's password through md5 and stored the result to the database. From what I've been reading about SALT it sounds like a very cool way of making your passwords …

Member Avatar for antwan1986
0
101
Member Avatar for sawmaster

Hi! I am kind of new to php. [CODE]$myFile = "msg.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData = $beforeData; fwrite($fh, $stringData); [COLOR="Red"]$stringData = ""+myname+": "+mymessage+"\n";[/COLOR] fwrite($fh, $stringData); fclose($fh);[/CODE] I need to set more than one variable in that red line. How do I do that? I'm trying …

Member Avatar for sawmaster
0
96
Member Avatar for antwan1986

Hi everyone and thanks for reading. I'll give you a quick insight into my project and desired goal. I've a client who wants a purchase order system that will send purchase orders in the form of emails, and log them into a database. PHP and SQL are my core skills …

Member Avatar for jonnyhitek
0
153
Member Avatar for stealthmode

I have been trying to find a simple name and password tutorial that works and is easy to follow. Not having much luck. The name and password will be in a text file or mysql database which the user will be given, i do not need forgot password or email …

Member Avatar for PomonaGrange
0
129
Member Avatar for jackakos

Hi Folks, is there a way to validate input fields using only PHP scripts before inserting into a MySQL database? I have fileds for: Date (DD-MM-YYYY) Time (24 hour format between 0900 and 1700) Location (String) Your suggestions will be a boost.

Member Avatar for jackakos
0
192
Member Avatar for Fourbit

Howdy all, New here. And I've done a search. Just can't find what I'm looking for. I have a number in some text that I want to increment every week by 100 . And, i need it done automagically. I have thought initially of putting the number in a DB …

Member Avatar for Fourbit
0
92
Member Avatar for antwan1986

Hi everyone and thanks for reading. I started a project a while ago and am stuck on how to proceed processing this form. It's a very simple form but I'm still at a mental roadblock regarding how to proceed from this point. The idea is that the form is a …

Member Avatar for antwan1986
0
113
Member Avatar for antwan1986

Hey everyone. I was reading the documentation for this function and I can't understand what the example is doing, and how it's working. Can someone explain to me what these functions are doing? [CODE] <?php function odd($var) { return($var & 1); } function even($var) { return(!($var & 1)); } $array1 …

Member Avatar for antwan1986
0
109
Member Avatar for antwan1986

Hi everyone and thanks for reading, Now that I've been getting my hands dirty with PHP a lot more, I've been starting to freelance and I'm wanting to make sure I have the right systematic approach to protecting data before I commit to any projects. Whenever we accept user input …

Member Avatar for antwan1986
0
136
Member Avatar for antwan1986

Hey guys hopefully this is just a quick question. I've a form that is sending data to a PHP script. The form has the following textbox: [CODE] <input id="quantity1" name="quantity1" type="text" value="" /> [/CODE] Whenever it is posted I do the following: [CODE] function isInteger($val) { if (is_int($val)) { return …

Member Avatar for kevindougans
0
113
Member Avatar for antwan1986

Hi everyone and thanks for reading! I've been handed a freelance job to make a purchase order system for an interior designer. Currently whenever they run out of stock they use a spreadsheet to generate a fax like page, print it and then fax it off. She now wants this …

Member Avatar for heenix
0
120
Member Avatar for MiloMan

Posting this for a friend here is his question... Thanks in Advance. hey, this is my first post on these forums, i have just started learning php after doing no coding whatsoever for a while. i have to successfully get past this first, so here goes. i have a site, …

Member Avatar for antwan1986
0
144
Member Avatar for antwan1986

Hi all and thanks for reading. I came accross a function on the internet for creating a <select> box out of an array. I understand all of the code except for a few things: [CODE] <?php function dropdown($name, array $options, $selected=null) { // Begin the select tag. $dropdown = "<select …

Member Avatar for antwan1986
0
158
Member Avatar for antwan1986

Hi all, I have a question about mysql_real_escape_string. Is it just used for login scripts or is it also used for inserting data to a database. My problem is this: [CODE] $connection = mysql_connect("*****", "*****", "*****"); $database_select = mysql_select_db("*****", $connection); $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $firstname = stripslashes($firstname); $firstname …

Member Avatar for antwan1986
0
142
Member Avatar for rickya100

Hi everyone, Simple query. I have a RSS.php file in my includes folder and in this I write out an XML file to a feeds folder. It has been working fine except when I changed the relative link used in the file_put_contents function to a root relative one. I want …

Member Avatar for antwan1986
0
342
Member Avatar for Diode

I am making a section in the users' profile where they pick their favorite teams, which might be in different leagues (NCAA, MLB, NFL). When the user picks the league, it takes them to the next page that lists the teams under their respective conferences (Big 10, Big 12, NFC, …

Member Avatar for antwan1986
0
146
Member Avatar for mgn2683

Hi, I am creating a real estate site, and I need a thumbnail and full size image to display. I'd like to store the images in respective folders under the Images folder on the server, and store the file name in the database. I can't get the images to display …

Member Avatar for antwan1986
0
165
Member Avatar for gpdrums

I want to redirect authenticated users to a personal account page where they will see links to pdf documents in their folder. 1. How do I perform this redirect? 2. How do I call the file names for the documents in the account folder? Thanks much!

Member Avatar for antwan1986
0
108
Member Avatar for l00pylou

Hello all - I have created an online form that sends results via email on submit, however, I have 4 checkboxes and their values are coming through as NO no matter what is entered this is the PHP code if ($box1 == "on"){ $box1= "Yes"; }else{ $box1 = "No"; } …

Member Avatar for l00pylou
0
99