1,730 Posted Topics
Re: Hi, I know you have not asked this but mysql_** is depricating and you are advised to move to mysqli or the PDO. I suggest PDO due to portability and easy. If you know OOP it is extremely easy. you can use this as skeleton to get started with PDO. … | |
Re: PDO makes migration between database nicer. Check this thread for [URL="http://stackoverflow.com/questions/5953882/connecting-to-mssql-using-pdo-through-php-and-linux"]installing driver[/URL] and [URL="http://php.net/manual/en/book.pdo.php"]PHP Manual entry[/URL] | |
![]() | Re: [QUOTE=ardav;1174714]I'm unsure if I understand you correctly, but INSERT allows multiple rows to be added to your DB: [CODE]INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9);[/CODE] This is straight from the MySQL manual. As I see it, you need to pull the $_POST variables from your form, sanitize them with something like mysql_real_escape_string() … |
Re: for PHP I suggest [URL="http://www.w3schools.com/php/default.asp"]W3Schools[/URL]. I also love Videos from Youtube user [URL="http://www.youtube.com/user/phpacademy"]PHPAcademy[/URL] plus my favorite [URL="http://devzone.zend.com/article/627"]PHP 101[/URL] As for JavaScript I think w3Schools is enough! For JQuery just start with their home page. Also Check JQuery From Novice to Ninja from site point. Python have tons of free books … | |
Re: have you checked $stmt = $dbh->query($sql); does not return false? try something like this [CODE=PHP]$stmt = $dbh->query($sql); if(!$stmt){ die("PDO Statement is false!"); }else{ $result = $stmt->fetch(PDO::FETCH_ASSOC); //work with your resultset here }[/CODE] [QUOTE]PDO::query() returns a PDOStatement object, or FALSE on failure. [/QUOTE] | |
Re: [CODE=PHP]<?php $data = mysql_query("SELECT * FROM entries ORDER BY id DESC LIMIT $x, 3") or die(mysql_error()); while($info = mysql_fetch_array( $data )){ echo "<div id='containing'>s <h1>".$info['contents']."</h1> <div id='parent'> <p >".$info['author'] ."</p> </div> </div>"; echo "<a href='$info['contents'].php' >READ MORE</a>"; } ?>[/CODE] | |
Re: this minimal code works for me (DB thing removed, assuming they are not the issue) [CODE]<?php if (isset($_SESSION['uid']) && $_SESSION['uid']) { echo "You are already logged in, if you wish to log out, please <a href=\"./logout.php\">click here</a>!\n"; } else { if (!$_POST['submit']) { ?> <table border=0 cellspacing=3 cellpadding=3> <form method='post' … | |
Re: Since you are beginning, it is better you forget mysql_** and use mysqli or the more portable PDO. I would recommend PDO after reading several threads and try it out. Here is a workig script I did for a thread in this forum: change username password and db to match … | |
Re: if you have good BW [URL="http://www.youtube.com/user/phpacademy#g/c/7C9AFC3942AC8E40"]this youtube channel[/URL] have really good tutorials | |
Re: For simplicity I would add a table with image_id and image name (given that images folder is fixed). Then in users I will add user_image_id which will tell me what avatar user belongs to. The rest is simple! It might not be the best (I rushed to answer with no … | |
Re: Just a note, if you have little knowledge in OOP, PDO is great! | |
Since I decided to reinvert the wheel and write a growing MVC, I though having a template class will be cool. Now I have never done any complex templating apart from simple include kind of templating. Now I wrote this base class and here is my concept is explained below. … | |
Re: If you need a "Don't worry licence" go for wxWidgets! | |
Re: Learn any JS library. It will practically save you alot of pain with javascript ;) | |
Re: [url]http://www.w3schools.com/php/php_sessions.asp[/url] | |
Re: Build and runs fine here: java version "1.6.0_23" OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre10-0ubuntu5) OpenJDK Server VM (build 20.0-b11, mixed mode) So I think it is better you uninstall and re install your jdk. may be it is corrupt | |
Re: [QUOTE=wimmer;1664867]I am a newbie with php and was hoping someone can help me out. I am creating my first dynamic site in php and have gotten stuck. I have one page with 100's of links. I need all these links to load the same page but I need the server … | |
Hi, Is there a way I can access the Exchange Mails/Calendars/Addressbook without .NET or non cross platform thing? I want to access them with C++ but on both MS and Linux I was looking at EWS but it seems it is tied to MS and .NET Please share with me … | |
Re: [QUOTE=Labdabeta;1664967]So how exactly would I write a dll and implementation file for the three blocks of code in my first post in this thread?[/QUOTE] For exporting classes, it is better to create and destroy objects in DLL itself to avoid compiler crash (if main app is compiled differently from DLL(s)). … | |
Re: [QUOTE=thenewbiecoder;1664942][url]https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B3GcG6SeWKK_YzE1NDNmY2MtNTY0Ny00NTVhLTg1M2EtNDc5YzRmOGEzMjA0&hl=en_US[/url] I am completely stuck on this assignment I'm not sure what I should be getting. Can anybody take a look at my code and please help me. I need to complete this assignment asap. thanks Direction: Design, implement, and test a class that represents a phone number. The number … | |
Re: [QUOTE=Inny;1663644]Id like to show total number of users elsewhere on my site, and dont know which part of the following code calls that. I want to have 'some text[number of users here], and counting!' I need to strip out only the minimum code to display the total number within another … | |
Re: [url]http://www.w3schools.com/php/php_file_upload.asp[/url] | |
Re: [QUOTE=peste19;1664072]I am trying to create a python program but i have a question about a certain part of the loop for example i have [CODE] question = input("press 1 or 2") if statement == 1: print "somthing" elif statement == 2: print "abc" [/CODE] ok my question now is for … | |
Re: I have made small demo for you. Play around it to fit your needs. Schema: [CODE=SQL]CREATE TABLE `likesys` ( `id` INT NOT NULL AUTO_INCREMENT, `liked` INT(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE = MyISAM;[/CODE] PHP file [CODE=php] <html> <head> </head> <body> <?php ini_set("display_errors", 1);//error mgt try{ $db = new … | |
![]() | Re: [QUOTE=ardav;1664021]Hi all, Trying to get my head around OOP at long last. Finally got to the beggar on my to-do list.[/QUOTE] Welcome to the world of beasts ;) [QUOTE=ardav;1664021]Just a quick question: I was looking for a way to persist the object across pages, but on further research, I got … |
Re: [QUOTE=ardav;1664003]Tried the Joomla forum?[/QUOTE] Meanwhile s/he can check [url]http://net.tutsplus.com/tutorials/other/creating-your-first-joomla-template/[/url] | |
I have decided when I have free of free time I will be playing around small php editor. I was wondering where I can get a list of keyword for mentioned languages, preferably in csv or like format Thanks! [B]EDIT:[/B] I forgot CSS | |
Re: I did Python long ago so there might be other better method, but fixing index is really bad option. Use object meta data like length of list et al here is a sample code illustrating that! [CODE=python]a = ["Juma", "Roza", "Manenge" ,"Mandawa" "Siku ya Gulio Katerero"] for name in a: … | |
Re: [QUOTE=mike_2000_17;1652561]Here's my opinion on it (compilers, not IDE or build-systems): [B]Portability[/B]: GCC (GNU Compiler Collection) [B]Compilation Speed[/B]: BCB (Borland C++ Builder) [B]Code Optimization[/B]: ICC (Intel Compiler Collection) [B]Usefulness of compilation warnings and errors[/B]: GCC [B]Debugging capabilities[/B]: MSVC 2010 (Microsoft Visual C++ 2010) [B]Strict standard compliance[/B]: Comeau and ICC (using the … | |
Re: [QUOTE=Pytho;1658366] Did you understand? ............English isn't so good - yet.[/QUOTE] Sorry I have no idea yet as to what you want to do! | |
Re: [QUOTE=crazygamer49;1658118]"You should present students with a menu where they can repeatedly choose to practice addition, subtraction, multiplication, and division problems or to exit the program."[/QUOTE] Where is your code? | |
Re: [QUOTE=David 78;1658377]Yes, thank you, of course image not a button as you said ( wrote it late at night ). I know JS doesn't need href. The point was: <a href='index.php?id=$value'> is passing them when you click the image that also calls JS. Ajax calls a php script that deletes … | |
Re: The only help for now is: [url]http://docs.python.org/tutorial/[/url] [url]http://www.mindview.net/Books/Python/ThinkingInPython.html[/url] | |
Re: There is dedicated [URL="http://www.daniweb.com/software-development/python/114"]Python Forum[/URL] Videos? Yes! [URL="http://www.youtube.com/user/thenewboston#g/c/EA1FEF17E1E5C0DA"]Here you go![/URL] | |
Re: [url]http://php.net/manual/en/book.mssql.php[/url] [url]http://www.microsoft.com/download/en/details.aspx?id=8887[/url] [url]http://php.net/manual/en/ref.pdo-dblib.php[/url] | |
Re: [QUOTE=cwarn23;1656117]Just to let you know I have written a tutorial for this and it has been in the holding que for the past 23 hours. At the moment I'm waiting for staff writers to approve it but when it's approved I shall give you the link.[/QUOTE] Welcome back :) | |
Re: just to add on what Ardav have sone, ask password and verify the user is authentic before any update/delete of data! | |
| |
Re: [CODE=PHP]$myquery="SELECT pro_brand FROM product_information ORDER BY pro_id DESC"; $result=mysql_query($myquery); if (!$result) { die("Error:"mysql_error()); } while ($row=mysql_fetch_assoc($result)) { echo $row['pro_brand']; }[/CODE] post any error you find | |
Re: if you have time, site point have an article on [URL="http://www.sitepoint.com/guide-url-rewriting/"]url rewriting [/URL] ![]() | |
Re: Make sure per request you have single connection. When user base increases then start caching pages and if that overruns then think of more servers and sync them! | |
Re: [QUOTE=vrs1155;1650616]friends i am learning visual c++ 6.0.i need to know how to connect the database(oracle).can you tell me how to do??.give me some example.... mfc application connect to oracle database,any example ??? thanking you[/QUOTE] [URL="http://www.google.com/search?client=ubuntu&channel=fs&q=mfc+oracle&ie=utf-8&oe=utf-8"]google google google goooooogle[/URL] | |
Re: No we cannot see what is spit on your computer and hence no help at all ![]() | |
Re: Go to python installation, and find the uninstaller (Or just run installer) and there should be repair option | |
Re: [QUOTE=JasonHippy;1595238] Anyway, to install Gnome 3 via a ppa, this is what I used when I was trying it on Ubuntu 11.04: (official Gnome 3 ppa) sudo add-apt-repository ppa:gnome3-team/gnome3 sudo apt-get update [B][COLOR="Red"]sudo apt-get dist upgrade -f[/COLOR][/B] sudo apt-get install gnome-shell From a fresh install of Ubuntu, I'd recommend sorting … | |
Re: Oh yes, you need to have a valid SSL cerificate which means money! To get an Idea, if you have FF6, checking at url box while visiting SSL sites will give you name of company that provided cerificate So yes, you need to "donate" some $$$ | |
Hi, I know of two curl and libtorrent but I was just doing a study on what library/component/whatever you call it, is famous among download managers. I could not get information on FreeDownloadManager, Flashget, Multiget, DownloadThemAll et al. Would you help me find what libraries do these use, especially for … | |
The End.