- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 3
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
14 Posted Topics
Rather then save the image to the datbase, why dont you just store the image in a directory and store the location in the database?
I think you need to rephase your question here and expand on it more. Why do you want to create a database when you check a box? Do you mean connect to the database?
You need to expand your question a bit more Nsam. WP itself is kinda bespoke and everything is managed by the wp-admin section of the website, [url]www.domain.co.uk/wp-admin[/url]
Yep Naphets logic seems right. If you have a decent hosting providing, you could ask them to mount in another hard drive, create your folder structure on here, then create a symlink folder in your httpdocs (or something similar to htdocs, etc.) for your site that points to that new …
why dont you try and combine your queries into 1 query i.e. $query_checkuser = "SELECT * FROM player WHERE player_name = '".$player_name."' and password = '".$password."'"; echo $query_checkuser."<Br />"; //ensure that the sql statement is correct. Then execute query, check if record was found do something, else show error. Also …
and also dont forget to santize your values too. if its a number ensure its a number else default to 0, etc, etc
also dont forget to sanitize your database query, else you could be hit by sql injection. Also as your parameter is not numeric, your query should be something like this [CODE] $query = "select name,title,bio,picture from the_table where per = '".mysql_real_escape_string($_GET['pc'])."'"; [/CODE] [URL="http://php.net/manual/en/function.mysql-real-escape-string.php"]http://php.net/manual/en/function.mysql-real-escape-string.php[/URL]
thinking out loud, whack in a ? mark like so: [CODE]header("Location: ".$_SERVER['PHP_SELF']."?#contact");[/CODE]
you probably could not do that with an alert() function but if you created a modal say for example you could do it on that using the setTimeout() function.
you want to check to see if content is set else readfile another default image [CODE] $content = $row['pic1']; if($content != "") { //show picture from database echo $content; } else { //show generic picture readfile(PATH_TO_GENERIC_IMAGE); } [/CODE]
Use the order by with limit 1. select from tbl where customer = 'x' order by idenitity_column desc limit 1
is result.php actually being called and if so, have you tried to see what your queries look out. Try and echo out the $sql variable. Also are you are looping thru the $qno array, try print_r($qno); to see if there is actually data in there
You got any code examples you can provide?
Now the below set of code will basically display x amount of checkboxes where the user can select more then one box. Now you will notice that in the checkbox code, the name has []. This is a feature that allows the selected values to pass into PHP as an …
The End.