- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
38 Posted Topics
Hi, I wrote some code below, at the moment i'm testing so there's no database queries in the code but before i do that i'm hoping someone can help. The code below where it says `if(filesize($filename) != 0)` always goes to `else` even though the file is not 0 bytes … | |
Hi, Not done any programming for a few years so am somewhat rusty again. I have two tables **users** table and **users_profiles** table. I want to update **users_profiles** table on the condition that **user_uid** matches on both tables (**users.user_uid** and **users_profiles.user_uid**) and where **users.user_login ** = 'johndoe' and **users.user_uid** = … | |
Hi, Me again... Just wanted to know, i have this piece of code to enter the data from a registration form of mine into the user db. I want to use the mysql_real_escape_string to help stop those evil people who enjoys hacking from hacking my DB $query = "INSERT INTO … | |
Hi, I just started a free trial with a new webhost as my current one is useless. I have always had my website working on the old webhost fine. I have a folder called sessions outside the public_html folder so it cannot be accessed in a browser and not accessed … | |
Hi, I wonder if someone can advise. My website has been working great ever since i first launched it. I made a script months ago to notify me of errors like 404, 500 etc and so on and it works perfectly. Two days ago someone accessed my website and they … | |
Hi, I wanted to ask professional members who has built websites in the past wheter you include all your include files in the <head></head> section of your site. I split my design in two header-inc.php and footer-inc.php, obviously the <head></head> section will be in header-inc.php. Reason is most of my … | |
Hello, I was going to post the full script but don't think it will ne needed. Basically i have this query: [CODE]// query db $query = mysql_query("SELECT * FROM `userinformation` WHERE `username` LIKE '%$search%' OR `email` LIKE '%$search%' OR `id` LIKE '%$search%' OR `first_name` LIKE '%$search%' OR `last_name` LIKE '%$search%' … | |
Hello, I have 3 text boxes that users can enter there AIM, YIM nickname and MSN email. Once submittd it sends and stores in MySQL db. I will use mysql_real_escape_string() of course but am not sure what is the best way to ensure no other mailicious code has been entered. … | |
Hi everyone, I have a drop menu as below and when submitted it sends either no value, male or female to the database. [CODE]<select id="gender" name="gender"> <option selected="selected" value=""/> </option> <option value="Male">Male</option> <option value="Female">Female</option> </select>[/CODE] Now when i go back to the page i want it to show the value … | |
Hi, I have the following regex pattern. I don't think there is anything wrong with it. It seems to work when i test but if someone sees anything wrong with it please feel free to tell me. I don't know Regex but managed to put a username validator together as … | |
Hi, I have a sitemap and have decided to create an automated sitemap. I just wanted to ask would the way i am going to do it be ok. I was going to create a table let say called `sitemap` have a column in the table called `url`. Basically i … | |
Hi, My site uses sessions and for example on login a random token as a hidden field in the form is generated and added to the session. As i am on shared hosting i set my own session path outside root directory and if for example session is tampered in … | |
Hi, I been using a function for past few months that refreshes or redirects a user after xx time, for example after logging in etc. It workes fine in FireFox but notice that in IE7/IE8 and Google Chrome it does not redirect. I checked in IE and it is enabled … | |
Hi, I hope someone can help me. My site been using cookies and i have decided to scrap cookies after finding to many security holes which i myself was able to hack in testing. I have looked online and found nothing that is want i am after even my php … | |
Hello everyone again, When a user logs in a cookie is set on the users computer called genieuk_logged_session The value in the cookie is a random id created using a random key that the script creates, if i can i need to compare the value of randomin id in the … | |
Hi, Can someone tell me if i can use the below query. When i click submit button SQL says: [QUOTE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE username = 'genieuk'' at line … | |
Hi, Ok.. i have some pages on my site that has a link like [code=text]<A HREF="<?php $websiteaddress ?>/webbuilder/downloads/download.php?filename=age_verification_popup.zip">Download</A>[/code] if you look carefully you will see using get in my below script i get the filename in this example [b]age_verification_popup.zip[/b] This is then sent to this script. [CODE]<?php @include ("/home/sites/genieuk.co.cc/public_html/includes/global.php"); // … | |
Hi, I built a comments system, basically the comments appear underneath the form once submitted and page is refreshed, everything works like it should. I have this piece of code below, what i am having difficulty in is first time it worked then it no longer works. [CODE]<?php $bannedwordquery = … | |
Hi, me again, I have a textbox that users can enter a url of there website. I have default value at http:// so when page loads the text box alreay displays http:// I am not sure what i do in PHP to check to make sure that the url starts … | |
Hi, I basically have some links on a sidebar that loads some demos i made of mine in an iframe. I have one problem. As these links are on a page that does not have the iframe i need to somehow tell it to first load the iframe page. Problem … | |
Hi, I basically have user profile pages. The text box people can of course type things, like about me etc. i am using css and not sure what i do to correct the problem. If a user for example type text it auto goes on next line when they reach … | |
Hi, I am not sure what i am doing wrong. I got my code (below) basically it is to resend user activation email if they for some reason or other did not get it first time etc. It sends the email and everything etc... what i need to do it … | |
Hi, Hoping someone can help me. I done a search on Google but must not be using correct search term as cannot find anything. Basically how can i make sure a page is only accessed via a certain link? I have a page that user clicks on that opens a … ![]() | |
Hi, Don't know why but i always seem to mess my, mysql querys up somewhere, usually silly things like quotes etc. The code below, i have a problem. Basically when user gets an email they click the link and they are taken to a page where they can change there … | |
Hi, As you can probably tell by now my knoweldge of MySQL is not very good. I basically have two tables. One called [B]userinformation[/B] and another called [B]profiles[/B] My userinformation table is like this: [CODE]CREATE TABLE `userinformation` ( `id` int(11) NOT NULL auto_increment, `status` varchar(20) NOT NULL, `username` varchar(20) NOT … | |
Hi, I am trying to display the users email address when they login to there account on there profile page.. I have successfully done this for there username as i use $_COOKIE to display the users name with the DB. Problem is i am not sure how to do it … | |
Hi, Somebody please help me, i am going mad out of my mind, for the past 4 hours or so some silly little problem has ratteled my brain and i cannot fix it. Basically, user registers on site, they get there activation email, click on link and the below script … | |
Hi, Thanks for looking. I have a contact form and everything else is checked against validation apart from the textarea. For some reason i cannot get textarea validation to work using php. I have tried: [CODE] if (strlen($_POST['query'] == 0 ) ) { echo "<p>You have not entered anything in … | |
Hi, I have built a newsletter subscription script from scratch but cannot go any further. I will be creating an admin panel but not sure how i go about actually using something such as a WYSIWYG editor to send out the newsletter to subscribers. Can anyone recommend a free editor … | |
Hi, could someone tell me what the correct syntax is to check is a user exists in my database. I got a login page and when user enters username and password i need it to check if they exist obviously in database and if so re-direct them to the page … | |
Hello, I am having some trouble with my registration form. For some reason when i launch my registration for wheter it be on localhost or webhost nothing is displaying on the page. I get no errors or anything and i cannot detect what is wrong with the script i made. … | |
Hi, I wonder if someone could help me please. I basically made a registration form and need to insert the data into the database. I am not sure how i use the MySQL functions to do this, I created a db connection file and included it on registration page but … | |
Hi, I wanted to know what you PHP programmers recommend. I am new to PHP and am doing pretty good. I gone to w3schools and tzig but found they only explained so much and not much indepth. I been watching videos online that has made a huge difference in my … | |
Hi, If you see my other post about writing data to a file i am not doing that now i am using a database instead. Anyway .... Before i start i would like to say i am very very new to PHP and no very very little about MySQL writing. … | |
Hi, I been having allot of help on here certainly from 'Josh Connerty', who has done a fantastic job of helping me. I am learning php and am enjoying it. So before i start a big thanks to Josh Connerty and this forum existing as it is a pleasure to … | |
Hi, I got two files a php file to process and record data to a text file Now when a visitor visits a page on my website.... it records some information about them and it is sent to process.php and then process.php then records the data in a .txt file. … | |
Hi, Does anyone have a simple script that i could put on my webpages that when a user clicks on a link to download a file it displays something like (File Downloaded XX times) on the webpage. I found many scripts with admin interface etc, but i just want it … | |
Hi, I'm new here, Does someone have a script that asks user to enter there day/month/year and if over xx minimum age they are taken to website, if under age they are told they are under age and redirected to a link i specify. Possibly with a function to choose … |
The End.