Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
4
Posts with Upvotes
3
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #1K
~9K People Reached
Favorite Forums
Favorite Tags

14 Posted Topics

Member Avatar for vijiglad

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?

Member Avatar for diafol
0
708
Member Avatar for achini.thilanka

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?

Member Avatar for phpology
0
220
Member Avatar for nsam

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]

Member Avatar for pzuurveen
0
162
Member Avatar for OsaMasw

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 …

Member Avatar for naphets
0
270
Member Avatar for ms061210

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 …

Member Avatar for homeboy
0
331
Member Avatar for josephbupe

and also dont forget to santize your values too. if its a number ensure its a number else default to 0, etc, etc

Member Avatar for diafol
0
234
Member Avatar for printman55

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]

Member Avatar for phpkiller123
0
557
Member Avatar for Venom Rush

thinking out loud, whack in a ? mark like so: [CODE]header("Location: ".$_SERVER['PHP_SELF']."?#contact");[/CODE]

Member Avatar for Venom Rush
0
2K
Member Avatar for mehran tahir

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.

Member Avatar for jkon
0
297
Member Avatar for ptara1

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]

Member Avatar for ptara1
0
2K
Member Avatar for mbarandao

Use the order by with limit 1. select from tbl where customer = 'x' order by idenitity_column desc limit 1

Member Avatar for phpology
0
83
Member Avatar for mtvaran

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

Member Avatar for mtvaran
0
162
Member Avatar for rmullins
Member Avatar for nukabolhi

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 …

Member Avatar for phpology
0
2K

The End.