- Upvotes Received
- 4
- Posts with Upvotes
- 3
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
28 Posted Topics
Is there more code to this, because your query is correct from what I can see.
On line 13 you added an 'e' to $rs. Your code should be [code] if(mysql_num_rows($rs) > 0) [/code]
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?
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.
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 …
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.
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..
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 …
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 …
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 …
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.
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.
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]
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.
Your error occurred with the used of ". In other words you used " too many times.
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. …
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.
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 …
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 …
Does it only return an empty string when you use numbers or does it return an empty string for all inputs?
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.
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 …
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.
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.
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.
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 …
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.
The End.
theonly