-
Posts
2,059 -
Joined
-
Last visited
-
Days Won
39
benanamen last won the day on December 2 2021
benanamen had the most liked content!
Contact Methods
-
Website URL
http://galaxyinternet.us/
-
Yahoo
phpfreaks@galaxyinternet.us
Profile Information
-
Gender
Not Telling
-
Interests
Email me at phpfreaks@galaxyinternet.us
Recent Profile Visitors
8,517 profile views
benanamen's Achievements
-
Seems to me this is the real problem. Stop them from signing both and you wont have to fix it afterwards.
-
Is this code representative of what you have been taught in school? If so, your teacher needs schooling.
-
Why not just get it from the DB the way you want it instead of jumping through code? SELECT IF (did_ivr_disable = TRUE, 'Enabled', 'Disabled') AS did_ivr_disable
-
That is not what you were shown to do. Look again.
-
PHP Parse error: syntax error, unexpected '<'
benanamen replied to thesunlover's topic in PHP Coding Help
Does this look right? <?=$bbname?'.'> <?=$navtitle?'.'> -
how can i fix this pls (Parse error: syntax error, unexpected '@')
benanamen replied to san19's topic in PHP Coding Help
Remove the debug.log on the previous line 14 -
When i press publish button code can't run
benanamen replied to Ehsan_collboy's topic in PHP Coding Help
You close out the form for the search but have no form opening for the rest. You are also missing the method attribute for the one you do have. -
Just a little tip on the trim function.... If you use a guard clause you can get rid of the else and clean up the function just a bit. Also, when you call the function, there is no need to call it with array_map. The $_POST data is already being run through array_map. No need to do it twice. 😀 <?php function _trim($val) { if (!is_array($val)) { return trim($val); } return array_map('_trim', $val); } $post = _trim($_POST);
-
Undefined variable error but that variable has been declared
benanamen replied to webdeveloper123's topic in PHP Coding Help
You need to just remove the action attribute completely. -
*
-
Why do you have two tables for the same data? Duplicated data is a red flag to a bad DB schema. Learn about Database Normalization.
-
For starters.... The DB connection "should" be passed to the Class using Dependency Injection, not extending Dbh. The submit button does not need a name attribute You should use Guard Clauses and get rid of the elses's