Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
73% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~8K People Reached
Favorite Forums
Favorite Tags
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
372
Member Avatar for genieuk

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** = …

Member Avatar for genieuk
0
748
Member Avatar for genieuk

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 …

Member Avatar for pritaeas
0
273
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
172
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
119
Member Avatar for genieuk

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 …

Member Avatar for almostbob
0
155
Member Avatar for genieuk

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%' …

Member Avatar for Atli
0
240
Member Avatar for genieuk

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. …

Member Avatar for genieuk
0
163
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
125
Member Avatar for genieuk

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 …

Member Avatar for Kruptein
0
105
Member Avatar for genieuk

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 …

Member Avatar for almostbob
0
235
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
129
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
147
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
240
Member Avatar for genieuk

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 …

Member Avatar for CFROG
0
74
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
60
Member Avatar for genieuk

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"); // …

Member Avatar for Atli
0
119
Member Avatar for genieuk

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 = …

Member Avatar for genieuk
0
157
Member Avatar for genieuk

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 …

Member Avatar for rahul.anand77
0
125
Member Avatar for genieuk

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 …

Member Avatar for itsjareds
0
96
Member Avatar for genieuk

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 …

Member Avatar for MidiMagic
0
131
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
115
Member Avatar for genieuk

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 …

Member Avatar for diafol
0
89
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
105
Member Avatar for genieuk

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 …

Member Avatar for ShawnCplus
0
123
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
118
Member Avatar for genieuk

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 …

Member Avatar for affnetguru
0
135
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
2K
Member Avatar for genieuk

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 …

Member Avatar for itisnot_me
0
118
Member Avatar for genieuk

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 …

Member Avatar for genieuk
0
198