- Upvotes Received
- 4
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- Programming
- PC Specs
- OS: Windows Favorite Browser: FireFox Favorite Processor: Intel
91 Posted Topics
| |
Re: change this for line 49 [CODE] $name_check = mysql_query("SELECT nokp FROM pengguna WHERE nokp = '".$_POST['idname']."'") or die(mysql_error()); [/CODE] | |
Re: replace line 2 [CODE]echo "<form action='index.php?insertion_type=".$insertion_type."&' method='get'>";[/CODE] for this [CODE]echo "<form action=\"index.php?insertion_type=".$insertion_type."&\" method=\"get\">"; [/CODE] | |
Re: [CODE]$db_host = //host; $db_user = //username; $db_pass = //password; $db_database = //database;[/CODE] just to double check you got values instead of //host, and if so you have closed all your apostrophes and speech marks? ![]() | |
This is a falling snow snippet Its very light grey its really meant for like dark backgrounds for best effect but its ok on white. its a slightly grey snow Just place the code in between tags and it should work Its too complicated to edit color unless you have … | |
the code is very simple and all it does is get the ip of a member or guest and logs it in a text file. if the log.html doesn't exist it will auto create one for you, as long as the path is correct. Also make sure you set proper … ![]() | |
Re: Really awesome. Thank You .:) | |
This is a very simple bbcode example to use on a forum or your pages. Add this to a function page and make sure the function is required on the page you want to on. ENJOY!! :D | |
Re: replace this with your line [CODE]mysql_query("UPDATE persons SET FirstName ='$ud_fname', LastName ='$ud_lname', Type ='$ud_type', DaysUsed ='$ud_used', StartDate ='$ud_sdate', EndDate ='$ud_edate' WHERE ID = '$ud_id'"); [/CODE] you had a "," between the EndDate ='$ud_edate' and WHERE ID = '$ud_id'" | |
Re: on line 35 you can order the mysql query by date which may work. try this [CODE]$sql = mysql_query("select * from partsorder where $type like '%$term%' ORDER BY date DESC");[/CODE] | |
Re: not the funniest just my favorite When NASA first started sending up astronauts, they quickly discovered that ballpoint pens would not work in zero gravity. To combat the problem, NASA scientists spent a decade and $12 billion to develop a pen that writes in zero gravity, upside down, underwater, on … | |
Re: This is so awesome. Makes searching for porn faster. | |
Re: yes i agree with GMmaxim7 C++ is a very language to lean and know. it has so much real life applications. From gaming, hardware/software etc etc. very useful. | |
This will count number of page views in a session. Simple, to add on the page just add the code on the top of the page and make sure it is before any html. | |
Hello i got a text based game running atm and i want to develop an app for it on android. I have created the interface and the login pages and all the pages i need . i have even created a database for it. but i want to link my … | |
Re: if i were to choose i would choose Ajax+php mainly because of it usage and there are every few limitations. i have used both on a project and i have to say i would Ajax and php is a lot less simple. | |
Re: [QUOTE=david osborn;1322308]go for dell inspiron 1464. i think your currency is rupees. am i right? also u need to increase your budget a bit :)[/QUOTE] yes increasing your budget will get you a better system. | |
Re: a simple free version you can use is microsoft front page and i think there is a free version of it available on the web. It is user friendly to new designers. You can also try a free version of Adobe dreamwwaver as a 30 day trail and see how … | |
Re: You could try this. the javascript command is added to the submit [CODE]<!--Delete Tool--> <div valign="bottom"><form action="?deletetool" method="post"> <input type="hidden" name="id" value="<?php echo $tools['id']; ?>"/> <br><div><input type="submit" value="Delete" onClick="return confirm('Are you sure you want to delete?')"></div> </form></div></td> </table>[/CODE] | |
Re: hmmm what is the { at the end of the $act=mysql_real_escape_string($act); | |
Re: you can create a different session for demo2. On welcome of demo2 you can then do a check to see if the session belongs to demo 1 or 2 | |
Re: hey, please show us some codes you have already one. Explain more on your problem, and give examples to help us understand your problem. so we can help you | |
Re: yes it is possilbe check this site. [url]http://www.webreference.com/authoring/languages/xml/rss/custom_feeds/[/url] It explain how to make custom feeds which might be helpful | |
Re: show us you php code where the data is selected from your database | |
| |
Re: can you post the full page codes or you could try this [CODE]try { $userTable = 'u'.$userID; /*** set the error mode ***/ $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "CREATE TABLE `".$userTable."` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `my_themes` INT NOT NULL, `selected_theme` INT NOT NULL, ) ENGINE = MyISAM;"; … | |
Re: hey comhacker, could you explain more about your question and tell us what you trying to archive. Try showing us some code from where the problem is and show us any errors you are getting. Giving us more information will help us answer your question | |
Re: to get this done right you need to learn a bit of mysql, and learn how to call mysql query. I suggest w3school. We can give you the code but you will not be learning anything, So i suggest you learn a bit more of php and mysql and start … | |
Re: $sql = "SELECT WhatYouWant FROM NameOfTable WHERE id='Something you are searching for'"; $query = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_object($query); $id = htmlspecialchars($row->id); echo "$id"; | |
Re: in between the strong tags you have $use dont you mean $user why dont you try [CODE]<? if(usernameTaken($_POST['user'])){ $use = $_POST['user']; }else{ echo"Sorry, the username: <strong>$user</strong> is already taken, please pick another one."; } ?>[/CODE] | |
Re: hmmm strip_tags($cntry); should have worked. you can try using a function i found on the PHP Manuel [URL="http://php.net/manual/en/function.strip-tags.php"]LINK[/URL] [CODE]<?php function my_strip_tags($str) { $strs=explode('<',$str); $res=$strs[0]; for($i=1;$i<count($strs);$i++) { if(!strpos($strs[$i],'>')) $res = $res.'<'.$strs[$i]; else $res = $res.'<'.$strs[$i]; } return strip_tags($res); } ?>[/CODE] hopes that helps | |
Re: Try this [CODE]<?php $Server = "localhost"; $User = "yukon"; $Pass = "yukon"; $DB = "Tools"; //connection to the database $dbhandle = mssql_connect($Server, $User, $Pass) or die("Couldn't connect to SQL Server on $Server"); //select a database to work with $selected = mssql_select_db($DB, $dbhandle) or die("Couldn't open database $DB"); ?>[/CODE] | |
Re: you dont need the second echo in the echo you are already running. for example you dont have to do this <? $Dan = "Dan"; echo "Hello <? echo $Dan; ?>"; ?> You can do this instead <? $Dan = "Dan"; echo "Hello $Dan"; ?> also it will help if … | |
Re: i am sorry but i can not understand what you need to retrieve. whats Æ, Ø and Å? ![]() | |
Re: have a good read of this article, it has diagrams and code snippets to help you. Click [URL="http://www.codeproject.com/KB/cs/IntegrationTips.aspx"]here[/URL] | |
Re: it should wait for the zip function to finish, but to be on the safe side you might put a loop check in to make sure that the files are zipped, and not to redirect until the are zipped. | |
Re: try this site for more information. [URL="http://www.phpclasses.org/package/3895-PHP-Grab-contacts-of-email-and-social-networking-sites.html"]Click here[/URL] | |
Re: show some codes of what you have already done, | |
| |
Re: on file one there is a missing ")" on this line [CODE]setcookie('sb_cookie', $username, time()+10000;[/CODE] it should be like this [CODE]setcookie('sb_cookie', $username, time()+10000);[/CODE] | |
Re: ok i am sorry but i can not understand the question. if there is an error what line and what message. | |
Re: instead of trying to save their password y not save their user id like this [CODE]$_SESSION['user_id'] = $row['id'];[/CODE] | |
Re: logging you isn't a form it is a link that direct to a page where the session is destroyed. Put this on and link "Logout" to that page and the session will be destroy [CODE]<? if(isset($_SESSION['user_id'])) { session_unset(); session_destroy(); echo "You have been logged out."; } ?>[/CODE] Changed the 'user_id' … | |
Re: hmmm i think your problem is more css than php | |
Re: you need an image gallery script like this one [URL="http://minishowcase.net/demo/"]LINK[/URL] You can download a copy from [URL="http://minishowcase.net/?download"]( Click here )[/URL] | |
Re: hmm i dont think it is possible to check if an email exist. what are you look to do? |
The End.