Search found 1179 matches
- Fri Oct 18, 2013 7:09 pm
- Forum: Code
- Topic: BBCode - How to?
- Replies: 7
- Views: 2794
Re: BBCode - How to?
I split the topic to keep the other thread as clean as possible. Original topic: http://betterphp.co.uk/board/viewtopic.php?f=5&t=41 The function posted in there : [syntax=php]function bbcode($text) { $text = htmlentities($text); $search = array( '/\[b\](.*?)\[\/b\]/is', '/\[i\](.*?)\[\/i\]/is',...
- Wed Oct 16, 2013 9:08 am
- Forum: PHP
- Topic: JSONAPI is driving me insane...
- Replies: 5
- Views: 2405
Re: JSONAPI is driving me insane...
I'm on my phone at Hongkong airport so I'm not looking too closely on the code, but does it work locally?
- Fri Sep 27, 2013 2:47 pm
- Forum: PHP
- Topic: frame or iframe?
- Replies: 7
- Views: 2874
Re: frame or iframe?
I'm not sure I understand what you want exactly, but I'm guessing it has to do with BBcode.
Are you looking for something like tinyMCE?
Are you looking for something like tinyMCE?
- Fri Sep 27, 2013 8:09 am
- Forum: PHP
- Topic: how to convert MySQL to MySQLi
- Replies: 8
- Views: 3590
Re: how to convert MySQL to MySQLi
you need to fetch that line through mysqli
[syntax=php]$total = $mysqli->query("SELECT COUNT(`user_id`) FROM `users` WHERE `user_name` = '{$user}' AND `user_password` = '{$pass}'");
$row = $total->fetch_row();
return ($row[0] == 1) ? true : false;[/syntax]
[syntax=php]$total = $mysqli->query("SELECT COUNT(`user_id`) FROM `users` WHERE `user_name` = '{$user}' AND `user_password` = '{$pass}'");
$row = $total->fetch_row();
return ($row[0] == 1) ? true : false;[/syntax]
- Thu Sep 26, 2013 7:15 pm
- Forum: General Chat
- Topic: Kickstarting the activity here.
- Replies: 45
- Views: 18507
Re: Kickstarting the activity here.
I am already using a similar approach in one of my current projects ( the password form field ). I could probably re-write it to be a standalone thing and publish the code here. Most of the stuff you suggested comes with most front-end frameworks / devpacks. Most noticeably Bootstrap. I am working o...
- Thu Sep 26, 2013 7:10 pm
- Forum: PHP
- Topic: frame or iframe?
- Replies: 7
- Views: 2874
Re: frame or iframe?
I hate iframes, I really do. They are fine to use however if you've taken the necessary precautions first. I prefer doing it this way instead: Apply a <div> with some styling, including scrolling etc. use either php or ajax, or a combination of both to fetch the data from one file and insert it into...
- Thu Sep 26, 2013 7:07 pm
- Forum: PHP
- Topic: how to convert MySQL to MySQLi
- Replies: 8
- Views: 3590
Re: how to convert MySQL to MySQLi
Well, if you wanna use MySQLi you'd have to change it throughout your code, not just on one line.
Here's an introduction to MySQLi.
Here's an introduction to MySQLi.
- Mon Sep 23, 2013 7:27 pm
- Forum: PHP
- Topic: Problems with server status page.
- Replies: 3
- Views: 1902
Re: Problems with server status page.
If they can't help, feel free to come here again!
- Mon Sep 23, 2013 10:01 am
- Forum: PHP
- Topic: Problems with server status page.
- Replies: 3
- Views: 1902
Re: Problems with server status page.
I believe it has to do with your host. They are probably blocking certain ports.
Try sending them an email saying you're trying to send data on those ports and they'll unlock them for you.
Try sending them an email saying you're trying to send data on those ports and they'll unlock them for you.
- Sun Sep 22, 2013 8:40 pm
- Forum: Tutorials
- Topic: Asking for help !!!!
- Replies: 2
- Views: 1477
Re: Asking for help !!!!
I'm not sure what the exact question about software is, but as far as I know, there is no legit way to increase traffic unless you advertise your site. Those "instant traffic" sites are either scams, or just send bots to your site. There are a few SEO software programs that work, but they...
- Mon Sep 16, 2013 4:39 am
- Forum: JavaScript
- Topic: Requiere filling in text box before clicking on submit
- Replies: 5
- Views: 2024
Re: Requiere filling in text box before clicking on submit
matthijs110 wrote:Can you please give a example code on how to?
I haven't actually watched this video, so I don't know if it's any good. But there are only so many ways you can validate forms using javascript.
- Mon Sep 16, 2013 1:08 am
- Forum: JavaScript
- Topic: Requiere filling in text box before clicking on submit
- Replies: 5
- Views: 2024
Re: Requiere filling in text box before clicking on submit
Well, yes. You'd have to add an onclick event on your button that triggers the code ScTech posted.
You should check if it's not empty, and then if it filled, you send the post data to where you want it.
There are plenty of examples of this in practice online.
You should check if it's not empty, and then if it filled, you send the post data to where you want it.
There are plenty of examples of this in practice online.
- Sat Sep 14, 2013 2:15 pm
- Forum: General Chat
- Topic: Backup Manager feedback
- Replies: 4
- Views: 4710
Re: Backup Manager feedback
Oh, it will break.
But I'm quoting you:
[syntax=php]<?php while(!$succeed = try()); ?>[/syntax]
But I'm quoting you:
[syntax=php]<?php while(!$succeed = try()); ?>[/syntax]
- Sat Sep 14, 2013 2:36 am
- Forum: General Chat
- Topic: Backup Manager feedback
- Replies: 4
- Views: 4710
Re: Backup Manager feedback
I do agree with you it seems pointless to backup a specific file. Folders are ok, but single files isn't necessary. I do believe you should go with both a Full backup option, and an option where you can choose specific tables and folders. I also do like jQuery loading screens. Some people tend to st...
- Sun Sep 08, 2013 4:02 pm
- Forum: General Chat
- Topic: Kickstarting the activity here.
- Replies: 45
- Views: 18507
Re: Kickstarting the activity here.
I am willing to do this, just not at this very moment. I could literally not be more busy these coming weeks / months. I'll be having free time again in November. If there is a community project I could probably help though. I'll be writing code all day anyway, so I might as well have something on t...
- Fri Sep 06, 2013 3:22 pm
- Forum: PHP
- Topic: registry problems
- Replies: 14
- Views: 5033
Re: registry problems
and what is this " same thing " ? "Not Working" is not very specific. Do you get an error message? Does it just refresh and not do anything? Does it redirect you? I can't guess my way to what's wrong. Try turning on error reporting. Put this in the top of init.inc.php: [syntax=ph...
- Fri Sep 06, 2013 7:08 am
- Forum: PHP
- Topic: registry problems
- Replies: 14
- Views: 5033
Re: registry problems
doomrancher wrote:in which script?
the same script.
- Thu Sep 05, 2013 1:22 pm
- Forum: PHP
- Topic: registry problems
- Replies: 14
- Views: 5033
Re: registry problems
Okay, the problem is instantly visible when you have syntax highlighting on. You can clearly see that the highlighting breaks on line 9 in init.inc.php. This is because you have one too many ending semicolons ( ; ). You should have one at the end of the line only. Remove the one after $_SERVER['SCRI...
- Thu Sep 05, 2013 11:39 am
- Forum: PHP
- Topic: registry problems
- Replies: 14
- Views: 5033
Re: registry problems
can you post the code for ini.inc.php as well?
And please post the code here inside code tags. I don't like pastebin very much.
And please post the code here inside code tags. I don't like pastebin very much.
- Wed Sep 04, 2013 6:34 pm
- Forum: PHP
- Topic: Teamspeak 3 php problem
- Replies: 4
- Views: 2687
Re: Teamspeak 3 php problem
Well, then it makes no sense to me. Have you tried asking in the Teamspeak support forums?
To me it seems like a permissions thing. You probably have to change a setting or two, and I have no idea where or how.
To me it seems like a permissions thing. You probably have to change a setting or two, and I have no idea where or how.
- Wed Sep 04, 2013 5:24 pm
- Forum: Code
- Topic: JQuery Chat
- Replies: 6
- Views: 3172
Re: JQuery Chat
It really depends on what the chat is used for and where. If it's used as a live comment feed for streams and whatnot I would not mind email verification, but if it's just the chat and nothing more, I'd just close the tab if I had to verify. Captcha is the only solution, I guess. I would think patte...