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 description and guideline of the service. Now, I want to display all the data on tblservices (SELECT * FROM tblservices) in a table. I succesfully displayed all the data on the table, but on the column of service_content, I just want to display a short part of the service_content not …

Member Avatar
Member Avatar
+0 forum 7

hello; i dont know whether this is appropriate forum to ask this question, but after viewing some helping threads i decided to post mine problem and hope you guys will help me. I am a blogger, i upload files and then monetize the links using adfly and linkbucks. But as you can see this is time consuming task. I use multiup.org to upload files which has its API, and uses both adf.ly and linkbucks to monetize links and both has API too. Now here is my scenerio... A script which allow me to put url like http://file.com/video.avi , it upload …

Member Avatar
Member Avatar
+0 forum 2

Hello Community, For my new service I'm making a way for users to make the're tracking links short. The URL is http://hitcounter.co but I can't think of any short versions of it because all the ones I've chosen have been taken such as http://hilnk.co, http://hlnk.co and http://hit.co. So I was wondering if you could help me think of a short URL.

Member Avatar
Member Avatar
+0 forum 4

void Project1(){ unsigned short int x; bool flag = false; cout << "Enter an interger, I will reversed i.e. 301 --> 103" << endl; cin >> x; if ((x > 0) && (x <= 65535) ){ flag == true; cout << reverse_num(x); cout << endl; } else { cout << "No conversion possible." << endl; } } I having trouble when i enter a number out of the range of unsigned short int

Member Avatar
Member Avatar
+0 forum 3

Hi everyone, I have been trying to update a mysql database with the shortend url I get from bit.ly I have the shortend url displayed on the page, but everytime I try and update mysql with the variable $bitlylink.. instead of http://bit.ly/123abc the database is updated with http://the.full.website.url/directory/link.html How can I update the database with the correct url I get back from bit.ly $link = "$bitlyslug"; $bitlylink = "$link"; $suiid = "$suiid"; print getSmallLink($link); function getSmallLink($longurl){ // Bit.ly $url = "http://api.bit.ly/shorten?version=2.0.1"; $s = curl_init(); curl_setopt($s,CURLOPT_URL, $url); curl_setopt($s,CURLOPT_HEADER,false); curl_setopt($s,CURLOPT_RETURNTRANSFER,1); $result = curl_exec($s); curl_close( $s ); $obj = json_decode($result, true); return $obj["results"]["$longurl"]["shortUrl"]; …

Member Avatar
Member Avatar
+0 forum 3

hi, i'm working with php short hand for the first time and i'm trying to edit this code: <?=($c->is_admin == 'Yes')?'<a href="msg_update.php" input type="submit" class="button" value="protected page">Update Home Page Message</a>' : ' <p> This is not the page you were looking for. </p> ' ?> i want to do something like this : <?=($c->is_admin == 'Yes')?'<a href="msg_update.php" input type="submit" class="button" value="protected page">Update Home Page Message</a>' $con = @mysql_connect(my login stuff); mysql_select_db(more stuff); // database if (!$con) { echo'connection error'; die('Could not connect: ' . mysql_error()); } : ' <p> This is not the page you were looking for. </p> ' …

Member Avatar
Member Avatar
+0 forum 1

Does anyone know a good way to force javascript to evaluate all operands in a boolean expression? In particular, what I am tring to do is essentially this: return isValid(a) && isValid(b) && isValid(c); while this technically does work, the function is responsible for highlighting invalid areas on the form for user attention. Since the `&&` operator short circuits, it will only ever highlight the first invalid expression, possibly requiring the user to go through several rounds of correcting input data. Any ideas?

Member Avatar
Member Avatar
+0 forum 2

During some recent project issues I found myself asking this very question: **Does MySQL short circuit WHERE clause statements?** After doing some research and finding that several other people and technical forums have posed this question, with several answers pertaining to be intelligent but that amount to *"i don't know"*, I decided to perform some experiments. Firstly, how to test whether a statement is being executed or not? Solution: make it throw an exception. I initially tried some select statements with parameters and division by zero, but MySQL apparently returns NULL instead of a divide-by-zero error. So I came up …

Member Avatar
Member Avatar
+0 forum 3

I had a recent post and it's solved, the mobo fried. But now I'm wondering. This machine, a compaq presario with windows ME (upgraded to windows XP) had been unused for two or three years. My cousin calls me and asks if it can run again so they found the XP copy (not original) and I installed it. Voilá, it was working, sound and all. Next day I stopped by and find out my little cousin had turned on the computer and we don't know for how long it had been on. But the monitor was blank however it worked …

Member Avatar
Member Avatar
+0 forum 2

Alright, my Thinkpad T60 decided to stop booting. I've tried all the obvious already. Anyway, when I start it up, it shuts down in 3 seconds. All the lights act normal, but no display. To get it to boot again, I need to remove the A/C and the battery. When I plug in the external VGA, it boots like normal. If I hit FN+F7 (LCD/External toggle), it powers off. What could the cause be? I was thinking a shorted out ribbon, are blown fuse or a faulty LCD, but it may be something else. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 22

Hey! I have a problem. I've been coding Python for two years now, and it's great, but now I'd like to use a module called "ctypes" to import C function into Python. I know how to do it and all, but the problem is: I know how to program in C# (a fair bit) but I have no clue of how to translate that into ordinary C. Here's my C# function (in case you know C#, of course): [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; using KarlsTools; public class Program { public static Array ITERATE(double z_r,double z_i,double c_r, …

Member Avatar
Member Avatar
+0 forum 5

hi , i want to know which is the best shorten url script in the market " FREE as well as PAID " thanks Marshal

Member Avatar
Member Avatar
+0 forum 3

I would really like to be able to read notification emails on my phone (email to sms). However, my email preferences on daniweb are currently set to html, as far as I know. Could someone please help me change it to plain text? Is it even possible? Thank you.

Member Avatar
Member Avatar
+0 forum 2

Hi everyone! Just wanted to ask before i begin messing around. Is it possible for two processes to access the parallel port simultaneously? So that if i short circuit Input pins to output pins of the parallel port one process will provide input to another one? I am using Windows XP and C++. The first process is a commercial one which cannot be modified. In my experience with serial port it was impossible to interface it when another process had the access. Thanks in advance!

Member Avatar
Member Avatar
+0 forum 1

The End.