Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
9
Posts with Upvotes
7
Upvoting Members
9
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
7 Commented Posts
0 Endorsements
Ranked #1K
~19.5K People Reached
About Me

Senior PHP/Mysql developer, senior CSS, JavaScript - jQuery and AJAX developer

Interests
New media, movies, swimming, going out
Favorite Tags
Member Avatar for aniltc

hi How can we highlite(selecting) a search key. suppose i want to search php from database.so i am displaying a paragraph from the database.I want php to be highlited.How can i do this please help me Thanks

Member Avatar for kodegeek
0
221
Member Avatar for BigFormat

Hi all, I'd like to filter an input string with a list of commas separated numeric ids to understand if it matches the pattern (only digits and commas allowed, i.e. "112,5,16,4578,ecc"). I'm trying to perform a regular expression match using preg_match. [code=PHP] $ids_list = '112,5,16,4578'; if (preg_match('/[0-9,]*/', $ids_list)) echo'OK!'; else …

Member Avatar for BigFormat
0
161
Member Avatar for computerfox

Okay, so I'm not sure why this is happening, but I have a table full of data and I got the edit link working for the top of the stack, but when I want to edit another entry, it keeps pulling in the info from the top ID. Is this …

Member Avatar for computerfox
0
120
Member Avatar for andydeans

hi, i have been trying to write a query which will return all clients and the related tables so that i can then allow the users to filter in a php website. at moment i tried this but returned no results even though there are records: [CODE]SELECT * FROM clients …

Member Avatar for johny_d
0
104
Member Avatar for frugalfreeloade

Hi, I've been searching for hours for an answer to this. I have a coupon saving website and I'm trying to allow people to print off a shopping list by checking checkboxes that once submitted will send you to a basic white page with just those item selected displayed so …

Member Avatar for metalix
0
203
Member Avatar for sallecpt

Hey guys. First of all, its been 2 days, and already 2:30am in the morning. I've eaten a steel fork, jumped over the moon, broke an arm, and cant get it to work. Will somebody please assist me in this; The end result sound simple, and maybe it is, but …

Member Avatar for sallecpt
0
151
Member Avatar for dan_ord

Hi everyone, having a real headache over arrays at the moment. Had a search through the forums but can't find what im after so i'll begin here. I'm in the process of setting up a shopping cart. I'm pretty much there with it all, however there is one thing which …

Member Avatar for NettSite
0
71
Member Avatar for dragos13

I have an array named &data. I want to create a new array from $data,from x to y position.I tried to make it with for but I don't know how.Pls help.Tnx while($info1=mysql_fetch_assoc($x)) { $data[]= $info1['umiditate']; } for($i=3 ;$i<=5 ;$i++) { $data2=$data[$i]; }

Member Avatar for johny_d
0
58
Member Avatar for muralibobby2015

hello... i have 6 tables in database. now i am deleting product in product table. then how to delete all rows which is in another tables on this product id in single step.

Member Avatar for johny_d
0
91
Member Avatar for cmhampton

Hi all, I'm helping a friend redo his database queries and have run into something that I need some advice on. Let me first say that I am not a PHP developer, so please bear with me. I have two queries that I can merge together, but I will need …

Member Avatar for cmhampton
0
114
Member Avatar for Carrots

Hi, I was wondering if anyone can see why the substr_replace() function isn't replacing the 'XXXXX' with the random integer I am creating in the script below: [code=php] <?php $password = rand(12345,98765); $stringtoparse = 'Your new password is XXXXX'; substr_replace($stringtoparse,$password,18); echo $stringtoparse; ?> [/code] When I run this, I still …

Member Avatar for cwarn23
0
98
Member Avatar for ss.jatinmehta

I have one join query with 3 tables, which takes lot's of time to execute. I need to reduce execution time i.e., optimize it [code] QUERY: SELECT SQL_CALC_FOUND_ROWS p.*, FLOOR(p.prodratingtotal/p.prodnumratings) AS prodavgrating, 0 AS prodgroupdiscount, pi.* , (IF(p.prodname='gold', 10000, 0) + IF(p.prodcode='gold', 10000, 0) + ((MATCH (ps.prodname) AGAINST ('gold')) * …

Member Avatar for rch1231
0
138
Member Avatar for dragos13

<?php $link=mysql_connect("localhost", "root","parola") or die("Could not connect: " . mysql_error()); mysql_select_db('energiesolara',$link) or die ('Can't use energiesolaradb: ' . mysql_error()); $x=mysql_query("SELECT umiditate FROM parametrii"); while($info=mysql_fetch_array($x)) { $comma_separated=implode(",",$info); } print "$comma_separated"; ?> I want that $comma_separated to store all the elements.But when I print that there is only one element which is …

Member Avatar for johny_d
0
93
Member Avatar for x86phre3x

Hi, I am in the middle of developing a web application (customer DB) and currently attempting to create a module to update the number of member registered under 1 agent. I have 2 table, 1 is 'users' and another 1 is 'dealers'. The 'users' table contains some normal user credential …

Member Avatar for johny_d
0
128
Member Avatar for dragos13

[CODE]<?php $link=mysql_connect("localhost", "root","parola") or die("Could not connect: " . mysql_error()); print ("Connected successfully");print "</br>"; mysql_select_db('energiesolara',$link) or die ('Can't use energiesolaradb: ' . mysql_error()); $x=mysql_query("SELECT umiditate FROM parametrii"); $y=mysql_query("SELECT temperatura FROM parametrii"); $info1 = mysql_fetch_array($x); $info2 = mysql_fetch_array($y); $xi=array($info1['umiditate']); $yi=array($info2['temperatura']); include('phpgraphlib.php'); $graph=new PHPGraphLib(500,280); $graph->addData($xi,$yi); $graph->setTitle('Grafic'); $graph->setTitleLocation('left'); $graph->setLegend(true); $graph->setLegendTitle('Module-1', 'Module-2'); $graph->setGradient('green', 'olive'); …

Member Avatar for metalix
0
142
Member Avatar for Conielo

Hi, I can't solve this problem: I have a query which fetches the contents of the page meta tags from a database. It works fine when I have the query on page but when I turn it into a function (which is placed in my functions file) and call it …

Member Avatar for johny_d
0
176
Member Avatar for Mestika

Hi everyone, I’m having some difficulties with a query which purpose is to give users with more than one thread (called CS) in current year a 5% point “raise”. My relational schema looks like this: Thread = ([B]threadid[/B], threadname, threadLocation) threadoffering = (threadid, season, year, user) user = ([B]name[/B], points) …

Member Avatar for drjohn
0
339
Member Avatar for dudegio

Hello everyone! Im new to the language Php and i need your help. Please help me on how to generate a text document or an *.xls file using Php. Data to be generated are taken from the database. Thanks and hoping for your response.

Member Avatar for candlelight
0
118
Member Avatar for rajeesh_rsn

hi i had a database table and one of its column is filled with hobbies of the users. ( eg: stampcollection, fishing, photography ). How to do a search in this column. I am using php. If visitor search by any hobby then need to show users in database who …

Member Avatar for mwasif
0
112
Member Avatar for Syakoban

I understand how to use the basic include function in a .php page so that repetitive content (like a menu) can be coded in a separate file and then dynamically included in multiple pages. But I don't get how to use it so that a URL in a page can …

Member Avatar for aformoftruth
0
325
Member Avatar for ned69

Hi Guys I have two tables I'm trying to pull information from. In the end I want to be able to display a username and a school name which are contained in 2 separate tables but linked by the school id number. The problem is that the 'members' table which …

Member Avatar for ned69
0
107
Member Avatar for maninweb

Hello together... hope someone can help me:-) I want to to run a php file every ten seconds on serverside, how can I do this? CronJobs are not really working; Server = Apache, PHP 4 or 5. Greetings & Thanks

Member Avatar for jmag
0
7K
Member Avatar for djwakko18

I have this code and when i try run it i got a menssage"PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\bla bla bla.......... on line 15 i will thankfull if anybody can help me ------------ [code=php]<?php session_start(); if ($userid && $password) { // si …

Member Avatar for johny_d
0
117
Member Avatar for Pro2000

Hi guys, I wrote: [CODE] <?php $WACnt=33; while($WACnt>=0) { require("Wordsarray.php"); $enn=preg_replace("/".$normal[$WACnt]."/i",$tidied[$WACnt],$enn); $WACnt--; } ?> [/CODE] The browser said: [B][QUOTE][B]Warning[/B]: Unknown modifier 'g' in [B]e:\appserv\www\chat\chat\Rooms_Func.php[/B] on line [B]223[/B] [B]Warning[/B]: Compilation failed: nothing to repeat at offset 0 in [B]e:\appserv\www\chat\chat\Rooms_Func.php[/B] on line [B]223[/B] [B]Warning[/B]: Unknown modifier 'b' in [B]e:\appserv\www\chat\chat\Rooms_Func.php[/B] on line [B]223[/B] …

Member Avatar for Pro2000
0
184
Member Avatar for jtmcgee

[code=php] if( $rand_num <= $chance ) { //$item_id = mysql_query("SELECT `item` FROM `creatures` WHERE id = '$id_creature'"); $foo =& creature_stats( item, $id_creature ); $item_query = mysql_query("SELECT * FROM items WHERE id = '$foo'") or ('$item_query'); $item = mysql_fetch_array($item_query); echo"You got an ".$item."!"; } [/code] Creature Stats Function: [code=php] function &creature_stats($what_stat, …

Member Avatar for somedude3488
0
159
Member Avatar for agrothe

Hey, I've taken over a php based website from another developer (ugh!)... The website uses two include files to display ads down both sides of the page. Now the client wants these ads to display in Random positions.... So, Its easy enough to take the ad text and place it …

Member Avatar for johny_d
0
119
Member Avatar for trs21219

i have my url structure rewrite from index.php?act=games&task=play to mysite.com/games/play.php but when i try to add a $_GET value to the end of the url it doesnt work. i want when a user clicks a game for it to be like mysite.com/games/play.php?game=534. but when i call the $_GET['game'] it does …

Member Avatar for johny_d
0
157
Member Avatar for binoj_daniel

Hi Experts, I want to know what is the best screen resolution for a website. My website is a technical resource portal. Based on the best pratices please suggest what to follow. Is 1024 x 768 a standard now? Right i have a free flow CSS but it is not …

Member Avatar for johny_d
0
81
Member Avatar for Mosqwik

Hi, Something that would be really useful for a new project im working on would be to have automated browser titles using some php code in the <title> tags. The only way I can think of doing this is by having the php code read the url im using for …

Member Avatar for johny_d
0
66
Member Avatar for pbpyrojust

I am using <?php include ('/php/header.php'); ?> in my php index file. Everything shows up in Dreamweaver, but as soon as it hits the web server and I go to access it absolutely nothing shows up. All I get is a blank page with no source code. HELP!

Member Avatar for johny_d
0
161