199,114 Archived Topics
Remove Filter ![]() | |
I created a table in phpmyadmin and i was curious to know if it is possible to assign multiple values to one variable/field in the same table. For example here is what i have: ID | Shoe | Sizes ____________________ 1 | CK | 7 ____________________ 2 | LV | … | |
text1.txt: line1 hdfbghasbfas line2 jdsbvbsf line3 <match name="item1" rhs="domain.com"></match> line4 <match name="item2" rhs="domainn.com"></match> line5 <match name="item2" rhs="1010data.com"></match> need to retrive domain.com,domainn.com,1010data.com to "result.txt" `` import re f1 = open("C:/Users/Netskope/Desktop/m/test1.txt", "r") f2 = open("C:/Users/Netskope/Desktop/m/result.txt", "w") d1 = f1.readlines() for line in d1: match = re.findall('<match name="item1" rhs="(\w.+")', line) if match in … | |
Hi Experts my excel data is copied successfully to the listview. But on importing to database, I get this error. InvalidArgument=Value of '5' is not valid for 'index' ParameterName:Index ================= I have 2 problems ================= Problem 1: What should be the problem when I importing from listview(I think it is … | |
Hi there, I made a linked list program to add, delete, add in the middle and delete from anywhere. I'm searching to make a function to sort the string data that I have in lexicographic order. Here's my struct: struct node { char data[100]; struct node *previous; // Points to … | |
Hi guys, I currently have a custom network protocol I have written that uses the NetworkStream class. Within my protocol I have implemented a way to detect data that also works as a timeout. This seemed to be working fine until my client uploads an image of approx 24kb+ and … | |
I have earlier created the databases in the sql management studio. but a friend of mine said it would be possible to dreate the tables directly in visual studio and update to the database. I have tried to do it but I can't seem to make the tableadapters etc. because … | |
Hi there, I'm not a developer. I'm a graphics designer. I would like to learn about web development. For that I'm doing research in different languages. Most of them suggested PHP and Python. I know little about PHP. But Python I don't rightly know. Tell which one I can go … | |
$result123=mysql_query("select *from semdropdown"); <td><label for="textfield8">Semester </label></td> <td colspan="3"><select name="semester" value="<?php echo $semesterid; ?>"> <option value="">Select Semester</option> <?php while($row123 = mysql_fetch_array($result123)) { if($semesterid == $row123[semesterid]) { $selvar = "selected"; } echo "<option value='$row123[semesterid]' ". $selvar . ">$row123[semesterkey]</option>"; $selvar =""; } ?> </select> </p> <p></p></td> </tr> $result123=mysql_query("select *from semdropdown"); <tr> <td><label for="textfield8">Semester … | |
Hi I woluld lik to add date in my script. The date should not display just write it in my ip.txt like lis ip-Date <?php $ip=$_SERVER['REMOTE_ADDR']; $date= new DateTime("Y-m-d H:i:s"); $file = fopen('ip.txt','a+') or die("can't open file"); fwrite($file,$ip."\n"); echo "Your IP Address Saved: $ip\n"; echo $date->format('Y-m-d H:i:s'); ?> | |
Hi I'm working on a registration system and I've faced a problem with checking if the email is already inthedatabase this is my checking code $sql = "SELECT * FROM users WHERE email='".$email."'"; $result = mysql_query($sql); $row1 = mysql_fetch_assoc($result); $row1['email']; if($email = $row1['email']) the problem is that when I put … | |
Hello, guys.. I am actually working on a project. I can't figure out how to limit the displayed content on a table of a particular data. I have a table (tblservices) that have fields (service_id, service_name, service_content, date_created).. *the service_name* is the title of the service, *service_content* is the whole … | |
if __name__ == "__main__": args = parse_args() install_path = os.getcwd() if os.getuid() != 0 and args.create_user and not args.no_install_prequisites: While compiling the above source code in windows i get this error > module' object has no attribute 'geteuid' windows can any one resolve this. | |
Hello, I have a listview1 in my form. And my form has the ability to fullscreen itself. In the meantime, I have this code: ListView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize) But that would only depend on the listview's headersize. or the column's header width. I would like my all columns to share equal width. For … | |
I need to know which of these three copies of code is considered best. I also need to which one is more efficient memory wise and which is more efficient time wise. Thanks: enums [CODE]enum MyEnum{EnumTypeOne=1,EnumTypeTwo=2,EnumTypeThree=4,EnumTypeFour=8};[/CODE] macros [CODE]#define EnumTypeOne 1 #define EnumTypeTwo 2 #define EnumTypeThree 4 #define EnumTypeFour 8 typedef … | |
hi friends ... this is my 1st post I'm sure it gonna be beneficial to me.. Well I'm facing problem in this assignment.As I'm not that good in c++ programming. Please help me out .We have to use doubly linked list. **Assignment requirements Overview** You are expected to write a … | |
how to insert date in table by using datepicker jquery? my jquery code is as: <script language="JavaScript" type="text/javascript"> $(function() { $( "#date" ).datepicker(); }); </script> in html <tr colspan="2"> <td valign="top" align="left"> Date<font color="red">*</font></td> <td valign="top" align="left"> <input type="text" id="date" name="date" value="" readonly="readonly" autocomplete="off" size="20"> </td></tr> | |
the given question is 2x+3y-z=5 x-y+z=1 3x+2y+2z=6 i'm supposed to get the values of x,y,z from this coding. #include <iostream> #include <cmath> using namespace std; void GetMat (float A[10][11], int numrow, int numcol); // to enter elements in a 2 dimension matrix void DispMat (float A[10][11], int numrow, int numcol); … | |
Hello guys, i'm having this project where i must create a server that communicates with a browser.I must write something like this in the browser: http://localhost:11880/path and the message printed in the server will be: GET /path HTTP/1.1 Host: localhost:11880 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.04 … | |
Hello guys, I am writing a Greasmonkey script and I need little help here. So I have this code: $(document).ready (get); function get () { var elems =$( "a[id*='myId.']" ); if (elems.length>0) { $("a[id*='myId.']").trigger("click"); } } the point is that there are a lot of a tags with id myId.N … | |
HELLO! I've been debugging my code for an hour now. seriously. So I have this string: SQLString = "UPDATE `etmsystem`.`main` SET `timeIn` = '22:00' WHERE `main`.`serialNo` = '70002B4A8F9E'" actually the TIME and the SERIAL NO. here is to be represented by a variable. But I changed the code into that … | |
I have a simple imagebutton in Visual Studio 2010 / c# / .NET framework 4.0: asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/mypic.jpg" Width="400px" IE10 / Windows 8 shows the picture in the original size (width 200 px) and ignores the specified width (400 px). All other browsers behave as expected, but IE 10 … | |
Hi, i'm trying to select two values from my database. $nc ='North Carolina'; $t ='Hello'; $q = 'SELECT COUNT(state, title) AS c FROM all WHERE state = "' . mysql_real_escape_string($nc) . '" AND title = "' . mysql_real_escape_string($t) . '"'; $rq = mysql_query($q); $fetch = mysql_fetch_assoc($rq); $count = $fetch['c']; echo … | |
Hi Guys I have a "StudentNames" column in an sql table. Each student in the table has atleast two names all in one column. Assume that the following as studentNames. StudentNames ------------- John Smith Joseph Smitter Johan Smittin How can I use the LIKE statement to select students with same … | |
![]() | Hello Guys , I am having an error message with javafx scene builder integration on netbeans kindly help me !  Thanks |
Hi, I am developing a J2ME application but i have some trouble when I want to display a new form (contained in a class). My Midlet class is like that public class StoreDataMidlet extends MIDlet{ public StoreDataConnex StoreInfosConnex ; private static Display mDisplay; private ChaineConnexion connexForm; // Form which is … | |
Please help. I have array. Debit Site Credit Site Line Voucher ArrData(0) 306 335 2 33500024 ArrData(1) 320 335 1 33500024 ArrData(2) 809 335 3 33500025 ArrData(3) 809 555 3 55500010 ArrData(4) 809 555 3 55500011 ArrData(5) 810 335 1 33500025 ArrData(6) 810 555 1 55500011 ArrData(7) 810 555 1 … | |
[Click Here](http://postimg.org/image/53202vfs5/) | |
hello Dany web friends how to use cookies session in php, how to insert cookie in database table to rember user, i would like to rember what page a user viewed on my website... and i think i can use cookie for SESSION but i don't know how to use. | |
Hi, I'm getting the following error "" for the query as shown below. Any help is very much appreciated. SET SERVEROUTPUT ON; DECLARE v_CARE_COUNT NUMBER := 0; v_PHONE VARCHAr2(40) := NULL; BEGIN select count(distinct care_level) into v_CARE_COUNT from Table1 where user_id = '100'; IF(v_CARE_COUNT > 0) THEN select phone into … | |
![]() | I made a new MySQL table in Phpmyadmin in Wordpress in the same database from Wordpress but a new table. I want to make a new page and add a script in the body that allows: 1. when i insert the page title to the new page, the script should … ![]() |
Hi I have a problem with uploading files in php, and I don't know what is wrong :( this is my code : <?php //require_once('inc/config.php'); ?> <html dir="rtl"> <head> <title>تسجيل شركة جديدة</title> <meta http-equiv="content" content="type/text" charset="UTF-8" /> </head> <center> <form action="register.php" method="POST" enctype="mulipart/form-data"> <input type="text" name="username" placeholder="اسم المستخدم" /><br /> … | |
hi why does this prompt a wrong pass? plss help. :( Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "Username" And TextBox2.Text = "Password Then" Then Me.Hide() Form2.Show() Else MsgBox("Wrong Username of Password.", vbExclamation, "Wrong") End If | |
Good Day, how can i put a username and password in form? in Visual Basic 2008 | |
Below are 2 functions that will handle the Query and rending of the menu from MySQL Database. This function Loops through the array. Takes in 2 arguments. function loop_section($array, $parent_id = 0){ echo '<ul>'; foreach($array as $section){ echo '<li>'; echo $section->section_name; echo '</li>'; } echo '</ul>'; } This function handles … | |
regular expression that accept only letters OR numbers. | |
hello can i have featured content slider dynamilcally??? if yes thn how??? | |
I receive this error  when I have this code: Private Sub EditUsers() Try Dim dt As New DataTable dt = ExecuteQuery("UPDATE tblUsers SET UserID = " & txtUserID.Text & ", UserName = '" & txtPassword.Text & "', Password = " & txtPassword.Text & ", LastName = '" & … | |
Hello i will ask directly with out explaining, how can i close this echo ??? <?php echo "<div class='date'> date("Y/m/d"); </div>"; ?> It gives me some error like `Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/a5834708/public_html/index.html on line 149` Thanks :) | |
Hello, I'm having a problem with my code. It seem to only echo out the picture name from my database and not the picture. This is my code search.php $result = mysql_query("SELECT * FROM all WHERE (`title` LIKE '%".$query."%') OR (`add_type` LIKE '%".$query."%')") or die(mysql_error()); if(mysql_num_rows($result) > 0) { while($results … | |
Hello. I am beginning to re-develop a small database using PHP/MyQL; I have already sucessfully done this a year ago but no longer have access to the machine, code or credentials. It worked great! But now, I'm rebuilding it. The test site (PHP) seems to be fine. I see no … | |
hi, I am using the Rich Text Box, Now I want to open the Word File, (It may be of 2013 or 2007) How Can i do This? !!! Important Thing !!! No matter if I have to import any of the Word addon or else.... But That should Work. … | |
Write a C++ program that reads data from a data file called “temp.dat”. The data file contains a maximum of 31 daily integer temperature values for a city. Your program should continue displaying the following menu until the user selects exit (option No. 6). Head of the data Tail of … | |
I'm using a bootstrap pseudo-button (a link that looks like a button). It links to a page using PHP that downloads the file (the user is never shown the linking page). When the link is clicked I want it to be replaced with something to indicate progress is happening (for … | |
Hello all, It’s a problem which is giving me pain. I have a table agent_registration which have following structure: agentID agentname patentID 001 a NONE 002 b 001 003 c 001 004 d 002 005 e 003 So, whenever we register a customer whose agentID is ‘005’ then how can … | |
Hello there, I'm searching for a office intranet script which includes: **My Blog** : Blog Post By Internal Writer Or External Sources **My Docs** : Important Docs (product Notes, Company Profile, Faq) **My Task** : Task & Projects Assigned & Progress **My Hr** : Who Is Who With Email Address, … | |
hi , we have a requirement to get grand parent,parent and child nodes display in treemodel.At the moment we have the parent ,child display of Tree Model .Could you please advise what need to be done to get this hierarchy -Grand Parent - Parent -children Thanks in advance for your … | |
Hi, I have a problem with changing the password from Microsoft Access Database. I get an Error "[B]No data exists for the row/column[/B]". The password in the database is encrypted and when I change the password it should be decrypting the password and new password should be updated with encryption … | |
Hi : I'm running one shopping cart with prestashop which is working good, now I want the market place in my cart which is similar to ebay.com and olx.com in which the user can post their product in our store and sell their product. I want to integrate the functionality … | |
hi i am currently working with php which requires registration once the user registers with his/or her details then an email is sent to the user for activation once the link is clicked the account is activated this works perfectly but the question is how do i expire the link … ![]() |
The End.