- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
65 Posted Topics
| |
![]() | Re: sorry, didn't get this! i use WAMP5 server (xp, sp2) and i registered with them (myusername.no-ip.biz) now what do i got to do? edit apache config or? anyone pleaase help! |
Re: I upgraded from phpbb 2.0.22 to vbulletin 3.6.8, everything is ok, except the nubmer of posts in the index... Last post = 0 Threads = 0 Posts = 0 but the posts exist inside the forum... somebody tell me how to fix that... | |
| |
I found something here, but I'm not good at javascript, and i don't know which part of the code is the right! I need only for Checkboxes! [CODE]http://www.codingforums.com/showthread.php?t=11165[/CODE] I need something like: [B]onclick="check_if_at_least_one_is_selected()"[/B] :P there is only one <form></form> and all checkboxes are same type... | |
[QUOTE]Database error in vBulletin 3.6.8: Invalid SQL: UPDATE session SET newposts = newposts+1 WHERE NOT ISNULL(newposts); MySQL Error : Unknown column 'newposts' in 'where clause' Error Number : 1054 Date : Saturday, September 22nd 2007 @ 11:19:12 AM Script : [url]http://gjilaniforum.altervista.org/forumi/newthread.php?do=postthread&f=91[/url] Referrer : [url]http://gjilaniforum.altervista.org/forumi/newthread.php?do=newthread&f=91[/url] IP Address : 82.114.72.186 Username : … | |
Re: Here look this post! I think this is what you wan't! It's the function I use to paginate almost everything that is "paginable" :P ;) [url]http://www.daniweb.com/forums/post990635.html#post990635[/url] I hope it helps! | |
# Query_time: 6.081227 Lock_time: 0.000085 Rows_sent: 1 Rows_examined: 1339 SELECT COUNT(id) FROM `article` WHERE `category` = 'shkrime-te-perkthyera' Is there a way to speed it up. Should I index the category column? Or what do you suggest? I use this query to get the number of articles on that category! | |
I know this may be a apache related question, but can anyone help me on this issue... I need help on paginating my script, so the and I want to use [U]search[/U].html for the first page (without page number) [U]search[/U]-[B]2[/B].html for the second page [U]search[/U]-[B]3[/B].html for the third page and … | |
Re: Hi. Can I have the mysql table structure with some sample data? Thanks | |
Re: try replacing: foreach($rss->item as $item) with this: foreach($rss->[B][COLOR="Red"]channel->[/COLOR][/B]item as $item) | |
Is it possible to Copy data from a <input> box the the main windows (the input is opened in a pop-up). I've seen date-time pickers can do that, but can't find the function! | |
Hi guys, can you please suggest me a good class that supports sub-sub-sub categories. I tried a lot of them, none of them seems to fit me! I also tried to modify them for my needs, but the more i try, the worse it gets lol :P If you know … | |
Re: make sure you are pointing the <form action="[B]FILE_NAME.PHP[/B]" to your php file! | |
Re: @xueping: You have to set a mysql connection to you DB... example: $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); then select your DB: mysql_select_db($db_database,$link); | |
Re: 1. You must access from [url]http://localhost/[/url] not from c:/www/ etc... 2. You can change: short_open_tag = Off to short_open_tag = On in you php.ini! and it will be solved! | |
Re: $sql = Select * from `table` WHERE `column`like 'c:/testing/%' [B]LIMIT 2[/B]? Is this what you want to achieve? | |
Re: @LloydFarrell! Why don't you use phpBB? @AUTHOR: Thanks, but looks insecure! Improve it! Also a lot of errors appear! Use error_reporting(E_ALL); when you code! [B]Tip:[/B] [B]Don't use:[/B] [CODE]if($_POST['submit']) { //Code here }[/CODE] [B]Use instead:[/B] [CODE]if(isset($_POST['submit'])) { //Code here }[/CODE] | |
Re: I think he want's it AJAX, onClick="show_2_more_boxes()" the problem is you need someone to write that function :P Cuz i don't understand much of ajax! | |
Re: I know that class very well, I use it in my projects (evolt.org or?) First you need to create the user from the adminpanel provided! Then you use if($session->isAdmin()) the check if the user is logged in & has admin privileges if($session->logged_in) to check if the user is logged in … | |
Re: [COLOR="Blue"]htmlentities()[/COLOR] :D [CODE]http://php.net/manual/en/function.htmlentities.php[/CODE] | |
Re: or [COLOR="Red"][B]dai()[/B][/COLOR] did you mean [COLOR="Red"]die()[/COLOR] or is it your func! | |
this is my table: [CODE]CREATE TABLE IF NOT EXISTS `artikulli` ( `id` int(11) NOT NULL AUTO_INCREMENT, `autori` varchar(100) CHARACTER SET utf8 NOT NULL, `perkthyesi` varchar(100) CHARACTER SET utf8 NOT NULL, `category` varchar(100) CHARACTER SET utf8 NOT NULL, `titulli` varchar(350) CHARACTER SET latin1 NOT NULL, `nen_titulli` varchar(400) CHARACTER SET utf8 NOT … | |
Hi DaniWeb users. I am creating a mp3 shop cart script, and I need a function to create a unique id of multiple items in the cart. for example in cart are these id's: [U]1,6,21,5[/U] base64 would make this: [U]MSw2LDIxLDU= [/U] I need it only alphanumeric as it is ment … | |
Re: Well I'm a starter too, but I did my own cms, and has a lot of features! Depending on what site it is, i can help you: I can help you with the User Authentication/Login System, Admin Panel with User Managment, Comments etc... | |
Re: --> [url="http://php.net/manual/en/function.mysql-real-escape-string.php"]mysql_real_escape_string[/url] --> Use htmlentities() for user submitted data! when you get the id from the url: $id = $_GET["id"]; use this: $id = (int)$_GET["id"]; this is only when the ID is a integer! I would suggest using a php mysql class! | |
Re: [QUOTE]Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\...\functions.php on line 52[/QUOTE] What is the Code in functions.php on line 52? (the whole function if possible) [QUOTE]Fatal error: Call to a member function fetch() on a non-object in C:\xampp\htdocs\...\index.php on line 69[/QUOTE] I think this is caused because you didn't create … | |
Re: I use this in my projects: [url]http://www.evolt.org/node/60384[/url] | |
Re: Add/Replace the files inside your /htdocs/ folder, i think that's the default home directory for Apache | |
Can someone help me to solve this algorithm, I tried our school book but can't understand it. I'm not good at math! Should be simple, but i just can't understand it! [IMG]http://i38.tinypic.com/5wdau.jpg[/IMG] | |
![]() | Re: [B]i think[/B] this has something with .htaccess to do... You must rewrite: RewriteEngine on RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteRule ^picture/([a-zA-Z0-9.,!_-]+)$ avatar.php?id=$1 first get avatar.php?id=1 or avatar.php?id=filename.jpg whatever you use to display it! ![]() |
Re: I use this function to paginate: [code] <?php if(isset($_GET["page"])) { $page = $_GET["page"]; } else { $page = 1; } $totalPages = 1000; function paging($page, $totalPages) { $printPages = 7; //Show only X pages $i = 1; $previous_page = ($page > 1) ? $page - 1 : 1; $next_page = … | |
Re: I use the class on the attachment to backup my CMS! | |
| |
Re: [QUOTE]Thankyou very much for the reply. Can you please explain a little more how can I use count in this perticular case. Please pay attention to the block between the line no 152 and 179. This is the heart of the problem. [/QUOTE] Use: [code] $query = mysql_query("SELECT COUNT(*) FROM … | |
Re: This works for me, this sent me to: [url]http://localhost/bookview.php?[/url][COLOR="Red"]id=[/COLOR][B]4[/B]&[COLOR="Red"]hn=[/COLOR][B]victory[/B] [CODE=php]<?php $row['bookingref'] = "4"; $row['hotelname'] = "victory"; echo '<button type="button" onclick="window.location='bookview.php?id='. $row['bookingref'].'&hn='. $row['hotelname'].''">Book Now</button>' ?>[/CODE] | |
Re: Yep, I can help... I need to know the db fields & where/what you want to use! How you wan't it displayed etc... are you trying to output rss feeds or what? ![]() | |
Re: <?php global $db; [COLOR="Red"]$array = [/COLOR]$db->fetch_array_from_query("Stuff here"); echo "<pre>"; print_r($array); echo "</pre>"; ?> Try this and you will get a "clear view" of the array, and then simply use echo $array["[COLOR="Red"]FIELD_NAME[/COLOR]"] to echo a field! | |
Re: Yep, I'd suggest Wamp to, 1 click installing: [url]http://www.wampserver.com/en/index.php[/url] | |
Re: I would suggest this, i use it everywhere (in my projects): [url]http://www.ricocheting.com/scripts/php_mysql_wrapper.php[/url] | |
Re: Where do you get the e-mails from? Mysql? If yes, then i would suggest: add a "lastsent" field, and each time you send a e-mail, update that field with a time(). So before you sent emails build a if($lastsent > something) { do_send(); } else { walk_away(); } I don't … | |
Re: $productId = (int)$_GET['productId']; and you have the SQL Condition: [QUOTE]WHERE pd_id = $productId[/QUOTE] so lets say $_GET['productId'] = 2; it means $productId = 2; the query: $sql = "UPDATE tbl_product SET cat_id = $catId, [B]....[/B] WHERE pd_id = $productId"; is: $sql = "UPDATE tbl_product SET cat_id = $catId, [B]....[/B] WHERE … | |
Re: I don't know if i understand you, but can you try this: [code]<table id="sampletable"> <tr> <?php foreach ($Report_attrid as $report1): ?> <td id="headerid<?php echo $report1['Report']['attr'][0]['Attribute']['id'];?>"> <?php echo $report1['Report']['attr'][0]['Attribute']['label'];?> </td> <?php endforeach; ?> </tr> <?php foreach ($Report_attrid as $report2): ?> <tr> <?php foreach ($report2['Report']['value'] as $report3): ?> <td> <?php echo $report3['Result']['value'];?> … | |
I need a mysql user authentication class with only 3 user "levels" 1. Admin 2. Registered (or normal) user 3. Guest I tried phpclasses.org but couldn't find a good one (maybe i didn't try hard enough :-O ) So any suggestion is welcome! :) | |
Re: try this: [code] <?php //The button is presed if (isset($_POST["submit"])) { $name = $_POST['name']; $email = $_POST['email']; $question = $_POST['question']; $message = "Message from $name \n Message: $question"; $sent_mail = mail($email,$message,$message); if($sent_mail) { echo "Message sent."; die();//Stop here } else { "Message was NOT Sent."; die(); } } else { … | |
Re: This: [B]urlencode ([COLOR="Red"]['[/COLOR]$logic[COLOR="Red"]'][/COLOR])[/B] Should be: [B]urlencode ($logic)...[/B] Whole code: [code]<?php if (empty($_GET['q'])){ echo "What are you doing?"; } else { /* getting value from the search form creating a new variable*/ $ser = $_GET['q']; /* applying logic and creating a new variable to it*/ $logic = "~resume (filetype:pdf OR filetype:doc … | |
Re: add this after $newUrl: [CODE]echo '<a href="'.$newUrl.'">Link Text Here</a>';[/CODE] or this: [CODE]echo "<a href=\"$newUrl\">Link Text Here</a>";[/CODE] its the same | |
Re: \n will not give you a line break if you use single quotes... Do not use $string = 'Something \n'; instead use$string = "Something \n"; Now \n will be a line break (in html of course... Use nl2br($string) to change \n to <Br /> | |
Re: <?php $ser = $_GET['q']; $logic = "~resume (filetype:pdf OR filetype:doc OR filetype:rtf OR filetype:htm OR filetype:html) skill -jobs -apply -submit -required -wanted -write -sample"; [B][COLOR="Red"]$logic = [/COLOR][/B]str_replace ("skill", "$ser", $logic); echo $logic; ?> Here | |
Re: [ICODE]$array = $_POST; foreach($array as $values => $value) { //echo $value.'<br />'; $value = trim($value); //Everything except the "sumbit" button if($value != "Submit") { $result = mysql_query("INSERT INTO `table` (`field`) VALUES ('$value')", $connection); } }[/ICODE] This is something i Use to get values for multiple checkboxes, and then i query … |
The End.