39,323 Topics
| |
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> … | |
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 … | |
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 … | |
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 | |
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 | |
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']; … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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??? | |
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. | |
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? | |
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 * … | |
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. … | |
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 … | |
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 … | |
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àÿÿÿ | |
Hello friends, Do you know what is Cake PHP?Is it a tool or a framework? Please let me know your views..... Thanks | |
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 | +--------------------+ … | |
please help why everytime when I run it it has this undefined error ( Notice: Undefined index: u_role in C:\xampp\htdocs\mysite\membership.php on line 136 /> Member Notice: Undefined index: u_role in C:\xampp\htdocs\mysite\membership.php on line 137 /> Administrator) <td>User Role:*</td> <td><input type="radio" name="u_role" value="Member" <?php if($_POST['u_role']=="Member"){echo"checked='checked'";}?> /> Member <input type="radio" name="u_role" value="Administrator" … | |
Hello everyone i have two forms that are similiar the only difference is the rma number. One RMA number will get typed in by the user which will add it to the database and the second one, the user will select an rma number from the database(dropdown menu). What i … | |
I've cust_name and install_no columns in table, each customer's name repeated 12 times as rows how to insert numbers 1 to 12 in install_no column for all rows. table sample: ----------------------------- cust_name | install_no ---------------------------- ROGER | 1 ---------------------------- ROGER | 2 ---------------------------- ROGER | 3 ---------------------------- ROGER | 4 … | |
How to Use Google Analytics API for fetching Total Traffic for a month for a project. Need suggestions | |
| Alright I'll try to be as clear as possible. I'm currently doing tutorials online because I'm learning php. I'm stuck on an issue I'm not really sure of. I'm currently coding on my local machine and think it may have something to do with that, but I'm not sure. Here … |
**Can anybody help me??? I'm newbie in php, I'm trying to make this code as one below.But it always gives me an error. Any help would greatly appreciated ** my table name is trans ![Fields[1] * *$id = $_POST['id']; if(isset($_REQUEST['command']) && $_REQUEST['command'] == 'update'){ $name = $_POST['name']; $email = $_POST['email']; … | |
Hi **I have doing the project for my purpose. it is working properly on localhost engine. after i have uploaded to server(cpanel) it is not working. i have posted my code here for reference: Please help me anyone!!!** ** Login.php** `Inline Code Example Here` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 … | |
how to capture data from a barcode using php? | |
I created a change password script and it seems to not want to work. when I put in the wrong password it doesnt error out and say Old Password doesn't match exisiting. when I put in 2 passwords that dont match it doesnt error out... if(isset($_POST['changepass'])){ //Getting Variables $oldpass = … |
The End.