39,326 Topics

Member Avatar for
Member Avatar for shailendra_agra

Hi Guys, Anybody tell or give me the code for show and play video in PHP. Reply as soon as possible.....

Member Avatar for vibhaJ
0
87
Member Avatar for niths

hi all, i am having some check boxes in my page. so i dont know the number because it is cuming from data base, so i need a javascript validation for this check boxes because he should check atleast one check box. so can any one please... here is my …

Member Avatar for niths
0
104
Member Avatar for gymangel812

I am doing a database search using php. Everything works rights except when I just press the enter button (not searching anything) or a match is not found. In those two situations, I want a message displaying no items were found. Currently, when I search for nothing by pressing submit, …

Member Avatar for urtrivedi
0
339
Member Avatar for rukshilag

ive been coding the plain old procedural way in php and i want to move that code to object oriented. can i just simply use my currently written php code into a function and then call it? pleas let me know an easy way to make my normal php code …

Member Avatar for jenyroger
0
205
Member Avatar for Nile Hadwards

hello to all, php web hosting is great thing of the any php programmer.so i would like to suggest online php web hosting tips.thank u.

Member Avatar for jenyroger
-4
309
Member Avatar for Odubz

Hello, I have looked over many examples of how to populate a dropdown with rows like [code=php] $sql="SELECT id, thing FROM table"; $result=sqlsrv_query($conn,$sql) or die("Couldn't execut query"); while ($data=sqlsrv_fetch_array($result, SQLSRV_FETCH_ASSOC)){ $id=$row["id"]; $thing=$row["thing"]; $options.="<option value=\"$id\">".$thing "</option>"; } [/code] But i need to populate this list with tables and will need to …

Member Avatar for jenyroger
0
2K
Member Avatar for tjcares

I I am trying to make a site checker for my traffic exchange Now i was able to get this to work [CODE] SELECT*FROM vtp_urls where ID=326 [/CODE] and it puled up the right file and everything so I search the web for a way to display the url so …

Member Avatar for scaiferw
0
157
Member Avatar for vho123

Having trouble with this little DOM PHP task. When i parse it from unix with the command -> php DOMSearch.php "Brookside" it prints out Channel 5 Start : 2001-07-0521:55:00 However, it should print out all channels and start times from the "Brookside" series like below: Channel 4 Start : 2001-07-05T20:00:00 …

Member Avatar for MVied
0
127
Member Avatar for vista

Hi there. Okay heres the scenario. I have 2 tables "Logins" and "User_Details" What I want to do is write a PHP query that whenever a new user is created, that is manually entered into "User_details" table using a form, the next thing that should happen is that it should …

Member Avatar for vista
0
146
Member Avatar for json101

Is there a better way to write this if statement? Option1: [CODE]if (isset($_GET['item']) || isset($_POST['item'])){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE] Option2: [CODE]if ('item' != $_GET['news'] || 'item' != $_GET['events'] || 'item' != $_GET['download']){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE]

Member Avatar for json101
0
118
Member Avatar for samsons17

Hi.. I'm not sure whats the array_merge doing here in this code? I've read the mysql manual,but i just not sure what it is really means,so hope somebody could clear it out for me. By the way this is the code : [CODE] if (isset($_POST['submit'])) { // Form has been …

Member Avatar for samsons17
0
347
Member Avatar for Monster Killer

What i want may seem simple but i have been at it for hours trying to get it to work and searching the internet for answers. What i have been trying, and failing at doing, is taking X minuets from a time selected from a database (which is in the …

Member Avatar for Monster Killer
0
101
Member Avatar for kirtan_thakkar

I have a database some short notes in a .txt format file and i have created a php webpage that includes a txt file in html format. Now I have to use "Next" and "Preview" links for that .txt format files. Can anyone suggest me the php or JavaScript code …

0
69
Member Avatar for fizanos

I need your help!!!. I need to query a table in my database that has record of goods sold. I want the query to detect a particular product and also calculate the quantity sold. The product are 300 now, but it would increase in the future. Below is a sample …

Member Avatar for rajarajan2017
0
119
Member Avatar for ajwei810192

Hi, I have a line of text here: Directions: Take the #8 from Meadow Park(31), and get off at Kroger East (57). I am trying to get it to match both (31) and (57), which some other context may have different numbers, but there could be either 1 or 2 …

Member Avatar for pritaeas
0
68
Member Avatar for ayesha789

I have Developed a Database using MySQL and PHP. Now there are 60+ users who are using this DB. I want to make a system which tells me about Active and inactive users. Please guide me. My memebers table is like [CODE=mysql]-- -- Table structure for table `members` -- CREATE …

Member Avatar for ayesha789
1
244
Member Avatar for samsons17

I just wanna ask whats the difference between trim() and mysql_real_escape_string() functions? because i see this code below : [CODE] $username = trim(mysql_prep($_POST['username'])); $password = trim(mysql_prep($_POST['password'])); [/CODE] and myql_prep is a function being made thats contain this : [CODE] function mysql_prep( $value ) { $magic_quotes_active = get_magic_quotes_gpc(); $new_enough_php = function_exists( …

Member Avatar for samsons17
0
3K
Member Avatar for hkeng08

Hi all, I am using php code to write some server code. I wanted to convert some float value to decimal value for storage into the sqlanywhere database server. I declare the attribute type as decimal as I wanted to insert a float value into this attribute. I will encountered …

Member Avatar for rajarajan2017
0
62
Member Avatar for ldavidner

Hi All, I am looking for advice on approach more so than code. I want to make a page that has a list of products down one side that are clickable. Clicking on a product will populate a couple of detail areas (tables?) beside the list of products. I am …

Member Avatar for json101
0
120
Member Avatar for dbol

Anytime I try to extract the title of an article that has special characters, such as & or ', it's only returning the letters after the special characters. single quotes are displaying as ' (in xml) double quotes are displaying as " (in xml) ampersands are displaying as &amp; (in …

Member Avatar for rajarajan2017
0
140
Member Avatar for Chosen13

How would I go about doing that? Here's my script: [code] <?php $q = mysql_query("SELECT * FROM users WHERE online = '1'"); while($array = mysql_fetch_array($q)) { if($array['banned']) { echo "<del><b><a href='User.php?ID=$array[id]'>$array[username]</a></b></del>"; } elseif($array['username'] == "Chosen" || $array['username'] == "CoderRyne") { echo "<b><a href='User.php?ID=$array[id]'><font color='red'>$array[username]</font></a></b>"; } elseif($array['level'] == 9) { echo …

Member Avatar for rajarajan2017
0
117
Member Avatar for griffith

PHP UNIX_TIMESTAMP Help!? How do we make a function where after 5 minutes, there is an update query.

Member Avatar for Chosen13
0
75
Member Avatar for it200219

I have PHP code Using .htaccess mod-rewrite for company_name-ID.html TO index.php?id=ID the code gives me filename as index.php what I need is company_name-ID.html The code I am using is [code] $currentFile = $_SERVER['PHP_SELF']; $parts = explode('/', $currentFile); $currentFile = $parts[count($parts) - 1]; [/code] Please help me

Member Avatar for it200219
0
108
Member Avatar for xylude

I have 2 files: master.php and test.php. master.php has a class in it that I would like to include in test.php. The only problem is that test.php is ignoring the class in master.php. Here is the code: Test.php: [code] include("http://".$_SERVER['HTTP_HOST']."/rebuild/scripts/php/master.php"); $loader = new modLoader(); $module[0] = 'm.class.templating.php'; $module[1] = 'm.class.userInfo.php'; …

Member Avatar for xylude
0
248
Member Avatar for ajwei810192

Hi, I have a code snippet here as in the following: [CODE] if(preg_match("(Mon|Tue|Wed|Thu|Fri)/i", $keywords[$i])) { $day_query ="start_time.day='12345' AND end_time.day='12345'"; } if(preg_match("Sat/i", $keywords[$i])) { $day_query = "start_time.Sat_route != 'NULL' AND end_time.Sat_route != 'NULL'"; } else { echo $keywords[i] . " is not a term that exists in the database. Make sure …

Member Avatar for MVied
0
85
Member Avatar for wafieali

greetings.. i'm newbie on php and mysql.. i need help on how to create search form that return the results related to it? i'm using php mysql.. thus, i need help on how to make each result that'll be as a link to all data in it's row.. thank you!

Member Avatar for wafieali
0
132
Member Avatar for cloud09

What is the best way to setup a system that checks if a user has not viewed a thread since that has new posts since there last visit, so that the icon can be changed next to the thread? Would it be a good idea to use config files for …

Member Avatar for scaiferw
0
80
Member Avatar for search4f

I need to have the user be able to check a box when the address is the same what script do i use and where do i put it?? below is the html my php runner generated if ladd1 is the same as addr1 when checked how can i do …

Member Avatar for sourcebits
0
90
Member Avatar for niths

hi all, i had a page where there are three text boxes.username,password,allocatedmemory. Now when i placed an invalid number in allocated memory after submit button click it wil display a popup as invalid.so after clicking ok button,i need the value present in allocated memory to be cleared and cursor should …

Member Avatar for Manuz
0
88
Member Avatar for niths

hi all, i am having a doubt.How can i round off 005 to 5 and 000007 to 7 like this if the user enters in textbox. please help me..

Member Avatar for rajarajan2017
0
90

The End.