41,416 Topics

Member Avatar for
Member Avatar for tcollins412

lets say i have a get variable:[CODE]$goto=$_GET['goto'];[/CODE] and i have a array [CODE]$sections= array('fail' => fail());[/CODE] how would i make it so when the $goto=fail, it does the function fail from the array?

Member Avatar for Killer.bee
0
134
Member Avatar for Killer.bee

hello i want help to design a script for banning ip's and also range of ip's.... Hope that somebody may come out with a solution to do this ....

Member Avatar for tomato.pgn
0
133
Member Avatar for flynismo

I have resolved a couple issues on my site thanks to you all, and hoping that you can come to my rescue one last time, because I am at wit's end trying to figure this one out. I have a shopping list on each page. Normal grocery store items; users …

Member Avatar for hielo
0
173
Member Avatar for turt2live

Hello, In my code I am getting this error: [CODE]Warning: mysql_connect() [function.mysql-connect]: User turt2liv_demo already has more than 'max_user_connections' active connections in /home/turt2liv/public_html/demo/jamond_website/class.php on line 11[/CODE] That method looks like this: [CODE]//Constructor function __construct($debug){ if(!$debug){ $debug=0; } mysql_connect("localhost","turt2liv_demo","demoacc") or die("Connection Error: ".mysql_error()); mysql_select_db("turt2liv_demo_jamond_website") or die("Selection Error: ".mysql_error()); error_reporting($debug); date_default_timezone_set("America/Edmonton"); if($this->isLoggedIn()){ …

Member Avatar for turt2live
0
139
Member Avatar for Sarao

Hello, I have following page which shows 10 records per page (pagination) what I want is, it gives me a total of "Total (Price+Shipping)" at the end of the page. How can I do that? I am trying hard but with no access [code]<?php include('connect.php'); ?> <?php //This checks to …

Member Avatar for tomato.pgn
0
217
Member Avatar for nats01282

Hello i am creating a small forum and having trouble with the user sign up form. i have the start of a sign up form on the index page then that jumps to the sign up page with more info, e.g... index.php [CODE] <form action="signup.php" method="post"> name: <input type="text" name="name" …

Member Avatar for nats01282
0
116
Member Avatar for turpentyne

I have the paginated results page below, intended to show the results from a previous search page that pulls items from the database and also passes the _GET to this page. When I first submit my search, it works. But when I click on the paginated pages below, It reloads …

Member Avatar for turpentyne
0
136
Member Avatar for ROTC89

Hi I coded a calendar pop up with events and I wanted to be able to join the event table with a timecard table but im not sure if im doing this correctly. What it is suppose to do is when they add stuff to the calendar the person can …

Member Avatar for madCoder
0
108
Member Avatar for klemme

Looking for an answer about how I can use relations in my DB, when a link is clicked. I have the main navigation in the top of the page, the table is called:"SUBJECTS", primary key is ID. I also have a local navigation in the left side of the page. …

Member Avatar for madCoder
0
186
Member Avatar for jfunchio

I need help using a mysql user defined function in php. What i want to do is use the mysql function to perform a query to get the count from the inventory table whose movie_id's are equal to the movie_id entered by the user. And then I would like to …

0
70
Member Avatar for professor123

hi all, l created php submission script and l wanted to how l can create another script which allows me to view all the submissions made in an orderly manner?

Member Avatar for tomato.pgn
0
138
Member Avatar for klemme

All, I have a small select box for deleting a page, and I need to include the pos(which is position when it gets submitted) - So I can update the database position of the pages. How can I put the pos in this too when it gets submitted? [CODE] <?php …

Member Avatar for klemme
0
206
Member Avatar for netroxy

Hello guys. Just an example of what I'm talking about, I made a page to show you guys what Im looking for here : [URL="http://netroxy.com/51274581336/tablehelp.htm"]http://netroxy.com/51274581336/tablehelp.htm[/URL] If anybody can build a script that would do search results for certain categories of games, such as skill games, action games, adventure games, shooter …

Member Avatar for tomato.pgn
0
182
Member Avatar for lovell_82

Hi all, was wondering if I could get some help with my code. I want to be able to insert a person and details into a database, however i keep getting a syntax error, and not very experienced so was hoping some one here could help. thanks dbConfig.php [code=php]<?php // …

Member Avatar for lovell_82
0
154
Member Avatar for xiiopao

hi there im new to php and im currently building my website .,it's more like an online store and i would like my products to be listed in a gridview., i have a database and my only problem is how to display the images .., i've already displayed some info …

Member Avatar for xiiopao
0
571
Member Avatar for anita_86

Hi All, I am using this code to populate a drop down list from mysql database. I need to pass id and name through this code.but the problem is the value is lost when the page gets refreshed.and it works fine if i pass only name through it. my code …

Member Avatar for codewall
0
82
Member Avatar for Osas106

good day every one i am osagie by name, i've been trying to develope a biometric(fingerprint) software in win32 that will serialise and save all user fingerprint record to a binary mode cpp file(after due analysis). Thereafter, d program is expected to send a copy of the serialied file to …

Member Avatar for jonsca
0
142
Member Avatar for channsoung

I am having a problem in counting the user that visit to a website of mind using php. I want to count those user by day, week, month, in total and store them in MYSQL database. I have been searching through lots of site and still cannot figure it out …

Member Avatar for tomato.pgn
0
121
Member Avatar for samsons17

Hi all.. I got a problem here on how to handle the form submission. The problem is like this.I got two part of the form which i want to get the data from the user for the events that he/she want to promote. [B](1)[/B]The first part is that I want …

Member Avatar for tomato.pgn
0
825
Member Avatar for Barrett1

I just would like to know how to do this? Just like facebook! Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam fermentum posuere arcu lobortis mattis. In eu nisl turpis. Praesent mi dui, dignissim et rhoncus nec, sodales vel sapien. In hac habitasse platea dictumst. Etiam quis felis vitae …

Member Avatar for ko ko
0
161
Member Avatar for mr-jacob

Hi there, I have a question about how to set up a blog with a MVC model(codeigniter). I did some research but i cant find any information because i gues i dont know the terms to look for. I know how to set it up but i get stuck on …

0
97
Member Avatar for jacob21

hi, I am working on upload module in which i have to send the uploaded file by email to an email id.its working fine.I want to put validation on the uploaded file i.e. to check it is attached or not.. Need suggestion Thanks

Member Avatar for codewall
0
71
Member Avatar for keval_hack

I have seen many threads on Google MAP API implementation i have posted replies on many threads but its better to start new thread as tutorial on Google Map API Intigration using PHP. Read this tutorial [URL="http://www.indiastudychannel.com/resources/137612-How-integrate-google-map-your-website.aspx"]How to integrate google map in to your website[/URL]. This tutorial explains step by …

0
58
Member Avatar for amanu092

Hi everybody! i am using joomla 1.5.23 with the templete jvwintro when i try to add a menu then a message just like "Invalid Token" is shown the same problem is shown in the JA-Methys-Joomlart-Template what the problem is? and what is the remady? please reeply me soon.

Member Avatar for amanu092
0
164
Member Avatar for MoreBloodWine

Right now dates might look something like this 04/18/11 or this 04/08/11. Well, what needs to be changed and where to not display preceeding 0's in single digit months / days so 04/18/11 becomes 4/18/11 and 04/08/11 would become 4/8/11.. Ty for your time and help. [code]<?php $ndnews = file_get_contents('http://www.naughtydog.com/index.php/site/tickerData'); …

Member Avatar for MoreBloodWine
0
173
Member Avatar for jfunchio

I need help using a mysql user defined function in php. What i want to do is use the mysql function to perform a query to get the count from the inventory table whose movie_id's are equal to the movie_id entered by the user. And then I would like to …

0
56
Member Avatar for iwonder

Hi I`ve done with nuke, xoops, mambo etc for a year now . Now choosing from site like [URL=http://opensourcecms.com]OpensourceCMS[/URL] n all is pretty messy . ;) Can you suggest a CMS for a personal site , blog will do too . I`m thinking of wordpress , but it`s 1.5 is …

Member Avatar for mtroute
0
242
Member Avatar for layzie121

Heya guys, I'm stuck. How can i manipulate the code below so that the return value is sent to my thank you page ([url]www.website.com/thankyou.php[/url]) instead of the root homepage, while keeping everything else intact. The code to my paypal return value is listed below. [CODE]<input type="hidden" name="return" value="<?=$cfg->wwwroot."registration-confirmed-".base64_encode(serialize(array($user->id, 1)))?>">[/CODE]

0
88
Member Avatar for rajeesh_rsn

Hi, I need to replace "-" from a string . Ie Just need a "-" between two words. ie standard format is : Hello-world-php If I got a string like this 'Hello--world----php' I just need to rewrite that in to 'Hello-world-php' format . Hope you understand this .. Please help …

Member Avatar for chrishea
0
213
Member Avatar for klemme

Everyone, Can someone see why this select box doesnt display the numbers, but only the default text? [CODE] <?php include_once "connect_to_mysql.php"; //Placing the page under the relevant subject, using a dropdown list $sqlCommand = "SELECT subjectid FROM pages ORDER BY subjectid ASC"; $query = mysqli_query($myConnection, $sqlCommand) or die (mysql_error()); while …

Member Avatar for klemme
0
234
Member Avatar for rutaba

i want to add marker in the google map embedded with my php site? and want to show information abt that marker? kindly can someone help me how can i do that usig google maps? waiting for reply thanx

Member Avatar for keval_hack
0
225
Member Avatar for ptflyer

I have recently started a web company in China using MySQL and PHP as the development environment. Apparently the common practice here is to not create relationships between tables. They would draw out the relationship in the logical ERD, but when it came to the actual DDL, they would only …

Member Avatar for BitBlt
0
254
Member Avatar for joban.ali

Hi Everyone, I have integrated a Google Map on my website, which is working in good order. The maps data such as location lat/lng is coming from database. At present all the location markers are appearing on the map. I have a php page which draws out all the sql …

Member Avatar for keval_hack
0
325
Member Avatar for arjani10

Hello! I have an file php who want direct access in that file nobody can have access,i dn't know if is possible to block.... [CODE]<?php header("location:/path/?id=".$_GET['id']); ?>[/CODE] i put that in an embed page and run video avi.when i block direct access with htaccess video dont run.Is possible block direct …

Member Avatar for arjani10
0
229
Member Avatar for jason199

Does any body know if PHP 5 support multiple inheritance? (extends multiple classes?)

Member Avatar for mschroeder
0
36
Member Avatar for katmai539

Hello, I'm working on a hardware project based on the RabbitSys chips, which are ideal for web based hardware development. My task now is to divide a table up in pages and i'm able to set a variable from a webpage like "CurrentPage=1" and calculate my way around. the ZHTML …

Member Avatar for katmai539
0
339
Member Avatar for rajeesh_rsn

Hi friends In one of my project I just need a rich text editor . A simple one which containing bold, Italics, Underline, Image , Link ... which must output like [CODE][url=""]asdasd[/url][/CODE] I m very new to this and can anyone suggest me a free one ? Thanks in advance …

Member Avatar for rajeesh_rsn
0
145
Member Avatar for amit.hak50

I am having problem with the yahoo search API,sometimes it works and sometimes don't why I am getting problem with that I am using this URL [CODE]http://api.search.yahoo.com/WebSearchService/rss/webSearch.xml?appid=yahoosearchwebrss&query=originurlextension%3Apdf+$search&adult_ok=1&start=$start[/CODE] The code is given below: [CODE]<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <? $search = $_GET["search"]; $replace = " "; $with = "+"; $search = str_replace($replace, …

Member Avatar for amit.hak50
0
662
Member Avatar for amit.hak50

I am getting this error ,can anyone help me : Warning: Invalid argument supplied for foreach() in /home4/thesisth/public_html/pdfsearchmachine/classes/rss.php on line 14 Here is the rss.php code [CODE] <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <? $search = $_GET["search"]; $replace = " "; $with = "+"; $search = str_replace($replace, $with, $search); if ($rs = …

Member Avatar for amit.hak50
0
282
Member Avatar for mitali89

Hi, I am using htmlMimeMail class for sending email.but when i receive the email it will takes a long SMTP address. It Works for the another site but it takes the long SMTP address in place of the actual sender address.

0
93
Member Avatar for phplover

Hello, I posted here as although it's in regards to mysql the thing i want to ask is in regards to php itself. I have two tables below as follows: [CODE]CREATE TABLE `users` ( `uid` int(11) NOT NULL AUTO_INCREMENT, `status` char(10) NOT NULL, `username` varchar(15) NOT NULL, `email` varchar(50) NOT …

Member Avatar for phplover
0
151
Member Avatar for alfredferg

hi to all, I'm new in mysql and I have a problem regarding deleting rows. I have 38 tables in database and I want to delete rows in all tables with specific ID that is executed in just 1 click. For example, I executed ID number 1 then it will …

Member Avatar for tomato.pgn
0
153
Member Avatar for cj333

I am making a mysql fulltext search. my database table article1 has ~18000 articles, article2 has ~7000 articles, article3 has ~13000 articles. FIELD cat is a INDEX field Now I want to make a union search. there are 5 groups words put into 3 table, match out the results. But …

Member Avatar for cj333
0
289
Member Avatar for jfunchio

I keep getting this error when I try to run and print out the results of my database query. I know that this error usually mean that my query failed but i can't figure out what is wrong with it. [CODE=PHP] $genre=readline("Enter Genre: "); $query = "SELECT movie_title FROM movie …

Member Avatar for vibhaJ
0
276
Member Avatar for shantanusinghal

[code=php] $conn=odbc_connect('mobshopDB','',''); if(!$conn){ exit("Connection Failed: " . $conn); } $query="INSERT INTO users(uid,pass,fname,lname,pmm) VALUES('$username','$password','$fname','$lname',$pmm)"; $rs=odbc_exec($conn,$query); [/code] this query gives me this error Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression., SQL state 22005 in SQLExecDirect in C:\Program Files\EasyPHP-5.3.6.0\www\mobshop\registered.php on line 39 ..please suggest a …

Member Avatar for hielo
0
98
Member Avatar for midjam

hope you guys can help with this, i`m getting this error within my error log: PHP Warning: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in /home/myname/public_html/mysite.com/formmail.php on line 17 here is line 17: $temp = implode(",<br />", $_POST['licences']); I`m trying to pass a multiple selectbox to the email body, heres the …

Member Avatar for tomato.pgn
-1
212
Member Avatar for alfredferg

hi to all, I'm new in mysql and I have a problem regarding deleting rows. I have 38 tables in database and I want to delete rows in all tables with specific ID that is executed in just 1 click. For example, I executed ID number 1 then it will …

Member Avatar for alfredferg
0
146
Member Avatar for menukadevinda

hi, although, database is connected and admin table of my database consist of 2 rows of data, I still get 0 value for $numRow=mysql_num_rows($result); And mysql_fetch_array doesnt fetch values properly plz can any body help me thx in advance [code]<?php //include_once 'config.php'; /* 1. Got the username and password from …

Member Avatar for tomato.pgn
0
152
Member Avatar for ckdoublenecks

the below code is to updata a database with calculated taxes and days late. It results in the message:[QUOTE]error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\invoice[/QUOTE]. Can someone help with this? [CODE]<?php $stat = mysql_connect("localhost","root",""); $stat = mysql_select_db("oodb"); $query = "SELECT invnum FROM oocust WHERE payrec = 'R' …

Member Avatar for ckdoublenecks
0
328
Member Avatar for ken.bryant

Can anyone explain what the $PHP_SELF global variable does in the following script? <html> <body> <?php $db = mysql_connect("localhost", "root"); mysql_select_db("mydb",$db); $result = mysql_query("SELECT * FROM employees",$db); if ($myrow = mysql_fetch_array($result)) { do { printf("<a href=\"%s?id=%s\">%s %s</a><br>\n", $PHP_SELF, $myrow["id"], $myrow["first"], $myrow["last"]); } while ($myrow = mysql_fetch_array($result)); } else { echo …

Member Avatar for holy-food
0
99

The End.