39,316 Topics

Member Avatar for
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
312
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
67
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
242
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 & (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
247
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
84
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
Member Avatar for sugikrish

Hi frnds, I need to select some values in old table and send it into newtable. Here i placed my program. Anybody know say the corrections. <?php mysql_connect("localhost","root",""); mysql_select_db("menus") or die(mysql_error()); $idvalue=$_REQUEST['id']; //$iv=$_REQUEST['z']; $result=mysql_query("select * from smenu where id='$idvalue'"); while($row=mysql_fetch_array($result)) { $projectid=$row['id']; $projectname=$row['main']; $projectcat= $row['itemm']; $scope=$row['descrip']; $location=$row['Category']; $rate=$row['Rate']; } echo …

Member Avatar for sugikrish
0
91
Member Avatar for Boskor

I have one problem with php and mysql. I have 3 tables (Users, User_status and Analysis) and want to display users and profit in a php table order by profit. So I wrote this code: [CODE]$tipster = mysql_query("SELECT Analysis.Profit, Users.Username, User_status.id FROM Analysis, Users INNER JOIN User.status ON Users.User_status_name=User_status.user_status WHERE …

Member Avatar for Boskor
0
285
Member Avatar for sugikrish

i want to create cart system in php. it need maintain invoice number. customer select many items each time they click "add to cart". When they click "finish purchase" then only invoice number wil be increment. how to do this..

Member Avatar for scaiferw
0
50
Member Avatar for balagod

Hai, I am using MySQL table to store session values. i am getting sid as 'deleted' for some sessions in live server . but i am not able to simulate it in development server . what scenario it will occur. sample data. +---------+-------+-------------+ | sid | value | expire_time | …

Member Avatar for balagod
0
103
Member Avatar for gregoirelegros

Hi I would like to capture data from my friends. I'm going to use a page on my website with a form. I'll send my friends a link to the page such as [url]http://www.mysite.com/surveypage.htm?friend=john[/url]. When the friend hits my page using this url I would like firstly to show a …

Member Avatar for microspective
0
178
Member Avatar for stbtwitter

Hey Everyone, I know how to right a php script to send out an email. But I want to write a script that will send out an email at a certain time, The crux is, I need the email to be sent out even if nobody is accessing the page …

Member Avatar for stbtwitter
0
145
Member Avatar for UzuNarU

Hi I am trying to write a script that puts a Horizontal Line between MySQL query results but doesn't show up after the last row. eg: First Line ---------------- Second Line ---------------- Third Line I'm using PHP, MySQL and JavaScript AJAX. Don't know if that's relevant for this instance or …

Member Avatar for UzuNarU
0
312
Member Avatar for jhonnatas

hello again!well...I'm developing a Content Management System and I have a form where the user write a text then i'll store this text in my database and i'll write it on a page using the "echo",I store the text with the html tags like: <p> blablabla</p>.but the user doesn't know …

Member Avatar for jhonnatas
0
125
Member Avatar for Th3nutz

I was wondering, is it possible to get specific data from another website ? Let's say i want from page X the content from a div. How can i make write in php a script that automaticaly gets and echo into my site what is inside that div from page …

Member Avatar for JRM
0
140
Member Avatar for bsewell

Hi everyone, basicly I have a CSV file which uses ^ as a delimiter. I have a textarea which is populated by the contents of the CSV file, and after editing it the user is redirected to the edit page. For some reason, everytime I save the file there is …

Member Avatar for bsewell
0
143

The End.