- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
43 Posted Topics
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 … | |
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 … | |
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 … | |
![]() | Re: 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. ![]() |
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 … | |
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 … | |
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 … | |
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 … | |
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() … | |
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 … | |
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 … | |
Re: 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 … | |
Re: I think I agree with urtrivedi. Does your host server run a timeclock? Perhaps not. | |
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, … | |
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 … | |
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 … | |
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 … | |
Re: [CODE]mysql_query(" UPDATE Liberty[/CODE] should be [CODE]$query=(" UPDATE Liberty[/CODE] | |
Re: 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] | |
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 … | |
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"; } … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
Re: 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. | |
Re: 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] | |
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 … | |
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 … | |
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 … | |
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 … | |
Re: 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] | |
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 … | |
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] | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Re: 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 … | |
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(); // … |
The End.