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

28 Posted Topics

Member Avatar for sexycodette

Is there more code to this, because your query is correct from what I can see.

Member Avatar for Adiel
0
3K
Member Avatar for dwmarketing
Member Avatar for anurag2013
0
243
Member Avatar for dancks

Your first error seems like that the directory you are trying to use does not exists on the server. This can cause error two to happen. As for your third error, did you use header("Location: ...") somewhere else in your code?

Member Avatar for dancks
0
113
Member Avatar for styleest

For future reference please use the code tags. As for your question, following your programming scheme you can create a logoff function which will insert the log off information in the database before any code that will remove the session or whatever you are doing to log the user off.

Member Avatar for styleest
0
102
Member Avatar for roeyy

Without seeing the code that you used to upload the image in the first place, its hard to know if the image is actually upload or not. Some suggestion about dealing with uploading images. First, instead of storing the actually image in the database, I would store them in a …

Member Avatar for theonly
0
108
Member Avatar for gedas

first the getWidth() function will be called, upon return of a value it will be multiple by 100 and then divided by 768. After which it will be converted to an integer, finally it would be rounded via Math.round and assigned to xx.

Member Avatar for gedas
0
169
Member Avatar for Member #857479

My recommendation is getting back to learning more about C. C is a good language to learn about the important things like memory management, pointers, etc..

Member Avatar for Member #857479
0
147
Member Avatar for muncher10
Member Avatar for eat@moes

Since your side menu have links like xxx.php?id=x, all you need to do in your php script to get all information regarding that id is simply [code] $id = $_GET['id']; $result = mysql_query("SELECT * FROM I1L2_Lab WHERE id=$id"); [/code] Assume you have a column in your database that contains the …

Member Avatar for eat@moes
0
146
Member Avatar for ultimatebuster

First off let me say I have a BS in CS. And your friend is correctly CS focus a lot on the theories of computers (i.e. algorithm complexities) which involves quite a bit of math. So if you like computers and math you'll feel at home with CS. From having …

Member Avatar for theonly
0
108
Member Avatar for Wahoo

Ok I'm going to answer your questions base on my experience getting my CS degree. 1. My University offered two different Computer Science degree: a BA (Bachelor in Arts) and BS (Bachelor in Science). The main difference between those two is that the BS degree is under the School of …

Member Avatar for theonly
0
155
Member Avatar for annitaz

Are you even going to try to do this yourself. This is a simple problem. If you are looking for the answer without trying to do this yourself you will be struggling later on in the class.

Member Avatar for apines
0
100
Member Avatar for MoreBloodWine

I don't know if this is the problem or not (i'm sleepy at the moment) but the first thing I noticed is that you used "," and not "." to concatenate.

Member Avatar for MoreBloodWine
0
128
Member Avatar for Brianbc

Ok try this instead of assigning $sid to $_POST['SID'] just leave it as $sid. Then use this code [code] if(mysql_num_rows($check) == 0){ header("Location: whatever.php"); } [/code]

Member Avatar for theonly
0
2K
Member Avatar for Ritzlore

Hi, I will gladly look over your code. Just post it here and either me or someone else will be more than happy to help you out.

Member Avatar for hielo
0
455
Member Avatar for spideyprasad

Your error occurred with the used of ". In other words you used " too many times.

Member Avatar for monica singh
0
143
Member Avatar for alla87

Depending on how much validation you want on your form there are a few ways to do it. For regular text input you can just check if a user really did input something via [code]isset($_POST['variable'])[/code] Thats just one of the way you can validate other ways can be lookup online. …

Member Avatar for tr4ssj2
0
90
Member Avatar for SunnySideUp

Using a separated table for package is my recommendation. Making the table "Package" a dependent (weak entity) of the table company/employer would benefit you in the long haul.

Member Avatar for SunnySideUp
0
116
Member Avatar for ceeandcee

Your problem is not just from the single "=" vs the "==" but logically your if else wont work. Your first if statement "if ($row['PF_wk2'] == $row['PA_wk2'])" will make $tie be equal 1 when the score is 0-0 since php wont even execute the else part of your code. The …

Member Avatar for artech
0
84
Member Avatar for GTRMcLaren

Once the user is registered and in the database, and have logged in you can make a call into the database for that selected user by some sort of requirement. I.E. [code] SELECT * FROM User WHERE userid = '1' [/code] The above code my requirement is that the userid …

Member Avatar for GTRMcLaren
0
2K
Member Avatar for davidjennings

Does it only return an empty string when you use numbers or does it return an empty string for all inputs?

Member Avatar for davidjennings
0
196
Member Avatar for a2usmani

Just to give you a starting point. Chances are you will need to add some columns in your database to accommodate the new fields you want to add to the script.

Member Avatar for theonly
0
154
Member Avatar for davidjennings

First you will need a little of html for the text box [code]<form action = 'current.php' method='post'> Input Movie <input type='text' name='title' /> <input type='submit' name='submit' value='Submit' /> </form>[/code] Then you will use php to determine what the user has entered. [code]<?php if (isset($_POST['submit'])){ $title = $_POST['title']; //Here I'm spliting …

Member Avatar for davidjennings
0
166
Member Avatar for nimuns

What error is it given you. Please be more specific about the error. And it will help people read your code better if you use the code function on this board.

Member Avatar for theonly
0
101
Member Avatar for idskot

Since I have not seen your input form, try echoing the variables after you have assigned them to make sure all of them actually contain a value.

Member Avatar for theonly
0
125
Member Avatar for taimeyj

Its the same way as any file upload with just restrictions about what type are accepted. google w3school and look in the php section. That will probably help you a lot.

Member Avatar for Member #733618
0
165
Member Avatar for theonly

Hi, I was wondering is there a way to password protect a directory. Here is my problem. My site require a login using php and mysql. This works, however I want to protect a certain directory that only lets a user who login previously to download files from it. I …

Member Avatar for chrishea
0
139
Member Avatar for changeco

The syntax for foreign key is: [code]FOREIGN KEY('whatever') REFERENCES 'the table[/code] And I'm not quite sure what you are trying to do with the rest of your questions. Sorry I cannot help any further.

Member Avatar for theonly
0
145

The End.