1,730 Posted Topics

Member Avatar for aecha

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. …

Member Avatar for Stefano Mtangoo
0
146
Member Avatar for Farhad.idrees

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]

Member Avatar for Stefano Mtangoo
0
277
Member Avatar for skinbug

[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() …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for DarkMonarch

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 …

Member Avatar for Stefano Mtangoo
0
110
Member Avatar for BenzZz

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]

Member Avatar for Stefano Mtangoo
0
321
Member Avatar for aaloo

[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]

Member Avatar for aaloo
-1
333
Member Avatar for luweegee

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' …

Member Avatar for ko ko
0
266
Member Avatar for Rian19

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 …

Member Avatar for cwarn23
0
239
Member Avatar for phfilly

if you have good BW [URL="http://www.youtube.com/user/phpacademy#g/c/7C9AFC3942AC8E40"]this youtube channel[/URL] have really good tutorials

Member Avatar for phfilly
0
171
Member Avatar for DellrocK

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 …

Member Avatar for Stefano Mtangoo
0
168
Member Avatar for Felipevd
Member Avatar for cwarn23
0
222
Member Avatar for Stefano Mtangoo

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. …

Member Avatar for Stefano Mtangoo
0
307
Member Avatar for ChaosKnight11
Member Avatar for Silo45
Member Avatar for Taywin
0
2K
Member Avatar for shg234
Member Avatar for us0343

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

Member Avatar for peter_budo
0
183
Member Avatar for wimmer

[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 …

Member Avatar for wimmer
0
326
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
172
Member Avatar for Labdabeta

[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)). …

Member Avatar for Labdabeta
0
217
Member Avatar for thenewbiecoder

[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 …

Member Avatar for vijayan121
0
220
Member Avatar for Inny

[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 …

Member Avatar for Inny
0
304
Member Avatar for kzip
Member Avatar for Stefano Mtangoo
0
156
Member Avatar for peste19

[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 …

Member Avatar for nalawar
0
83
Member Avatar for Mayank23

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 …

Member Avatar for Stefano Mtangoo
0
141
Member Avatar for diafol

[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 …

Member Avatar for Stefano Mtangoo
0
142
Member Avatar for Amr87

[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]

Member Avatar for Stefano Mtangoo
0
70
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stefano Mtangoo
0
147
Member Avatar for puruharsh

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: …

Member Avatar for Stefano Mtangoo
0
184
Member Avatar for D.M.

[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 …

Member Avatar for pseudorandom21
0
327
Member Avatar for Pytho

[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!

Member Avatar for Pytho
0
182
Member Avatar for crazygamer49

[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?

Member Avatar for TrustyTony
0
94
Member Avatar for David 78

[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 …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for The_Tiger

The only help for now is: [url]http://docs.python.org/tutorial/[/url] [url]http://www.mindview.net/Books/Python/ThinkingInPython.html[/url]

Member Avatar for Stefano Mtangoo
-1
61
Member Avatar for bdubb24

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]

Member Avatar for fonzi
0
440
Member Avatar for Farhad.idrees

[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]

Member Avatar for arajapandi
0
235
Member Avatar for veledrom

[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 :)

Member Avatar for Stefano Mtangoo
2
118
Member Avatar for jemz

just to add on what Ardav have sone, ask password and verify the user is authentic before any update/delete of data!

Member Avatar for jemz
0
256
Member Avatar for IWDesigns
Member Avatar for cdoggg94

[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

Member Avatar for stoopkid
0
273
Member Avatar for Sorcher

if you have time, site point have an article on [URL="http://www.sitepoint.com/guide-url-rewriting/"]url rewriting [/URL]

Member Avatar for diafol
0
87
Member Avatar for aldm

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!

Member Avatar for mschroeder
0
195
Member Avatar for vrs1155

[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]

Member Avatar for Stefano Mtangoo
0
563
Member Avatar for ABUMIN
Member Avatar for diafol
0
73
Member Avatar for darkfury18

Go to python installation, and find the uninstaller (Or just run installer) and there should be repair option

Member Avatar for Stefano Mtangoo
0
231
Member Avatar for rotten69

[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 …

Member Avatar for JasonHippy
0
373
Member Avatar for nikki05

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 $$$

Member Avatar for nikki05
0
204
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
239
Member Avatar for werdna347
Member Avatar for davy_yg
Member Avatar for wlayy999

The End.