8,966 Posted Topics

Member Avatar for Venom Rush
Member Avatar for veledrom

The mysql_fetch_array function does this. It retrieves the table columns by id AND by name. You can use mysql_fetch_row instead.

Member Avatar for network18
0
95
Member Avatar for Dat0

[code] <html> <head> <style> .wrapper { height:200px; position: relative; border: 1px solid #f00; padding: 1px; } .box1 { height:20px; border: 1px solid #0f0; } .box2 { height: 100%; border: 1px solid #00f; } </style> </head> <body> <div class="wrapper"> <div class="box1">I have fixed height</div> <div class="box2">I don't have a height</div> </div> …

Member Avatar for pritaeas
0
92
Member Avatar for 15389049
Member Avatar for lakodajin
Member Avatar for Aamit
Member Avatar for mschroeder
0
269
Member Avatar for tmv105

The mysql_real_escape_string is intented to be used when you include a variable into an sql statement. You are just displaying the result. That is why you are shown a value with the extra slashes. The stripslashes function is the one that removes the slashes.

Member Avatar for Atli
0
127
Member Avatar for muralibobby2015

It all depends on the size of the scripts and how much they influence the webpage.

Member Avatar for network18
-3
71
Member Avatar for jrosh

[code] SELECT elec.sum(votes) as votes, stat.sum(rating) as rating, votes/rating as percentage FROM elec, stat WHERE YEAR=2009 [/code] Only thing I'm not sure about is the YEAR = 2009 in the where.

Member Avatar for jrosh
0
99
Member Avatar for gunbuster363

[icode]<p.*>(.*)</p>[/icode] [icode]<p.*>[/icode] matches the opening tag [icode](.*)[/icode] is a backreference to the remaining content [icode]</p>[/icode] matches the end tag

Member Avatar for pritaeas
0
147
Member Avatar for Baradaran

Like this ? [code] <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#wrapper").hover( function () { $(this).toggleClass("blue"); }, function () { $(this).toggleClass("blue"); } ); }); </script> <style type="text/css"> #wrapper { background-color: #ccc; } #wrapper.blue { background-color: #ccf; } </style> </head> <body> <div id="wrapper"> <p>date</p> <p>description</p> </div> </body> </html> [/code]

Member Avatar for Baradaran
0
251
Member Avatar for maxicube

I'm guessing url(image/xx) should now be url(../images/xx) since the css has moved to a subfolder.

Member Avatar for pritaeas
0
183
Member Avatar for jaimca

[code] <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("li").each(function(i) { alert($(this).attr("value")); }); }); </script> </head> <body> <ul> <li value="1">item 1</li> <li value="2">item 2</li> <li value="3">item 3</li> </ul> </body> </html> [/code]

Member Avatar for pritaeas
0
52
Member Avatar for web3

Do you need to use a Google map, or is a plain image okay ? You can add polygons to a Google map, but I am unsure if it is possible to add a click to them. A normal image map can do the trick. ([url]http://www.w3schools.com/TAGS/tag_map.asp[/url])

Member Avatar for pritaeas
0
70
Member Avatar for sam023

There may be something in session.php or config.php that adds spaces to the output (or more).

Member Avatar for sam023
0
84
Member Avatar for Samyx

[code] SELECT dname, cno, sectno, avg(grade) as avg_grade FROM enroll GROUP BY dname, sectno, cno ORDER BY avg_grade DESC LIMIT 1 [/code]

Member Avatar for pritaeas
0
56
Member Avatar for mrjoli021

You should remove the include and use simplexml_load_file(). You cannot just include an xml file.

Member Avatar for pritaeas
0
71
Member Avatar for AirGear

No, use phpMyAdmin to export your database to an .sql file. It is a text file containing all queries to recreate your database.

Member Avatar for AirGear
0
134
Member Avatar for mcrawford3911

I don't know if you use jQuery, but I do, and I use this plugin for formatting floats: [url]http://code.google.com/p/jquery-utils/source/browse/trunk/src/jquery.strings.js[/url]

Member Avatar for Troy III
0
86
Member Avatar for sweetangel20
Member Avatar for lifeworks

Something like this: [code] select * from product where id not in (select product_id from discount) [/code]

Member Avatar for lifeworks
0
110
Member Avatar for meko22

Why not let the browser handle it: [code=php] <?php echo '<a href="mailto:' . $row_master_view['email'] . '">' . $row_master_view['email'] . '</a>'; ?> [/code]

Member Avatar for meko22
0
4K
Member Avatar for wonderland

[QUOTE=network18;1036495]call this function on click of the link, from where you download the pdf file.[/QUOTE] This would still allow for downloading without password, just by looking at the page source. Another way would be to put the pdf in a separate folder on the server, and password protect it (using …

Member Avatar for Alxandr
0
1K
Member Avatar for Vineeth K
Member Avatar for baltazar

[QUOTE=baltazar;1014476] According to the Cycle plugin docs, when you hover over a nav element, the cycle plugin gives it a "activeSlide" class and you can supposed to be able to manipulate the style of the element using this class. I have tried to do this but it doesn't work. [/QUOTE] …

Member Avatar for baltazar
0
210
Member Avatar for udayangaS

Something like this will insert a div with class new_item before the element with class class_next [code] $('<div class="new_item"><\/div>').insertBefore('.class_next'); [/code]

Member Avatar for udayangaS
0
98
Member Avatar for janinesamson
Member Avatar for daniyalnawaz

I can answer for Google OAuth: no. If you want to have the user's email address, then you can implement ClientLogin instead. However, I can't imagine that users are willing to supply their google login information to you. Don't know about the other's.

Member Avatar for pritaeas
0
152
Member Avatar for potatosoftware

You can use Google Charts API, or jQuery. My own dashboard consists of Google Charts, filled with data provided by Analytics. I also used a jQuery tagcloud for displaying Analytics keywords and top pages.

Member Avatar for pritaeas
0
103
Member Avatar for jyotidagia

[code=php] $strSQL = "SELECT DISTINCT area FROM hospital where area like '%$strSearchVal' "; [/code]

Member Avatar for pritaeas
0
73
Member Avatar for Folaju

What happens when the query fails, and $result is false, instead of a resource ? My guess is that there is an error in the query or it's not connecting correctly.

Member Avatar for Folaju
0
204
Member Avatar for bratislav

Maybe you can find a solution you like on this page: [url]http://javabyexample.wisdomplug.com/web-programming/47-javascript/85-30-best-jquery-photo-plugins-sliders-slideshow-galleries-and-scrollers.html[/url]

Member Avatar for bratislav
0
91
Member Avatar for whitestream6

[icode]$i=$_GET['day'];[/icode] will cause the notice if you call the page without this parameter. To remove the notice, do this: [icode]$i = isset($GET['day']) ? $_GET['day'] : -1;[/icode]

Member Avatar for pritaeas
0
210
Member Avatar for rouse

You can insert a datefield as '1971-10-28'. The data you are trying to insert does not fit in the date column.

Member Avatar for rouse
0
656
Member Avatar for jrosh

IIRC the older versions of wamp had a default root user (named: root) without a password. Any specific reason you've installed 1.7, and not 2.0 ?

Member Avatar for pritaeas
0
141
Member Avatar for guptavicky
Member Avatar for pritaeas
0
32
Member Avatar for guptavicky
Member Avatar for pritaeas
0
33
Member Avatar for MuffinKun

Check out this first: [url]http://dev.mysql.com/doc/refman/5.1/en/[/url] It contains everything you need to know to get started.

Member Avatar for pritaeas
-3
106
Member Avatar for network18

If you really need to do this this way, then creating a msqli_multi_query could help. That way the server gets all queries at once, and does not need to handle each query separately. [url]http://php.net/manual/en/mysqli.multi-query.php[/url]

Member Avatar for network18
0
705
Member Avatar for catcoffee

$id is not set. Put the following on line 5: [code=php] $id = $_GET['id']; [/code]

Member Avatar for Stefano Mtangoo
0
324
Member Avatar for web3

TO is a reserved word, put backticks around it: [icode]`to`[/icode]

Member Avatar for web3
0
112
Member Avatar for perosf

[code=php] $code = geoip_country_code_by_addr($GeoIPDatabase, $IP); if ($code == "de") { // goto page for germany } [/code]

Member Avatar for diafol
1
1K
Member Avatar for ablitz

It is possible to attach a callback function to the animate() function. This callback is called after the animation is done. Put your post in that function. See [url]http://docs.jquery.com/Effects/animate[/url]

Member Avatar for Luckychap
0
213
Member Avatar for moin123

Do you mean for indexing ? It is possible to add it to Google Webmasters Tools as a sitemap.

Member Avatar for sylstain
0
149
Member Avatar for RunTimeError

The margin-left of the image is causing this. if you add to .main 50px left for the background image it will probably solve your problem.

Member Avatar for RunTimeError
0
176
Member Avatar for MJUGRAN
Member Avatar for m.asfak
-2
160
Member Avatar for peck3277
Member Avatar for revski

For an empty line you can use [icode]Memo1.Lines.Add('')[/icode]. Line 3 and 4 should use this method too, because they are strings. Lines 1 and 2 add a TStrings object (a collection of strings).

Member Avatar for pritaeas
0
416
Member Avatar for Froger93

$members->start(); This requires that $members is an object, created with: $members = new <classname>; Where <classname> is the class you want it to be (probably db).

Member Avatar for Froger93
0
183
Member Avatar for nish123

maybe this will help [url]http://www.macronimous.com/resources/using_stored_procedure_with_mySQL_and_PHP.asp[/url]

Member Avatar for Atli
0
241

The End.