Hello,
I'm creating a voting system and I was wondering if you could help me. I have 2 columns - gid,IP. `gid` is the ID for game and `IP` is for IP Address.
gid | IP
6 |xx.xxx.xx
7 |xx.xxx.xx
6 |xx.xxx.xx
6 |xx.xxx.xx
I want to display the results like this:
GID | Votes
6 | 3
7...
Hello again,
If I wanted to search for the game `title` as well, can you show how to do it? So far I did this but don't work:
my $sql = 'select title,keywords from index_tble';
@array = map {'%' . $_ . '%' } split(/\s+/,$q);
if (@array){
$sql .= " where ";
my @a;
push...
Hello Coderifous,
Thank You so much for your code, but when I tried your code, I got the following error:
Cannot execute statement!
called with 1 bind variables when 0 are needed
Hello,
I'm really new to regular expressions and I was wondering if anyone could give me a hand. What I have is some data on mySQL which contains `title`, and `keywords` and I want the user to search through the title and keywords. Here's an example:
Table: games
ID | Title | Keywords...
Hello,
I'm creating a program where users gets to add a review about a specific product, so far I created normal like when they add the 'comments', it adds to the database. I'm using mySQL for database and I was wondering if anyone could show me how to lock something with DBI. Thank You.
Hello,
I have a database filled with keywords and the program let you search for it. For example of my data:
[keywords]
quest,alien,campy,3d
What I want to do is let you search through the keywords. So I have the following:
$q=param('q');
if ($keywords =~/$q/i) { print "match"; }...
Hello,
I have some image files that has names like:
PC-blah1.jpg
GBA-test.jpg
Is there anyway I can get the value 'blah1' and 'test'? I need to get the value between the '-' and '.jpg' . If you can, please help and thank you so much for reading.
-Aaron
Thank You
There is no Knowledge that is not power.
Age: 17
E-mail: projectnet01@yahoo.com
Company:(not done yet) :-)
Status: Currently working with C++ for game developing. And making a musical band.
-Aaron
Hello,
I have seen on some pages that has "Page created in 1.2 seconds" and I was wondering if anyone could show me how that is done or give me some idea. Thank you so much for reading.
Hello,
I was wondering if anyone could show me how to get the last auto increment value from a table called 'news'. Thank You so much.
There is no Knowledge that is not power.
Age: 17
E-mail: projectnet01@yahoo.com
Company:(not done yet) :-)
Status: Currently working with C++ for game...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.