Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 34
Search took 0.31 seconds.
Search: Posts Made By: Mark91
Forum: PHP 07-11-2012, 06:36 AM
Replies: 8
Views: 680
Posted By Mark91
Hey guys, thanks a lot for all of your help. I...

Hey guys, thanks a lot for all of your help. I ended up getting assistance from someone and came up with this code that achieves exactly what I was after:

$result = mysql_query("
SELECT...
Forum: PHP 07-10-2012, 06:30 AM
Replies: 8
Views: 680
Posted By Mark91
At the moment I have managed to get this going: ...

At the moment I have managed to get this going:
$get_result = mysql_query("SELECT * FROM table WHERE id='$id'");
while($row = mysql_fetch_array($get_result)){
$string = $row['move_type'];
...
Forum: PHP 07-09-2012, 06:07 AM
Replies: 8
Views: 680
Posted By Mark91
Thanks for that mlseim. There is one small...

Thanks for that mlseim. There is one small problem... if I have a string which is InternalOutgoingIncoming - it will return $pos1 (coming) as 2 but no value for $pos2 (going).

Do you have any idea...
Forum: PHP 07-09-2012, 01:59 AM
Replies: 8
Views: 680
Posted By Mark91
Matching multiple words in string

I want to check a string for specific words and return certain outputs if the conditions are met.

Example String 1:
$string = "IncomingOutgoingInternal";
I want to be able to check if $string...
Forum: PHP 05-17-2012, 01:53 AM
Replies: 4
Views: 769
Posted By Mark91
Thanks for your reply Wojjie. Currently I...

Thanks for your reply Wojjie.

Currently I have the query looking like this:
INSERT INTO data (col1,col2,col3) VALUES('$value1', '$value2', '$value3');
Can I use a foreach loop to check if any of...
Forum: PHP 05-16-2012, 05:23 AM
Replies: 4
Views: 769
Posted By Mark91
Method for inserting form data into MySQL DB

Hi guys,

I have a rather long form, consisting 30 fields (a mixture of input text boxes, radio buttons and check boxes). Any user can create the form and only 5 text boxes are required to create...
Forum: PHP 05-16-2012, 05:13 AM
Replies: 2
Views: 1,407
Posted By Mark91
Microsoft Excel would be doing this...

Microsoft Excel would be doing this automatically. I just tried copying that number into a cell and it did the exact same thing for me.

Have a read of these articles:...
Forum: PHP 05-07-2012, 06:34 AM
Replies: 6
Views: 486
Posted By Mark91
Are you able to point me in the right direction...

Are you able to point me in the right direction here? How would I check the output of $DNresult for a specified value, such as "testuser"?
Forum: PHP 05-07-2012, 06:05 AM
Replies: 6
Views: 486
Posted By Mark91
Sorry for the massive bump. I completely forgot...

Sorry for the massive bump. I completely forgot about this thread. Here is the output from var_dump()

testuser
array(2) { ["count"]=> int(1) [0]=> array(6) { ["cn"]=> array(2) { ["count"]=>...
Forum: PHP 04-05-2012, 05:42 AM
Replies: 6
Views: 486
Posted By Mark91
Checking if key exists in array

Hi guys,

I am using the following snippet to check if a specific key exists in an array.

$DNresult = ldap_get_entries($this->initConn, $search); // grab results from search...
Forum: PHP 09-13-2011, 02:18 AM
Replies: 2
Views: 282
Posted By Mark91
There are many pre-made image upload scripts out...

There are many pre-made image upload scripts out there. Choosing the right one depends on your needs and complexity requirements (whether it uses ajax or not).

Here is one I found:...
Forum: PHP 08-26-2011, 01:31 AM
Replies: 6
Views: 546
Posted By Mark91
After you have created your button: <input...

After you have created your button:
<input type="submit" name="submit" value="Submit" />
You can use the following PHP code to execute whatever you want after the user has clicked the submit...
Forum: Domains for sale 08-23-2011, 04:44 AM
Replies: 0
Views: 1,237
Posted By Mark91
[AU DOMAIN] kronic.com.au for sale

1) Domain for sale: kronic.com.au

2) Registrar domain is registered at: AussieHQ

3) Asking Price (or if auction, starting bid plus end time in days): Starting bid is $100. Auction will end in 7...
Forum: PHP 08-11-2011, 03:12 AM
Replies: 0
Views: 721
Posted By Mark91
foreach loop for registration form validation

Hi guys,

I am trying to validate a form using jQuery and PHP that will check to see if:
a) the input is valid (valid email, etc)
b) the username or email address already exists

Here is the...
Forum: PHP 12-01-2010, 12:05 AM
Replies: 1
Views: 502
Posted By Mark91
Outputting array within an array (Excel Export)

Hi guys. I am trying to setup a script which exports data into an Excel file. I am having troubles outputting arrays. It will only output the last value of an array.

I am currently using this PHP...
Forum: PHP 11-19-2010, 01:34 AM
Replies: 2
Views: 777
Posted By Mark91
Silly me... Thanks mate, that worked perfectly. I...

Silly me... Thanks mate, that worked perfectly. I can now use $initConn through all of my functions within the LDAP class.
Forum: PHP 11-18-2010, 10:03 PM
Replies: 2
Views: 777
Posted By Mark91
PHP and LDAP

Hey guys. I'm currently developing a small system which integrates with an LDAP directory for user authentication. I am having troubles converting the code into a more OOP approach.

At the moment,...
Forum: PHP 10-27-2010, 11:53 PM
Replies: 3
Views: 875
Posted By Mark91
Pagination is what you need. Have a read of...

Pagination is what you need.

Have a read of these tutorials, there's plenty out there:...
Forum: PHP 10-14-2010, 12:42 AM
Replies: 3
Views: 1,330
Posted By Mark91
Have a read of this thread:...

Have a read of this thread: http://www.dynamicdrive.com/forums/showthread.php?t=28714
Forum: PHP 10-10-2010, 06:23 AM
Replies: 14
Views: 2,629
Posted By Mark91
Have you tried adding ob_start(); to the very top...

Have you tried adding ob_start(); to the very top of your PHP script and ob_end_flush(); to the very bottom?
Forum: PHP 09-21-2010, 03:36 AM
Replies: 6
Views: 1,002
Posted By Mark91
I've been trying to do this using a foreach loop....

I've been trying to do this using a foreach loop. Anyone able to provide a snippet of code to help me out?
Forum: PHP 09-17-2010, 06:57 AM
Replies: 5
Views: 744
Posted By Mark91
include("../../../files/include/session.php");...

include("../../../files/include/session.php");
Forum: PHP 09-16-2010, 12:21 AM
Replies: 4
Views: 2,097
Posted By Mark91
Tell your administrator to install the following...

Tell your administrator to install the following (if they aren't already on there):
- Apache
- PHP
- MySQL
Forum: Unknown sized projects (request quote) 09-15-2010, 07:26 AM
Replies: 5
Views: 4,822
Posted By Mark91
Wrong section. This belong in the Web Projects...

Wrong section. This belong in the Web Projects section.
Forum: PHP 09-15-2010, 03:06 AM
Replies: 6
Views: 1,002
Posted By Mark91
But how do I detect if a field's value has been...

But how do I detect if a field's value has been changed through the edit form? I need to know that so the change_log table can display exactly what field they updated through the form.

Also,...
Showing results 1 to 25 of 34

 
Forum Jump

All times are GMT +1. The time now is 03:40 AM.