Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~27.5K People Reached
Favorite Tags

43 Posted Topics

Member Avatar for facarroll

I have a script that delivers an empty gif file when an attempt is made to download an image ("Save image as..."). Here is a link to my page. Try to save either of the first two images from the screen (not screenshots). I have been told that this is …

Member Avatar for Dani
1
374
Member Avatar for facarroll

I have a web page that loads images with a modal, and at the same time is meant to inhibit image piracy by delivering a transparent overlay when a user attempts to make a screen copy of the image. I have two php lines of image scripts which work OK …

Member Avatar for AndreRet
1
92
Member Avatar for facarroll

I have the following script which successfully finds the values for $payer_email, reminder_date and sub_expire_date, however where I am having trouble is when I apply a WHERE condition to the SELECT. The condition I am trying to apply is the commented out line at the end of the SELECT. The …

Member Avatar for facarroll
0
277
Member Avatar for TheFearful

I think you are asking if a business type letter can be made this way. Sure. You would probably format the letter in HTML, and then echo it in php so that you can include variables drawn from your database.

Member Avatar for TheFearful
0
580
Member Avatar for facarroll

I have a MySQL database which contains a text field which contains well formed xml. I want to export this data as an xml file named result_new.xml on the fly. I have made the tmp folder and have set the permissions on the folder to 0777. If I run this …

Member Avatar for facarroll
0
1K
Member Avatar for facarroll

I have a mysql database that has previously stored the text of an xml file including tags. I want to select that data from the database and return it as an xml file rather than just text, (eg filename.xml). It is to be further processed with a javascript file which …

Member Avatar for facarroll
0
384
Member Avatar for facarroll

Some help would be great here. The following snippets work, but I am unable to figure out how to activate the error message "You did not select a name for editing". Both of the other error codes work but if I input 'given' and 'family' and forget to select the …

Member Avatar for whiteyoh
0
136
Member Avatar for facarroll

My web host recently advised me that my site was being migrated (after the event). I am led to believe that this is in the interests of improving the service. Immediately after the migration I discovered that one php file using date/time functions was stalling and numerous files were showing …

Member Avatar for Dani
0
127
Member Avatar for facarroll

I can read the session.save_path from the remote server at php_info.php. It is set to "no value". I assume that this defaults to /tmp. I understand that in the absence of some other command, this means that session variable files will be saved here. The error message is Warning: session_start() …

Member Avatar for facarroll
0
200
Member Avatar for facarroll

My web host recently migrated to a new server and in the process upgraded to PHP5.4 I have a snippet that was doing timezone conversion, but since the upgrade the script stops dead on a certain line in the snippet, and though a web page is displayed, none of the …

Member Avatar for facarroll
0
499
Member Avatar for facarroll

Since my remote server was recently migrated I am receiving an error message generally which goes like this Warning: session_start() [function.session-start]: open(c:/wampserver/tmp/sess_4bkd7oiqmi7298mhikv09447t6, O_RDWR) failed: No such file or directory (2) in /home/safetyte/public_html/portal/woodwork_sub/ws_member_profile.php on line 2 Lines 1 and 2 are <?php session_start(); This message is coming from the remote server …

Member Avatar for Assembly Guy
1
238
Member Avatar for MasterHacker110

adduser.php First, generate a simple password like this // simple six digit transfer code generation. Security requirement low $len2 = 5; $base2='ABCDEFGHJKMNPQRSTWXZabcdefghjkmnpqrstwxyz2345689'; $max2=strlen($base2)-1; $password=''; mt_srand((double)microtime()*1000000); while (strlen($password)<$len2+1) $password.=$base2{mt_rand(0,$max2)}; You could use a simple form like this in the file <form name = "member" action="adduser.php" method="post" > <input name="given" type="text" value="<?php …

Member Avatar for MasterHacker110
0
192
Member Avatar for Tunnleram

I think I agree with urtrivedi. Does your host server run a timeclock? Perhaps not.

Member Avatar for Tunnleram
1
246
Member Avatar for facarroll

I have the following code which is intended to supply the family and given names of people who are in the users table but not in the quiz table. Can I even do this, and this throws an error anyway? `$query = mysql_query("SELECT quiz.userGroup AS q_userGroup, quiz.userDate, users.userGroup AS u_userGroup, …

Member Avatar for urtrivedi
0
124
Member Avatar for facarroll

I have a javascript popup window which relies on php for it's dynamic content. It is a full-screen window without menu bars etc. It works in Chrome, Firefox and Explorer, but dynamic content is absent in Opera, Netscape and Safari. Where do I start in trying to fix this. I …

0
55
Member Avatar for facarroll

I was browsing a MySql database using phpMyAdmin and I have probably inadverdently changed a setting. I have a field which contains quite large text entries. Before this problem arose the display showed just a few words of the text entry followed by a "...". Now the display shows the …

Member Avatar for simplypixie
0
130
Member Avatar for facarroll

The following script creates a child window check/check.php in Firefox but not in IE or Chrome. I know that I should not be using [I]href = "javascript:void(0);"[/I] but I cannot work out a better solution at this stage. Here is the snippet I'm using. While this code contains PHP I …

Member Avatar for facarroll
0
179
Member Avatar for hhall56
Member Avatar for facarroll
0
201
Member Avatar for mrhankey

You can just call an update at the same time as you call the insert. Something like this? [CODE] mysql_query("INSERT INTO partsused (bin1, bin2, bin3) VALUES ('$thing1','$thing2', '$thing3)"); mysql_query("UPDATE stocklevels SET somebin1 = '$thing1', somebin2 = '$thing2', somebin3 = '$thing3'WHERE id = '$id' AND van = '$van'"); [/CODE]

Member Avatar for facarroll
0
1K
Member Avatar for facarroll

Here is the code I am trying to make work. As you can see, the code as it stands will call a javascript window. All of that works well. I now want to add the lines that are commented out, in order to make the window display conditionally. I have …

Member Avatar for facarroll
0
122
Member Avatar for facarroll

I have the following code. [CODE]$result = mysql_query("SELECT * FROM topics LEFT JOIN quiz ON topics.managerId = quiz.managerId WHERE quiz.userId = '$userId' AND userId= '$userId' AND $egroup = 1 GROUP BY topics.title")or die(mysql_error()); while ($row = mysql_fetch_array($result)){ echo "{$row['quizId']} <br />\n"; echo "{$row['title']} <br />\n"; echo "{$row['passState']} <br />\n"; } …

Member Avatar for Mikav6
0
113
Member Avatar for facarroll

Hi members. I am working on a couple of pages that present me with the same problem. I have set up a log in that puts member data into a session variable. Then the logged in member proceeds to alter some of their own data using a form, and the …

Member Avatar for vaibhav1983
0
14K
Member Avatar for facarroll

I have two related scripts. The first script displays a pass or fail icon depending on whether the value of passState is 1 or 0. If a student failed a quiz the row also displays a link to check.php so that the student can view their quiz attempt in a …

Member Avatar for facarroll
0
131
Member Avatar for facarroll

I am writing a script to register users, but I want to add an incrementing suffix to each duplicated name. The script works and posts to the database. On entering a name for the first time, everything is OK, but when I enter a duplicate name from then on, the …

Member Avatar for diafol
0
120
Member Avatar for facarroll

I have the following code which displays something like this; William Science Monday William Math Tuesday William English Thursday but I want it to display without repeating the name William in the lines after the first line. [CODE] <?php $query = mysql_query("SELECT userId, quizTitle, addDate FROM quiz WHERE managerId='".$userid."' AND …

Member Avatar for facarroll
0
137
Member Avatar for facarroll

I have a problem with passing session variables between folders. I have a working login, and several session variables are created after a successful login. The session works fine until I try to use a script that is located in a different folder or directory. All of my scripts include …

Member Avatar for jkon
0
1K
Member Avatar for slyme

You could try going into phpmyadmin and posting this. "SELECT * FROM products WHERE MATCH(product_name) AGAINST ('SOM')". The output there might make things clearer for you.

Member Avatar for erickci
0
423
Member Avatar for joandong2

I'm not sure what you want to achieve, but if you want the page to remember things, you need to start a session. This will remain current until you then logout. Try putting this at very first line on the page. [CODE] <?php session_start(); ?> [/CODE]

Member Avatar for joandong2
0
181
Member Avatar for facarroll

Hi. I purchased some software recently but have been unable get any helpful product support with the following problem, because it's a coding matter, I guess. The purchased software is for a PayPal subscription management system, and it relies on user verification by way of a username (email address) and …

Member Avatar for facarroll
0
410
Member Avatar for facarroll

I'm totally new to javascript and fairly new to php... so... I have a javascript login form that takes a users email and password, validates through a mysql database and gains entry to a folder that is protected by a htaccess file. This is set up to integrate with a …

0
74
Member Avatar for facarroll

I have two tables 'quiz' and 'topics'. The relevant columns in 'quiz' are 'passState' (which returns 1 or 0 representing true/false) and 'managerId' which is a record number referring to a particular administrator. The relevant columns in 'topics' are 'managerId' and six other columns named 'equip1' .... 'equip6' respectively, which …

Member Avatar for smantscheff
0
147
Member Avatar for facarroll

I'm not sure if this should go in the mysql forum of here, but probably applies to both. I've posted some php to show what's happening with my array and code to create the database below. I can make the JOIN query work, but it does not produce the data …

0
78
Member Avatar for ruwanaru

I just ran this code. The answer was not rounded. (.751) [CODE]<?php $qty = 0.1; $rate = 7.51; $total = $rate * $qty; echo $total; ?>[/CODE]

Member Avatar for ruwanaru
0
120
Member Avatar for facarroll

Hi everyone, I don't know whether this is a PHP or MySql problem, but I think it is the former. The following code queries the database correctly, (and before you ask, there are no duplicate database entries), but the output duplicates every row. e.g., hammer (jpg image) hammer hammer (jpg …

Member Avatar for facarroll
0
98
Member Avatar for facarroll

Can anyone see what is wrong here? This is my first serious attempt at this.[CODE]<?php $query1 = mysql_query(" SELECT topics.url_big, topics.url_small, topics.title, topics.".$egroup.", quiz.passState FROM topics INNER JOIN quiz ON (topics.managerId = quiz.".$managerId.") WHERE topics.".$egroup." = 1 ORDER BY title ASC"); ?>[/CODE]

Member Avatar for facarroll
0
96
Member Avatar for facarroll

I have the following code to upload an image using a form. I have added a button to the form to use to remove the image, but I cannot figure out how to code the button to remove the users image. (memberFiles/$id.".jpg") Here is my code to upload an image. …

Member Avatar for nonshatter
0
2K
Member Avatar for facarroll

Here is my form.It works fine.Because it is a radio button form, only one variable of the six available is chosen. This variable is echoed in the relevant hidden field. Then when the variable from the hidden field is posted, it is supposed to be converted to one of six …

0
91
Member Avatar for facarroll

I know how to do basic forms. What I want to do is to pass a set value as a hidden field to accompany an input text value, and have both values entered in the database record. You can see in the code below that the form asks for names …

Member Avatar for facarroll
0
102
Member Avatar for facarroll

I've got my code working OK in that the correct results are drawn from the database. What I have here in the code is an array consisting of an image, accompanied by its title and thirdly a link to activate a quiz associated with the image. Everything works fine, except …

Member Avatar for facarroll
0
102
Member Avatar for facarroll

I'm trying to display an array of images by using the following code but no images are displayed. The images are in a folder named images. Is there some problem using a variable in a path name? Or am I doing something else that is wrong? The variable $thumbnail refers …

Member Avatar for facarroll
0
1K
Member Avatar for facarroll

I have a script that creates a record in MySql database which allocates certain machines to any or all of six usergroups under the management of a unique manager. It works fine in creating an original record, but I want to be able to use the same form to update …

Member Avatar for ayooshkasmth
0
114
Member Avatar for mmoalem

It's a bit difficult to guess what you are trying to do, but it actually sounds a little like the post I've just made a few minutes ago "Form not posting to database". My form is a series of checkboxes in a column that are cross referenced to radio buttons …

Member Avatar for mmoalem
0
129
Member Avatar for facarroll

Hi. I'm no expert here, and I need some help. This form does not update the database. I know it is accessing the database because the checkbox and radio buttons variables are good, but there is no result posted. Can anyone tell me what is wrong here. [code=php]<?php session_start(); // …

Member Avatar for facarroll
0
139

The End.