39,388 Topics

Member Avatar for
Member Avatar for jazz.viper

Hello , I am a new user of this site and also new to web development.Recently while developing my site on tourism by php/mysql i thought of placing a search bar at the top of my website where users can search topics and results would be provided according to the …

Member Avatar for hag++
1
11K
Member Avatar for t_thakar

Hi I was taught not to use global variables and one of my friend is using global variable for database handle for his website... could you please explain if there is an issue if he uses global variable for database handle? he is using it to access database from anywhere …

Member Avatar for veedeoo
0
229
Member Avatar for dlmagers

I am trying to display scores by what the user is requesting either 'Average','Total',or 'Both'. The following is my code for the looper.php and below is the code for my index.php. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Loop Tester</title> <link rel="stylesheet" type="text/css" href="main.css"/> </head> <body> …

Member Avatar for hag++
0
386
Member Avatar for Indians

in my db have 20+ columns. i added 19 columns throught input form and stored in db succesfully. i fetch few details from db in my main page. in my main page 1 more column is there. that is status column, it is a combo box. if i click status …

Member Avatar for hag++
0
1K
Member Avatar for sabarinadh.ch

I want to show only first 50 lines of the $name of the player using string. I used substring but its not work for me. Can anyone edit the code and show only first 50 lines of name. Thanks for the help.... <?php include('config.php'); $tbl_name="players"; // Table name $sql="SELECT * …

Member Avatar for sabarinadh.ch
0
164
Member Avatar for pardeepkhatri

i have wordpress template and i want to convert it into responsive template, how can i do it????

Member Avatar for HoverportMedia
0
101
Member Avatar for wallance

Hi everyone, I need your help, desperately. I am trying to install the Imagick Pecl extension on my MAMP installation. I have installed Image Magick using MacPort by typing the following into Terminal: sudo port install ImageMagick It seemed to install ok. If I type the following: cd /Applications/MAMP/bin/php5/bin/ .pecl …

Member Avatar for aleksandr.kravchuk
0
1K
Member Avatar for chrisschristou

hello brothers sisters and friend on daniweb, my question look stupid but i want learn :D waht is API HOW TO USE basicaly in payment gateway and i would like to ask waht is the best api alternative to paypal easy to use and economic

Member Avatar for chrisschristou
0
69
Member Avatar for Mapper99

I have two similar nodes in an XML file. When using a CONTAINS query via XPATH, the XPATH query returns two sets of data. I would like it to only return the exact match. Any idea if this is possible? Here is my code: $uc = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $lc = "abcdefghijklmnopqrstuvwxyz" …

Member Avatar for Mapper99
0
2K
Member Avatar for Tko_1

I have a script that search's for the word in the file just fine, I would like to echo the line number it was found on. Thank you. <html> <body> <form name="form" method="post"> input: <input type="text" id="search" name="search_box" style="background:#000006; color: #FF0000" /> </p> </p><input type="submit" name="submit" value="submit" /> </form> </body> …

Member Avatar for Tko_1
0
256
Member Avatar for devianleong

How to use the function within the class?? class UserRegister{ public $password = ''; public function escape($val) { return mysql_real_escape_string($val); } public function setPassword($val) { $this->password = $val; $val = escape($this->password); $this->password = $val; } public function getPassword() { echo $this->password; } } $obj = new UserRegister; echo $obj->setPassword("dsadsadasdas'das"); echo …

Member Avatar for devianleong
0
135
Member Avatar for BrickZ28

Ok so this issue has been stumping me for awhile. I have a website where a user inputs 2 times and dates i.e. 0100 and 0400 hose get assigned to a variable and are later pulled from the database to get the total time. Currently I have the code below …

Member Avatar for BrickZ28
0
276
Member Avatar for letlet_pogs

Hello. Help with my code. [code] echo ' Division Office : <INPUT TYPE=TEXT NAME="division_name" SIZE="23" ><INPUT TYPE=BUTTON onClick="window.open(../Tables/popup_client.php,popup,width=500,height=500,left=500,top=100)" style="background-color:#003366">'; [/code] it works if i will not use "echo"...but, i doesn't works if i use echo.. Help..Thank you again

Member Avatar for diafol
0
349
Member Avatar for logicslab

Dear friends, I am using Wordpress 3.6 . I need to integrate an alert system(to send email notification) to users when a preference value (Reach price of onion 40 $/kg). Is stored procedure can do any thing with it? Please advise how it is feasible. Thanks, Anes

Member Avatar for pritaeas
0
170
Member Avatar for davecoventry

I have some PHP code to get info from a database. $category='New Boats'; $titles=array(); $result=db_query('SELECT vid FROM {taxonomy_vocabulary} WHERE name = :type',array(':type' => 'Boat Types')); $row = $result->fetchAssoc();//8 $vid=$row['vid']; $tid=db_query('SELECT tid,name FROM {taxonomy_term_data} WHERE vid=:vid',array(':vid' => $vid)); while($ttd_row= $tid->fetchAssoc()){ if($ttd_row['name']==$category){ $tid=$ttd_row['tid']; $result=db_query('SELECT entity_id FROM {field_data_field_boat_type} WHERE field_boat_type_tid=:tid',array(':tid'=> $tid)); $eRows=$result->fetchAssoc(); $eid=$eRows['entity_id']; …

Member Avatar for davecoventry
0
193
Member Avatar for Victor_4

Hello, Noob alert!! I tried to protect some pages with a code I found googling. But since my server was recently moved to a better one, the code stoped working and gives me the error "Fatal error: Call to undefined function session_is_registered() .../protect_page.php on line 3" I googled it, and …

Member Avatar for pzuurveen
0
4K
Member Avatar for logicslab

Dear friends, I am using wordpress for my activity logging purpose . I have a plugin for chart preparation , Wordpress Business intelligenace . . But i need to take that chart data as HTML . I need to take a php page data as a function return . How …

Member Avatar for logicslab
0
136
Member Avatar for Indians

i stored few values through input form. (for example tax and rate field) if i entered tax = 777.77 and rate = 10000 it stored the details to db successfully. retrieve function also done successfully. but i want to show add these two values(tax+rate = total) from db when i …

Member Avatar for diafol
0
216
Member Avatar for Indians

i have the db with serial no and reference no. serial no is auto_increment value. it is worked perfectly. but i want ref no column also as auto_increment value start with 0000001,0000002,0000003...., how to do that? i cannot able to add two auto_increment values in mysql.

Member Avatar for paulkd
0
236
Member Avatar for garyjohnson

OKay so this my have been asked before but I have more of a general question than an issue. I don't understand Mysql_num_rows() becuase I don't have any information within my database table so the number or rows should be 0 but what happens is I get an error and …

Member Avatar for diafol
0
120
Member Avatar for sruthisru

hey..am having a doubt that,while using ajax in a page ,am not accesing button value while submiting the details.it is automaticalyy goin to the ajax attached page itself..i need to update the value to the database. can anyone having the reply???

Member Avatar for sruthisru
0
167
Member Avatar for saravananosiz

Hi all i have a list of companies(5029) in stock market. i need to group this company in to sector and industries and also get the S&P 500 companies .where can i get it ?. is it yahoo provide this please help me to do this.

Member Avatar for saravananosiz
0
194
Member Avatar for frankenfrank

Since I noticed that these languages are rather popular, what are the advantages and disadvantages of each over the others? and what is the need/motivation for each one of them? Why are there no C++/Java libraries to deal with those needs?

Member Avatar for vegaseat
0
422
Member Avatar for tibormarias

Evening Sirs, I would like to specialize my search script, by not only searching in one row, but in more. For example my mysql_query looks like this now: $query = "select * from table where street = '$trimmed'"; I would like to query it like this: $query = "select * …

Member Avatar for tibormarias
0
129
Member Avatar for ruhestorer

Hi, I have problems with getting data out of the **MS SQL Server 7.0** database in right encoding using **odbc** connection: $conn = odbc_connect("Driver={SQL Server};Server=$server;Database=$database; CharacterSet => UTF-8", $user, $password); I had the same problem when I used MS SQL Server 2005 and sqlsrv connection, but I found the solution. …

Member Avatar for ruhestorer
0
12K
Member Avatar for Indians

i created main.php page. this page includes these following php codes, <?php $user = ""; $pass = ""; $db = ""; $connect = mysql_connect("", $user, $pass); if(!$connect) { die ("Could not connect to MySQL"); } mysql_select_db($db, $connect) or die ("Could not open $db: " .mysql_error()); $sql = mysql_query ( "SELECT …

Member Avatar for Indians
0
277
Member Avatar for praba_web

i got following errors. my login is working fine at localhost. but it is not working on server. please help me. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/rnzsnet/public_html/archler.com/demo1/admin/verify_admin.php:22) in /home/rnzsnet/public_html/archler.com/demo1/admin/verify_admin.php on line 38 Warning: session_start() [function.session-start]: Cannot send session cache limiter …

Member Avatar for Bachu
0
152
Member Avatar for Kleon

did any body had this error before with xamp in php e Texti: hbinp0ØÿÿÿlfùAnti¸P3GlP3Si°£à¦èÿÿÿlf`<Clea LowMàÿÿÿvk€ AVLC.m3u8øÿÿÿ`pØÿÿÿvk € PUserFlagslnkøÿÿÿŒ ÿÿÿvkA€ C:\Users\Bardh\Downloads\Photoshop_Plugins_x64_8.54.0625.1800.exeTortoisàÿÿÿvk€€Heightàÿÿÿvk€SortPropÐÿÿÿvk€2application/x-mpegDiøÿÿÿ€àÿÿÿvk€è0 Widthd Cðÿÿÿen_GB ÿÿÿnk x[ù¹ÍH~ÿÿÿÿÿÿÿÿX{(œÿÿÿÿ RecognizersÿÿÿC:\Users\Bardh\AppData\Roaming\Unity\WebPlayerPrefs\1øÿÿÿp™àÿÿÿvk€izWrapnkràÿÿÿvkHø‚yurl38ðÿÿÿlfgDISPØÿÿÿvk€,ptUserMoviesLimitàÿÿÿ

Member Avatar for Kleon
0
131
Member Avatar for noahwilson

Hello friends, Do you know what is Cake PHP?Is it a tool or a framework? Please let me know your views..... Thanks

Member Avatar for Indians
-2
264
Member Avatar for patk570

Hello, I am trying to update 3 tables that i have in my db. the second and third INSERT commands there is a specific field that needs to have the ID of the first table last row inserted. first table, admin: +--------------------+ |id username passcode| |1 admin test | +--------------------+ …

Member Avatar for patk570
0
188

The End.